
Quantrisk
- 2 repo stars
- Updated May 26, 2026
- 78degrees/mcp-server
QuantRisk is a MCP server that provides portfolio risk analytics including VaR, Monte Carlo, and stress testing via MCP tools.
About
QuantRisk MCP Server brings portfolio risk analytics into MCP-aware agents for developers who treat personal capital or small fund exposure with the same rigor as product metrics. Through the @quantrisk/mcp-server npm package (stdio), clients can request analyses such as value-at-risk, Monte Carlo simulation, and stress testing without exporting spreadsheets to a separate terminal app. Authentication uses YOUR_API_KEY against the QuantRisk service. This is suited to operators running side portfolios, evaluating runway versus market drawdowns, or documenting risk for investor updates—not for building a full brokerage UI. Complexity is intermediate to advanced depending on how deep you go on statistical assumptions. Install when you want repeatable quant questions in natural language during planning sessions, not when you only need simple budget spreadsheets.
- @quantrisk/mcp-server npm package version 1.0.3 over stdio
- Portfolio risk analytics including VaR and Monte Carlo simulation
- Stress testing workflows exposed as MCP tools
- Backed by 78degrees mcp-server repository
- Requires YOUR_API_KEY for QuantRisk API access
Quantrisk by the numbers
- Data as of Jul 7, 2026 (Skillselion catalog sync)
claude mcp add --env YOUR_API_KEY=YOUR_YOUR_API_KEY quantrisk -- npx -y @quantrisk/mcp-serverAdd your badge
Show developers this MCP server is listed on Skillselion. Paste this into your README.
| repo stars | ★ 2 |
|---|---|
| Package | @quantrisk/mcp-server |
| Transport | STDIO |
| Auth | Required |
| Last updated | May 26, 2026 |
| Repository | 78degrees/mcp-server ↗ |
What it does
Hook portfolio risk questions—VaR, Monte Carlo, stress tests—into your agent when you model personal or product-adjacent investments.
Who is it for?
Developers or micro-funds who already use QuantRisk and want MCP access to VaR, Monte Carlo, and stress tests.
Skip if: Beginners who only need basic budgeting, or teams requiring licensed investment advisory tooling without QuantRisk API access.
What you get
Your agent can call QuantRisk MCP tools for portfolio analytics so scenarios stay in one conversational workflow with an API key.
- MCP-accessible VaR, Monte Carlo, and stress test calls
- Agent-assisted portfolio risk narratives
- Repeatable quant workflows without leaving the IDE
By the numbers
- npm identifier @quantrisk/mcp-server version 1.0.3
- stdio transport in registry package
- Three headline capability areas: VaR, Monte Carlo, stress testing
README.md
QuantRisk
Institutional-grade portfolio risk analytics for Claude and any MCP client.
VaR / Monte Carlo / Stress Testing / Portfolio Optimization / Greeks / Correlation Matrices
Real market data. Real math. Not hallucinated numbers.
Quick Start
1. Install
npm install -g @quantrisk/mcp-server
2. Configure (Claude Desktop — see below for Cursor)
Add to your claude_desktop_config.json:
{
"mcpServers": {
"quantrisk": {
"command": "quantrisk-mcp-server",
"env": {
"QUANTRISK_API_KEY": "your-api-key"
}
}
}
}
Get your free API key at quantrisk.dev/signup.
3. Ask Claude
"What's the Value at Risk on a portfolio of 60% SPY, 25% TLT, and 15% GLD?"
That's it. Claude now has access to institutional-grade risk analytics.
Configuration
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"quantrisk": {
"command": "quantrisk-mcp-server",
"env": {
"QUANTRISK_API_KEY": "your-api-key"
}
}
}
}
Cursor
Add to .cursor/mcp.json in your project root:
{
"mcpServers": {
"quantrisk": {
"command": "quantrisk-mcp-server",
"env": {
"QUANTRISK_API_KEY": "your-api-key"
}
}
}
}
Any MCP Client
QuantRisk works with any client that supports the Model Context Protocol. Point it at the quantrisk-mcp-server binary with your API key in the environment.
Tools
| Tool | Description | Tier |
|---|---|---|
analyze_risk |
VaR, CVaR, volatility, Sharpe ratio, max drawdown | Free |
monte_carlo_simulation |
Forward-looking return simulations with configurable paths | Free |
stress_test |
Portfolio impact under historical and hypothetical scenarios | Free |
price_history |
Historical price and return data for any supported ticker | Free |
sector_exposure |
Sector and industry breakdown across holdings | Free |
performance_attribution |
Return attribution by asset, sector, and factor | Free |
correlation_matrix |
Cross-asset correlation analysis | Free |
optimize_portfolio |
Mean-variance and risk-parity optimization | Pro |
compare_portfolios |
Side-by-side risk/return comparison of multiple portfolios | Pro |
calculate_greeks |
Options Greeks — delta, gamma, theta, vega, rho | Pro |
Example Queries
Once configured, ask Claude questions like these:
- "Run a Monte Carlo simulation on my portfolio: 50% AAPL, 30% MSFT, 20% NVDA. Show me the 5th percentile outcome."
- "Stress test 70% VTI / 30% BND against the 2008 financial crisis and a hypothetical 300bp rate shock."
- "What's my sector exposure if I hold equal weights in AMZN, JPM, JNJ, XOM, and NEE?"
- "Show me the correlation matrix for SPY, GLD, TLT, and BTC-USD over the last 2 years."
- "Compare the risk-adjusted returns of a 60/40 portfolio vs. an all-weather portfolio." (Pro)
- "Calculate the Greeks for a SPY 550 call expiring in 30 days." (Pro)
Why Pro?
The free tier covers core risk analytics for small portfolios. Pro unlocks the tools and scale that serious analysis demands.
| Free | Pro ($29/mo) | |
|---|---|---|
| Positions | 20 | 500 |
| API calls | 50/day | Unlimited |
| Tools | 7 | All 10 |
| Monte Carlo paths | 1,000 | 100,000 |
| Portfolio optimization | — | Mean-variance, risk-parity, min-volatility |
| Portfolio comparison | — | Side-by-side multi-portfolio analysis |
| Options Greeks | — | Full Greeks surface |
What that means in practice:
- Free: "What's the VaR on my 10-stock portfolio?" — works great.
- Pro: "Optimize my 200-position portfolio for maximum Sharpe, then stress test it against 5 scenarios and compare it to my current allocation." — you need Pro for that.
How It Works
Claude / MCP Client
|
MCP Protocol
|
QuantRisk MCP Server (local process)
|
QuantRisk API (Cloudflare Workers)
|
Yahoo Finance (market data) + risk engine (math)
- MCP Server runs locally as a stdio process — your API key never leaves your machine except to authenticate with the QuantRisk API.
- Risk Engine runs on Cloudflare Workers. All calculations — VaR, Monte Carlo, optimization — happen server-side with real math on real market data.
- Market Data sourced from Yahoo Finance. Prices, fundamentals, and options chains are fetched in real time.
- Reports generated with pdf-lib when applicable.
No data is stored. No portfolio information is retained after a request completes.
Contributing
Contributions are welcome. Please open an issue first to discuss what you'd like to change.
git clone https://github.com/78degrees/mcp-server.git
cd mcp-server
npm install
npm test
See CONTRIBUTING.md for guidelines.
License
Built by the team at quantrisk.dev
Contact: hello@quantrisk.dev
Recommended MCP Servers
How it compares
Finance analytics MCP bridge, not a trading bot skill or generic spreadsheet plugin.
FAQ
Who is QuantRisk MCP for?
Developers and operators who use QuantRisk for portfolio analytics and want those models inside Claude Code, Cursor, or similar MCP clients.
When should I use QuantRisk MCP?
Use it when reviewing portfolio risk, running Monte Carlo or stress scenarios, or preparing quantitative narratives during grow-phase planning.
How do I add QuantRisk MCP to my agent?
Install @quantrisk/mcp-server, configure YOUR_API_KEY, and register the stdio MCP server in your agent’s MCP configuration.