npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

quantoracle-mcp

v2.4.1

Published

63 deterministic quant calculators + 10 composite workflows for AI agents via MCP. Options pricing, Greeks, derivatives, risk metrics, portfolio optimization, Monte Carlo, statistics, crypto/DeFi, macro/FX, TVM, strategy backtesting, rebalance planning, o

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:

| Category | Examples | |---|---| | Options pricing | Black-Scholes, implied vol, payoff diagrams, multi-leg strategies | | Derivatives | Binomial trees, barrier, Asian, lookback, volatility surface | | Risk metrics | Sharpe, Sortino, VaR, CVaR, drawdown, Kelly, position sizing | | Portfolio | Mean-variance optimization, risk parity, rebalancing, health scoring | | Statistics | Regression, cointegration, Hurst, GARCH, distribution fits | | Crypto / DeFi | Impermanent loss, liquidation price, funding rate, DEX slippage | | FX | Interest rate parity, PPP, carry trade, forwards | | Macro / TVM | Taylor 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

npx quantoracle-mcp

Or install globally:

npm install -g quantoracle-mcp
quantoracle-mcp

Configure (Claude Desktop)

Add to your claude_desktop_config.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

| Tier | What you get | What it costs | |---|---|---| | Free | All 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

| Variable | Default | Purpose | |---|---|---| | QUANTORACLE_API_URL | https://api.quantoracle.dev | Override 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.92
Greeks: Δ 0.43, Γ 0.043, ν 0.21, Θ -0.034, ρ 0.12
Breakeven: $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

  • Browser calculators: https://quantoracle.dev (12 free calculators)
  • Full API documentation: https://api.quantoracle.dev/openapi.json
  • Endpoint catalog: https://api.quantoracle.dev/tools
  • Source repository: https://github.com/QuantOracledev/quantoracle
  • x402 protocol: https://x402.org
  • Issues: https://github.com/QuantOracledev/quantoracle/issues

License

MIT. See LICENSE.