Quantrisk MCP server
io.github.78degrees/quantrisk·v1.0.3·2 starsPortfolio risk analytics MCP server — VaR, Monte Carlo, stress testing, and more.
2 stars60 downloads/wk
Reviews
Write oneNobody has reviewed Quantrisk yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Quantrisk tools (10, 1 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
analyze_riskCalculate core risk metrics for a portfolio — Value at Risk (VaR), Conditional VaR (CVaR), volatility, beta, and max drawdown.
calculate_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.
compare_portfoliosCompare two or more portfolio allocations head-to-head across all key risk and return metrics. Paid tier only.
correlation_matrixCompute the pairwise correlation matrix for a set of assets. Identifies highly correlated pairs and diversification opportunities.
monte_carlo_simulationwrite actionRun Monte Carlo simulation on a portfolio to model the distribution of future returns, including percentile outcomes and probability of loss.
optimize_portfolioFind the optimal portfolio allocation using mean-variance optimization. Supports max Sharpe, min variance, and target return objectives. Paid tier only.
performance_attributionBreak down portfolio performance into factor exposures, sector allocation, and position contributions. Computes Sharpe, Sortino, Treynor, Calmar, and Information ratios.
price_historyFetch historical OHLCV price data for one or more tickers. Free tier: 1 ticker, 252 days. Paid tier: up to 20 tickers, 1260 days.
sector_exposureBreak down portfolio exposure by GICS sector, market cap, and asset class. Returns concentration metrics including the Herfindahl-Hirschman Index.
stress_testStress test a portfolio against historical crisis scenarios (GFC 2008, COVID 2020, etc.) or custom shocks (paid tier).
Public scan report
scanner v0.1.9 · 2026-09-27 · same rubric, same numbers if you re-run it
- Code scan102 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitystatic API keys via environment variables6/15
- Maintenancelast push 124 days ago8/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How Quantrisk compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 72/100
- higher than 38% of 48,255 servers
- Tools
- 10
- the typical server has 7
- Tools that change things
- 10%
- typical: 0%. Fewer write tools means less an agent can break
- GitHub stars
- 2
- more than 75% of 28,688 servers
- Downloads a week
- 60
- more than 49% of 12,191 servers with a package
What its tools let an agent do: 9 read · 1 change
Install Quantrisk in Claude Code, Cursor or VS Code
Runs npx -y @quantrisk/mcp-server on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add quantrisk -- npx -y @quantrisk/mcp-server
What the publisher says
From the Quantrisk repository's README, as published. We do not edit it. Read it on GitHub
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.
Website · Get Pro · Documentation
Quick Start
1. Install
npm install -g @quantrisk/mcp-server2. Configure (Claude Desktop — see below for Cursor)
Add to your claudedesktopconfig.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/claudedesktopconfig.json (macOS) or %APPDATA%\Claude\claudedesktopconfig.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
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?
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Quantrisk: common questions
- Is Quantrisk MCP server safe?
- Mostly: it is graded B (72/100). Read the Quantrisk safety report
- How do I install Quantrisk?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Quantrisk need an API key?
- Yes. The registry entry asks for
YOUR_API_KEY. - Is Quantrisk maintained?
- The last commit was 162 days ago (2026-05-26). The latest release is v1.0.3.
- How does Quantrisk compare with other MCP servers?
- safety score 72/100 (higher than 38% of 48,255 servers); tools 10 (the typical server has 7); tools that change things 10% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.