analyze_risk
Calculate core risk metrics for a portfolio — Value at Risk (VaR), Conditional VaR (CVaR), volatility, beta, and max drawdown.
methodbenchmarkpositions必填horizon_dayslookback_daysconfidence_level
dev.quantrisk由 quantrisk.dev 发布v1.0.2更新于 Oct 24, 2026
Portfolio risk analytics — VaR, Monte Carlo, optimization, options Greeks, stress testing.
QuantRisk 让助手获得机构级投资组合风险分析能力:VaR、蒙特卡洛、压力测试、相关性、敞口与期权希腊值。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/dev.quantrisk%2Fmcp-server/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"quantrisk": {
"type": "http",
"url": "https://quantrisk-mcp.quantrisk.workers.dev/mcp"
}
}
}Institutional-grade portfolio risk analytics for Claude and any MCP client.
[npm version] [npm downloads] [License: MIT] [MCP Compatible]
VaR / Monte Carlo / Stress Testing / Portfolio Optimization / Greeks / Correlation Matrices
Real market data. Real math. Not hallucinated numbers.
1. Install
2. Configure (Claude Desktop — see below for Cursor)
Add to your claude_desktop_config.json:
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):
Add to .cursor/mcp.json in your project root:
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.
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.
What that means in practice:
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.
See CONTRIBUTING.md for guidelines.
Built by the team at quantrisk.dev
Contact: [email protected]
来源:README.md,提交 df287a5
Calculate core risk metrics for a portfolio — Value at Risk (VaR), Conditional VaR (CVaR), volatility, beta, and max drawdown.
methodbenchmarkpositions必填horizon_dayslookback_daysconfidence_levelRun Monte Carlo simulation on a portfolio to model the distribution of future returns, including percentile outcomes and probability of loss.
seedmodelnum_pathspositions必填horizon_dayslookback_daysStress test a portfolio against historical crisis scenarios (GFC 2008, COVID 2020, etc.) or custom shocks (paid tier).
positions必填scenarioscustom_shocksFind the optimal portfolio allocation using mean-variance optimization. Supports max Sharpe, min variance, and target return objectives. Paid tier only.
tickers必填objectiveconstraintslookback_daystarget_returnrisk_free_rateCompute the pairwise correlation matrix for a set of assets. Identifies highly correlated pairs and diversification opportunities.
methodtickers必填lookback_daysBreak down portfolio performance into factor exposures, sector allocation, and position contributions. Computes Sharpe, Sortino, Treynor, Calmar, and Information ratios.
benchmarkpositions必填period_daysrisk_free_rateBreak down portfolio exposure by GICS sector, market cap, and asset class. Returns concentration metrics including the Herfindahl-Hirschman Index.
positions必填Fetch historical OHLCV price data for one or more tickers. Free tier: 1 ticker, 252 days. Paid tier: up to 20 tickers, 1260 days.
daystickers必填intervalCompare two or more portfolio allocations head-to-head across all key risk and return metrics. Paid tier only.
portfolios必填period_daysconfidence_levelCalculate 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必填risk_free_rate已满足适用检查项的 100%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
npm install -g @quantrisk/mcp-server{ "mcpServers": { "quantrisk": { "command": "quantrisk-mcp-server", "env": { "QUANTRISK_API_KEY": "your-api-key" } } }}{ "mcpServers": { "quantrisk": { "command": "quantrisk-mcp-server", "env": { "QUANTRISK_API_KEY": "your-api-key" } } }}{ "mcpServers": { "quantrisk": { "command": "quantrisk-mcp-server", "env": { "QUANTRISK_API_KEY": "your-api-key" } } }}Claude / MCP Client | MCP Protocol |QuantRisk MCP Server (local process) |QuantRisk API (Cloudflare Workers) |Yahoo Finance (market data) + risk engine (math)git clone https://github.com/78degrees/mcp-server.gitcd mcp-servernpm installnpm test