Quantoracle

io.github.fel123由 GitHub 账号 fel123 发布v2.4.2更新于 Oct 24, 2026

73 deterministic quant tools for AI agents. LLMs drift on Black-Scholes; these are exact math.

已验证STDIO仅桌面金融数据与分析

概览

AI 生成的概览

本地 MCP 服务器,为助手提供 73 个确定性量化金融计算器,涵盖期权定价、风险指标、投资组合与加密数学。

可以做什么
期权与衍生品定价:Black-Scholes、隐含波动率、二叉树、障碍与亚式期权、波动率曲面、多腿策略。计算风险与投资组合指标:Sharpe、Sortino、VaR、CVaR、回撤、Kelly 仓位、均值方差优化、风险平价、再平衡。统计与时间序列分析:回归、协整、Hurst、GARCH、分布拟合。加密/DeFi、外汇与宏观/货币时间价值计算:无常损失、清算价格、资金费率、DEX 滑点、利率平价、NPV、IRR、CAGR。运行打包多个计算器调用的复合工作流,如回测、对冲建议、完整风险分析和策略优化。
适用场景
适合需要精确、可重复的金融数学而非大模型估算的场景:在聊天客户端中为期权定价、计算仓位、计算风险指标,或进行投资组合与回测类分析。
运行要求
通过 npx 或全局 npm 安装本地运行(需要 Node.js)。计算由 QuantOracle 远程 API 执行,因此需要网络访问。免费层无需账号或 API 密钥。可选环境变量 QUANTORACLE_API_URL 和 QUANTORACLE_X402_WALLET。
安装前请注意
免费层限制为每个 IP 每天 1,000 次调用。十个复合端点仅限付费,按次以 USDC 通过 x402 协议在 Base 或 Solana 主网结算;客户端需处理 402 响应,设置 QUANTORACLE_X402_WALLET 即启用付费。输入数据会发送至第三方 QuantOracle API。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Quantoracle,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

quantoracle-mcp

[npm] [MIT License] [x402]

Model Context Protocol (MCP) server exposing 73 deterministic quant finance calculators to AI agents — Claude, ChatGPT, Cursor, Cline, or any MCP-compatible client. Every tool accepts JSON and returns JSON. Same inputs always produce the same outputs.

The math runs on the QuantOracle API; this package is the thin MCP transport layer that lets your agent call those endpoints as native tools.

Try the calculators in your browser first: the same engine powers 12 free interactive calculators at quantoracle.dev — useful for verifying outputs before wiring the MCP server into your agent.

What's included

73 deterministic financial computation tools across 8 categories:

CategoryExamples
Options pricingBlack-Scholes, implied vol, payoff diagrams, multi-leg strategies
DerivativesBinomial trees, barrier, Asian, lookback, volatility surface
Risk metricsSharpe, Sortino, VaR, CVaR, drawdown, Kelly, position sizing
PortfolioMean-variance optimization, risk parity, rebalancing, health scoring
StatisticsRegression, cointegration, Hurst, GARCH, distribution fits
Crypto / DeFiImpermanent loss, liquidation price, funding rate, DEX slippage
FXInterest rate parity, PPP, carry trade, forwards
Macro / TVMTaylor Rule, real yield, NPV, IRR, CAGR

Plus 10 composite workflows that bundle 5-15 calculator calls in a single response: backtest, hedging recommendations, full risk analysis, rebalance planning, options strategy optimizer, etc.

Install

bash
npx quantoracle-mcp

Or install globally:

bash
npm install -g quantoracle-mcpquantoracle-mcp

Configure (Claude Desktop)

Add to your claude_desktop_config.json:

json
{  "mcpServers": {    "quantoracle": {      "command": "npx",      "args": ["-y", "quantoracle-mcp"]    }  }}

Configure (Cursor / Cline / Continue)

In your MCP settings, add:

  • Command: npx
  • Arguments: -y quantoracle-mcp
  • Environment: none required for the free tier

Pricing

TierWhat you getWhat it costs
FreeAll 73 endpoints, 1,000 calls per IP per day, no signup, no API key$0
Paid (x402)Beyond the free tier; required for the 10 paid composite endpoints$0.002–$0.10 USDC per call depending on complexity

Paid calls settle automatically via the x402 protocol on Base mainnet or Solana mainnet. The MCP client (or wrapping framework) is responsible for handling the 402 Payment Required response and retrying with payment headers.

Default behavior: the package never spends money on its own. If a paid endpoint is called and no x402-capable wallet is wired into the client, the call returns a 402 error and exits cleanly. No automatic billing, no surprise charges.

Free-tier endpoints (calculator-only): every endpoint priced $0.002–$0.015. These are the bulk of the 73 endpoints and cover almost any quant-finance use case.

Paid-only endpoints (composites): /v1/risk/full-analysis, /v1/hedging/recommend, /v1/backtest/strategy, /v1/portfolio/rebalance-plan, /v1/options/strategy-optimizer, /v1/options/spread-scan, /v1/trade/evaluate, /v1/portfolio/health, /v1/pairs/signal, /v1/indicators/regime-classify. These wrap many calculator calls and are priced $0.04–$0.10.

Optional environment variables

VariableDefaultPurpose
QUANTORACLE_API_URLhttps://api.quantoracle.devOverride the API endpoint (e.g. for staging or self-hosted)
QUANTORACLE_X402_WALLET(none)If set, the server enables x402 payment for paid endpoints. Without this variable, paid endpoints return 402 and the agent receives a clean error

No QUANTORACLE_API_KEY is required for the free tier. The free tier is rate-limited per source IP, not per account.

Example — Claude Desktop session

After installing, ask Claude:

"Price a 30-day NVDA call with strike $185, spot $180, IV 28%."

Claude calls the options/price tool. Response:

Price: $4.92Greeks: Δ 0.43, Γ 0.043, ν 0.21, Θ -0.034, ρ 0.12Breakeven: $189.92

Or:

"Run a Monte Carlo simulation: $100K portfolio, 30 years, 7% return, 16% vol, 4% withdrawal. What's the success rate?"

Claude calls simulate/montecarlo. Response includes terminal-value distribution (P5/P25/median/P75/P95), probability of loss, probability of ruin, and CAGR.

Resources

License

MIT. See LICENSE.

来源:mcp-server/README.md,提交 20b3fe6

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v2.4.2最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分