Plugs institutional risk analytics directly into Claude via the Model Context Protocol. Exposes 10 tools including VaR calculation, Monte Carlo simulation with configurable paths, historical stress testing, portfolio optimization, and options Greeks. Free tier gets you 7 tools and 20 positions per portfolio. Pro unlocks mean-variance optimization, 500-position portfolios, and 100k simulation paths. Runs as a local stdio process that talks to a Cloudflare Workers backend, which pulls real market data from Yahoo Finance and runs the math server-side. Useful when you need actual calculated risk metrics instead of LLM estimates, or when you're building portfolio analysis workflows that need to ground decisions in real numbers.
claude mcp add --transport http mcp-server https://quantrisk-mcp.quantrisk.workers.dev/mcpRun in your terminal. Add --scope user to make it available in every project.
Review the command, arguments, and environment values before installing — MCP servers run with your local permissions.
Verified live against the running server on Jun 10, 2026.
analyze_riskCalculate core risk metrics for a portfolio — Value at Risk (VaR), Conditional VaR (CVaR), volatility, beta, and max drawdown.6 paramsCalculate core risk metrics for a portfolio — Value at Risk (VaR), Conditional VaR (CVaR), volatility, beta, and max drawdown.
methodstringhistorical · parametric · cornish_fisherdefault: historicalbenchmarkstringpositions*arrayhorizon_daysintegerlookback_daysintegerconfidence_levelnumbermonte_carlo_simulationRun Monte Carlo simulation on a portfolio to model the distribution of future returns, including percentile outcomes and probability of loss.6 paramsRun Monte Carlo simulation on a portfolio to model the distribution of future returns, including percentile outcomes and probability of loss.
seedvaluemodelstringgbm · jump_diffusiondefault: gbmnum_pathsintegerpositions*arrayhorizon_daysintegerlookback_daysintegerstress_testStress test a portfolio against historical crisis scenarios (GFC 2008, COVID 2020, etc.) or custom shocks (paid tier).3 paramsStress test a portfolio against historical crisis scenarios (GFC 2008, COVID 2020, etc.) or custom shocks (paid tier).
positions*arrayscenariosarraycustom_shocksvalueoptimize_portfolioFind the optimal portfolio allocation using mean-variance optimization. Supports max Sharpe, min variance, and target return objectives. Paid tier only.6 paramsFind the optimal portfolio allocation using mean-variance optimization. Supports max Sharpe, min variance, and target return objectives. Paid tier only.
tickers*arrayobjectivestringmax_sharpe · min_variance · target_returndefault: max_sharpeconstraintsobjectlookback_daysintegertarget_returnvaluerisk_free_ratenumbercorrelation_matrixCompute the pairwise correlation matrix for a set of assets. Identifies highly correlated pairs and diversification opportunities.3 paramsCompute the pairwise correlation matrix for a set of assets. Identifies highly correlated pairs and diversification opportunities.
methodstringpearson · spearman · kendalldefault: pearsontickers*arraylookback_daysintegerperformance_attributionBreak down portfolio performance into factor exposures, sector allocation, and position contributions. Computes Sharpe, Sortino, Treynor, Calmar, and Information ratios.4 paramsBreak down portfolio performance into factor exposures, sector allocation, and position contributions. Computes Sharpe, Sortino, Treynor, Calmar, and Information ratios.
benchmarkstringpositions*arrayperiod_daysintegerrisk_free_ratenumbersector_exposureBreak down portfolio exposure by GICS sector, market cap, and asset class. Returns concentration metrics including the Herfindahl-Hirschman Index.1 paramsBreak down portfolio exposure by GICS sector, market cap, and asset class. Returns concentration metrics including the Herfindahl-Hirschman Index.
positions*arrayprice_historyFetch historical OHLCV price data for one or more tickers. Free tier: 1 ticker, 252 days. Paid tier: up to 20 tickers, 1260 days.3 paramsFetch historical OHLCV price data for one or more tickers. Free tier: 1 ticker, 252 days. Paid tier: up to 20 tickers, 1260 days.
daysintegertickers*arrayintervalstringdaily · weekly · monthlydefault: dailycompare_portfoliosCompare two or more portfolio allocations head-to-head across all key risk and return metrics. Paid tier only.3 paramsCompare two or more portfolio allocations head-to-head across all key risk and return metrics. Paid tier only.
portfolios*arrayperiod_daysintegerconfidence_levelnumbercalculate_greeksCalculate option Greeks (delta, gamma, theta, vega, rho) for individual options or an options portfolio. Uses Black-Scholes for European, binomial for American style. Paid tier only.2 paramsCalculate option Greeks (delta, gamma, theta, vega, rho) for individual options or an options portfolio. Uses Black-Scholes for European, binomial for American style. Paid tier only.
options*arrayrisk_free_ratenumberInstitutional-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.
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.
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"
}
}
}
}
Add to .cursor/mcp.json in your project root:
{
"mcpServers": {
"quantrisk": {
"command": "quantrisk-mcp-server",
"env": {
"QUANTRISK_API_KEY": "your-api-key"
}
}
}
}
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.
| 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 |
Once configured, ask Claude questions like these:
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:
Claude / MCP Client
|
MCP Protocol
|
QuantRisk MCP Server (local process)
|
QuantRisk API (Cloudflare Workers)
|
Yahoo Finance (market data) + risk engine (math)
No data is stored. No portfolio information is retained after a request completes.
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.
Built by the team at quantrisk.dev
Contact: hello@quantrisk.dev
QUANTRISK_API_KEYsecretAPI key from https://quantrisk.dev/upgrade. Optional — without one, requests run on the free tier (limited tools and call quotas).
io.github.infoinlet-marketplace/mcp-observability
betterdb-inc/monitor
com.mcparmory/datadog
thotischner/observability-mcp
io.github.tantiope/datadog-mcp
io.github.us-all/datadog