QuantRisk MCP server
✓ VerifiziertBietet Portfolio-Risikoanalysen auf institutionellem Niveau, einschließlich VaR, Monte-Carlo-Simulationen, Stresstests und Portfolio-Optimierung.
Auch bekannt als 78degrees/mcp-server, @quantrisk/mcp-server
- Stars
- 2
- Tools
- 10
- Downloads, 30 Tage
- —
- Neueste Version
- 1.0.3
- Letzter Commit
- 26. Mai 2026
- Lizenz
- MIT
Was ist QuantRisk MCP?
QuantRisk ist ein MCP server. Bietet Portfolio-Risikoanalysen auf institutionellem Niveau, einschließlich VaR, Monte-Carlo-Simulationen, Stresstests und Portfolio-Optimierung. Er stellt 10 Tools bereit, etwa analyze_risk, monte_carlo_simulation, stress_test.
Zusammenfassung generiert aus dem README des Projekts
Über QuantRisk MCP server
QuantRisk bietet Finanzanalysen auf institutionellem Niveau für Nutzer von Claude Desktop, Cursor und anderen Model Context Protocol Clients. Es ermöglicht Entwicklern und Investoren, komplexe mathematische Operationen auf Marktdaten direkt über eine KI-Schnittstelle durchzuführen. Der Server läuft als lokaler Prozess über stdio und benötigt einen QUANTRISK_API_KEY, der über Umgebungsvariablen bereitgestellt wird, um sich gegenüber der Remote-Risk-Engine zu authentifizieren.
Nutzer können auf eine Vielzahl von Tools zugreifen, darunter analyze_risk zur Berechnung von VaR und Sharpe-Ratios, monte_carlo_simulation für zukunftsorientierte Renditeprognosen und stress_test für historische Szenarioanalysen. Während der Free-Tier sieben Tools umfasst und bis zu 20 Positionen unterstützt, erweitert der Pro-Tier die Funktionen um Portfolio-Optimierung, den direkten Portfolio-Vergleich und die Berechnung von Options-Greeks. Das System nutzt Yahoo Finance für echte Marktdaten, um sicherzustellen, dass Berechnungen auf tatsächlichen Preisen und nicht auf generierten Zahlen basieren.
Was du damit machen kannst
- 1Portfolio-Risikokennzahlen berechnenLass die KI den Value at Risk für eine spezifische Sammlung von Assets ermitteln.
- 2Zukünftige Marktergebnisse simulierenFühre eine Monte-Carlo-Simulation durch, um potenzielle Perzentil-Ergebnisse für einen Satz von Beständen zu sehen.
- 3Historische Stressszenarien analysierenTeste, wie sich eine bestimmte Asset-Allokation während der Finanzkrise 2008 performt hätte.
- 4Fortgeschrittene Portfolio-Optimierung durchführenNutze die Pro-Features, um die beste Mean-Variance- oder Risk-Parity-Allokation für eine große Anzahl von Positionen zu finden.
Geschrieben aus dem README des Projekts. Jeder Use Case wurde gegen ein Zitat daraus geprüft.
So installierst du QuantRisk MCP
Formate geprüft am 10. Nov. 2026Zu Cursor hinzufügenZu Goose hinzufügenQuantRisk MCP in Claude Code installieren
$ claude mcp add --env 'YOUR_API_KEY=<YOUR_YOUR_API_KEY>' quantrisk -- npx -y @quantrisk/mcp-serverQuantRisk MCP in Cursor installieren
~/.cursor/mcp.json
{
"mcpServers": {
"quantrisk": {
"command": "npx",
"args": [
"-y",
"@quantrisk/mcp-server"
],
"env": {
"YOUR_API_KEY": "<YOUR_YOUR_API_KEY>"
}
}
}
}QuantRisk MCP in VS Code installieren
.vscode/mcp.json
{
"servers": {
"quantrisk": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@quantrisk/mcp-server"
],
"env": {
"YOUR_API_KEY": "<YOUR_YOUR_API_KEY>"
}
}
}
}QuantRisk MCP in VS Code CLI installieren
$ code --add-mcp '{"name":"quantrisk","type":"stdio","command":"npx","args":["-y","@quantrisk/mcp-server"],"env":{"YOUR_API_KEY":"<YOUR_YOUR_API_KEY>"}}'QuantRisk MCP in Claude Desktop installieren
claude_desktop_config.json
{
"mcpServers": {
"quantrisk": {
"command": "npx",
"args": [
"-y",
"@quantrisk/mcp-server"
],
"env": {
"YOUR_API_KEY": "<YOUR_YOUR_API_KEY>"
}
}
}
}QuantRisk MCP in Codex installieren
$ codex mcp add quantrisk --env 'YOUR_API_KEY=<YOUR_YOUR_API_KEY>' -- npx -y @quantrisk/mcp-serverQuantRisk MCP in Codex config.toml installieren
~/.codex/config.toml
[mcp_servers.quantrisk] command = "npx" args = ["-y", "@quantrisk/mcp-server"] [mcp_servers.quantrisk.env] YOUR_API_KEY = "<YOUR_YOUR_API_KEY>"
QuantRisk MCP in Gemini CLI installieren
$ gemini mcp add -s user -e 'YOUR_API_KEY=<YOUR_YOUR_API_KEY>' quantrisk npx -- -y @quantrisk/mcp-serverQuantRisk MCP in Gemini settings.json installieren
~/.gemini/settings.json
{
"mcpServers": {
"quantrisk": {
"command": "npx",
"args": [
"-y",
"@quantrisk/mcp-server"
],
"env": {
"YOUR_API_KEY": "<YOUR_YOUR_API_KEY>"
}
}
}
}QuantRisk MCP tools 10
Erkannt aus dem READMEanalyze_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 | — |
Konfiguration
YOUR_API_KEYErforderlichSecretYour API key for the service
QUANTRISK_API_KEY
| Name | Beschreibung | Typ |
|---|---|---|
| YOUR_API_KEY | Your API key for the service | ErforderlichSecret |
| QUANTRISK_API_KEY | — |
Automatisierte Checks
Geluften am 14. Nov. 2026Vollständiger Bericht →Unsere automatisierten Checks bestanden. Das ist kein Security-Audit: Lies den Code und gib dem Server nur den minimal notwendigen Zugriff. Wie die Checks funktionieren · Was du für mehr Punkte verbessern kannst
- Source Repository verknüpft und erreichbar78degrees/mcp-server is public and reachablegithub.com/78degrees/mcp-server ↗Bestanden
- Paket nennt dieses Repository als Quelle@quantrisk/mcp-server names git+https://github.com/quantrisk/mcp-server.git as its sourcenpmjs.com/package/@quantrisk/mcp-server ↗Befund
- Build-Provenienz (Sigstore-Attestierung)No build attestation published for this releaseNicht geprüft
- Open Source Lizenz (OSI)MITspdx.org/licenses/MIT.html ↗Bestanden
- Commit oder Release im letzten JahrLast commit or release 2026-05-27github.com/78degrees/mcp-server ↗Bestanden
- OpenSSF ScorecardNicht geprüft
- Package-Name ähnelt keinem populären PackageNo popular package one edit away from @quantrisk/mcp-serverBestanden
- Keine kritischen Advisories im Paket oder seinen Abhängigkeiten138 resolved dependencies checked; no critical advisoryosv.dev ↗Bestanden
- Keine versteckten Anweisungen an das Modell10 tool descriptions and the README read; no override phrases, credential paths or hidden charactersBestanden
- Destruktive Tools sind markiertNo tool named like delete, drop or execBestanden
- Remote-Endpoint beantwortet den MCP-HandshakeNicht geprüft
README
Auf GitHub ansehenQuantRisk
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 Fragen
Wie füge ich QuantRisk MCP zu Claude Code hinzu?
Führe claude mcp add --env 'YOUR_API_KEY=<YOUR_YOUR_API_KEY>' quantrisk -- npx -y @quantrisk/mcp-server in deinem Terminal aus. Füge --scope user hinzu, damit der Server in jedem Projekt verfügbar ist.
Wie füge ich QuantRisk MCP zu Cursor hinzu?
Öffne ~/.cursor/mcp.json und füge den Server unter mcpServers hinzu, mit der Cursor-Config aus dem Installationsabschnitt oben.
Welche Tools bietet QuantRisk MCP?
Er stellt 10 Tools bereit, darunter analyze_risk, monte_carlo_simulation, stress_test, price_history, sector_exposure.
Werden meine Portfolio-Daten auf dem Server gespeichert?
Nein, der Service speichert keine Daten und behält keine Portfolio-Informationen nach Abschluss einer Anfrage bei.