QuantRisk MCPサーバー
✓ 検証済みVaR、モンテカルロ・シミュレーション、ストレス・テスト、ポートフォリオ最適化などの機関投資家レベルのポートフォリオ・リスク分析を提供します。
別名 78degrees/mcp-server, @quantrisk/mcp-server
- スター
- 2
- ツール
- 10
- ダウンロード数(30日間)
- —
- 最新バージョン
- 1.0.3
- 最終コミット
- 2026年5月26日
- ライセンス
- MIT
QuantRisk MCPとは
VaR、モンテカルロ・シミュレーション、ストレス・テスト、ポートフォリオ最適化などの機関投資家レベルのポートフォリオ・リスク分析を提供します。 10個のツールを提供しており、analyze_risk, monte_carlo_simulation, stress_testなどがあります。
プロジェクトのREADMEから生成された概要
QuantRisk MCP server について
QuantRiskは、Claude Desktop、Cursor、およびその他のModel Context Protocolクライアントのユーザー向けに、機関投資家レベルの金融分析機能を提供します。開発者や投資家は、AIインターフェースを通じて市場データに対する複雑な数学的演算を直接実行できます。このMCP serverはstdioを使用してローカルプロセスとして動作し、リモートのリスクエンジンと認証するために、環境変数経由で提供されるQUANTRISK_API_KEYが必要です。
ユーザーは、VaRやシャープレシオを算出するanalyze_risk、将来の収益を予測するmonte_carlo_simulation、過去のシナリオ分析を行うstress_testなど、さまざまなツールにアクセスできます。無料プランでは7つのツールが利用可能で最大20ポジションまでサポートされますが、Proプランではポートフォリオ最適化、ポートフォリオの比較、オプションのグリークス計算などの機能が拡張されます。本システムは、計算が生成された数値ではなく実際の価格に基づいていることを保証するため、リアルな市場データとしてYahoo Financeを利用しています。
できること
- 1ポートフォリオのリスク指標を算出特定の資産構成におけるValue at Risk(VaR)をAIに算出させます。
- 2将来の市場結果をシミュレーションモンテカルロ・シミュレーションを実行し、保有資産の潜在的なパーセンタイル結果を確認します。
- 3過去のストレスシナリオを分析特定の資産配分が2008年の金融危機時にどのようなパフォーマンスを示したかをテストします。
- 4高度なポートフォリオ最適化を実行Pro機能を使用して、多数のポジションに対して最適な平均分散またはリスクパリティ配分を見つけ出します。
プロジェクトの README から作成されています。すべてのユースケースは、その引用と照らし合わせて確認されています。
QuantRisk MCPのインストール方法
フォーマット検証日 2026年11月10日Cursor に追加Gooseに追加Claude CodeにQuantRisk MCPをインストール
$ claude mcp add --env 'YOUR_API_KEY=<YOUR_YOUR_API_KEY>' quantrisk -- npx -y @quantrisk/mcp-serverCursorにQuantRisk MCPをインストール
~/.cursor/mcp.json
{
"mcpServers": {
"quantrisk": {
"command": "npx",
"args": [
"-y",
"@quantrisk/mcp-server"
],
"env": {
"YOUR_API_KEY": "<YOUR_YOUR_API_KEY>"
}
}
}
}VS CodeにQuantRisk MCPをインストール
.vscode/mcp.json
{
"servers": {
"quantrisk": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@quantrisk/mcp-server"
],
"env": {
"YOUR_API_KEY": "<YOUR_YOUR_API_KEY>"
}
}
}
}VS Code CLIにQuantRisk MCPをインストール
$ code --add-mcp '{"name":"quantrisk","type":"stdio","command":"npx","args":["-y","@quantrisk/mcp-server"],"env":{"YOUR_API_KEY":"<YOUR_YOUR_API_KEY>"}}'Claude DesktopにQuantRisk MCPをインストール
claude_desktop_config.json
{
"mcpServers": {
"quantrisk": {
"command": "npx",
"args": [
"-y",
"@quantrisk/mcp-server"
],
"env": {
"YOUR_API_KEY": "<YOUR_YOUR_API_KEY>"
}
}
}
}CodexにQuantRisk MCPをインストール
$ codex mcp add quantrisk --env 'YOUR_API_KEY=<YOUR_YOUR_API_KEY>' -- npx -y @quantrisk/mcp-serverCodex config.tomlにQuantRisk MCPをインストール
~/.codex/config.toml
[mcp_servers.quantrisk] command = "npx" args = ["-y", "@quantrisk/mcp-server"] [mcp_servers.quantrisk.env] YOUR_API_KEY = "<YOUR_YOUR_API_KEY>"
Gemini CLIにQuantRisk MCPをインストール
$ gemini mcp add -s user -e 'YOUR_API_KEY=<YOUR_YOUR_API_KEY>' quantrisk npx -- -y @quantrisk/mcp-serverGemini settings.jsonにQuantRisk MCPをインストール
~/.gemini/settings.json
{
"mcpServers": {
"quantrisk": {
"command": "npx",
"args": [
"-y",
"@quantrisk/mcp-server"
],
"env": {
"YOUR_API_KEY": "<YOUR_YOUR_API_KEY>"
}
}
}
}QuantRisk MCPツール 10
READMEから検出analyze_riskmonte_carlo_simulationstress_testprice_historysector_exposureperformance_attributioncorrelation_matrixoptimize_portfoliocompare_portfolioscalculate_greeks
| analyze_risk | — | |
| monte_carlo_simulation | — | |
| stress_test | — | |
| price_history | — | |
| sector_exposure | — | |
| performance_attribution | — | |
| correlation_matrix | — | |
| optimize_portfolio | — | |
| compare_portfolios | — | |
| calculate_greeks | — |
設定
YOUR_API_KEY必須シークレットYour API key for the service
QUANTRISK_API_KEY
| 名前 | 説明 | 種類 |
|---|---|---|
| YOUR_API_KEY | Your API key for the service | 必須シークレット |
| QUANTRISK_API_KEY | — |
自動チェック
実行日 2026年11月14日完全なレポート →自動チェックに合格しました。これはセキュリティ監査ではありません。コードを読み、サーバーに必要最小限のアクセス権を与えてください。 チェックの仕組み · 点数を上げるための改善点
- ソースリポジトリがリンクされており、アクセス可能78degrees/mcp-server is public and reachablegithub.com/78degrees/mcp-server ↗合格
- パッケージがこのリポジトリをソースとして指定@quantrisk/mcp-server names git+https://github.com/quantrisk/mcp-server.git as its sourcenpmjs.com/package/@quantrisk/mcp-server ↗検出事項
- ビルドの来歴 (Sigstore 証明)No build attestation published for this release未チェック
- オープンソースライセンス (OSI)MITspdx.org/licenses/MIT.html ↗合格
- 過去1年以内にコミットまたはリリースありLast commit or release 2026-05-27github.com/78degrees/mcp-server ↗合格
- OpenSSF Scorecard未チェック
- パッケージ名が有名なパッケージに酷似していないNo popular package one edit away from @quantrisk/mcp-server合格
- パッケージおよびその依存関係に重大な勧告なし138 resolved dependencies checked; no critical advisoryosv.dev ↗合格
- モデルへの隠れた指示がない10 tool descriptions and the README read; no override phrases, credential paths or hidden characters合格
- 破壊的なツールがラベル付けされているNo tool named like delete, drop or exec合格
- リモートエンドポイントが MCP ハンドシェイクに応答未チェック
README
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-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
QuantRisk MCPのよくある質問
QuantRisk MCPをClaude Codeに追加するには
ターミナルでclaude mcp add --env 'YOUR_API_KEY=<YOUR_YOUR_API_KEY>' quantrisk -- npx -y @quantrisk/mcp-serverを実行します。すべてのプロジェクトで利用するには--scope userを追加します。
QuantRisk MCPをCursorに追加するには
~/.cursor/mcp.jsonを開き、上記のインストールセクションに示すCursor設定を使ってmcpServersの下にサーバーを追加します。
QuantRisk MCPが提供するツールは
10個のツールを提供しており、analyze_risk, monte_carlo_simulation, stress_test, price_history, sector_exposureなどがあります。
ポートフォリオのデータはサーバーに保存されますか?
いいえ、本サービスはリクエスト完了後にデータやポートフォリオ情報を保存または保持することはありません。