Quant intelligence,
as an endpoint.
Give your agent a quant brain. Point any MCP client at one URL and it reasons about markets like a quant desk — signals, factor scores, screens, backtests, portfolios over US & TSX equities. Structured JSON in, structured JSON out. Pay per query. No install. No Python.
https://kwant.sh/mcpThree layers
Market data is a commodity. Kwant turns it into judgment — data becomes signal, signal becomes intelligence.
Clean market data
Point-in-time quotes, OHLCV history, and fundamentals for US & TSX names — typed, cached at the edge.
get_price_history
get_fundamentals
Indicators & signals
Technical indicators, event detection, and risk/return statistics — the readable signals under the noise.
compute_stats · compare_tickers
compute_correlation_matrix
Factor scores & strategy
Screen and score whole universes, construct weighted portfolios, and backtest strategies. The quant desk's judgment.
compute_universe_scores · construct_portfolio
backtest · run_portfolio_backtest
16 tools · one endpoint
Discover them over tools/list. Priced per query at call time.
| Tool | Does | Layer | Query |
|---|---|---|---|
get_quote | Latest point-in-time quote | data | $0.005 |
get_price_history | OHLCV bars over an interval/range | data | $0.005 |
get_fundamentals | Profile + key ratios (mkt cap, PE, sector…) | data | $0.005 |
compute_indicator | RSI, MACD, SMA, EMA, BBANDS, ATR, ADX, STOCH | signal | $0.005 |
detect_signals | Golden/death cross, RSI bands, MACD cross, breakout | signal | $0.005 |
compute_stats | Volatility, sharpe, max drawdown, returns, beta | signal | $0.005 |
compare_tickers | Rank N tickers by a chosen metric | signal | $0.005 |
compute_correlation_matrix | Pairwise correlation across a basket | signal | $0.010 |
screen | Filter a universe by fundamental/technical rules | intel | $0.010 |
screen_with_scores | Screen + rank with composite factor scores | intel | $0.010 |
build_monthly_universe | Construct a point-in-time monthly universe | intel | $0.010 |
compute_universe_scores | Factor scores across a whole universe | intel | $0.010 |
construct_portfolio | Build a weighted portfolio from a selection | intel | $0.010 |
compute_portfolio_stats | Portfolio-level risk/return statistics | intel | $0.010 |
backtest | Backtest a signal/strategy on one ticker | intel | $0.010 |
run_portfolio_backtest | Monthly-rebalanced multi-asset backtest | intel | $0.010 |
Built for humans & agents
For the quant dev
Skip the data plumbing — no yfinance wrappers, pandas, or cron jobs to babysit. One endpoint returns clean, typed intelligence, from a single quote to a full monthly-rebalanced portfolio backtest.
For the agent
A first-class MCP tool surface. Authenticate with a key, discover tools over
tools/list, query them with JSON args, and pay per query in USDC via
x402 or a prepaid balance. The handshake carries no charge.
Quickstart
Any MCP client. Every request carries your API key; the handshake & tools/list carry no charge — only tools/call is billed.
# 1 — handshake (no charge): get serverInfo + a session id curl -s https://kwant.sh/mcp \ -H 'Authorization: Bearer kwant_…' \ -H 'Content-Type: application/json' \ -H 'Accept: application/json, text/event-stream' \ -d '{"jsonrpc":"2.0","id":1,"method":"initialize", "params":{"protocolVersion":"2025-03-26","capabilities":{}, "clientInfo":{"name":"demo","version":"0"}}}' # 2 — list tools (no charge) curl ... -H 'Authorization: Bearer kwant_…' \ -d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}' # 3 — query intelligence (key debits balance, or add an x402 X-Payment header) curl ... -H 'Authorization: Bearer kwant_…' \ -d '{"jsonrpc":"2.0","id":3,"method":"tools/call", "params":{"name":"get_quote","arguments":{"ticker":"AAPL"}}}'
Add to Claude / any MCP client as a remote server:
"kwant": { "url": "https://kwant.sh/mcp" }
Tickers: US symbols bare (AAPL); TSX as RY.TO or TSX:RY;
TSX-V as .V; indices as ^GSPC.
Pricing & payment rails
Per-query, metered at the edge. Two prices: $0.005 data/signal, $0.010 intelligence.
x402 — pay in USDC
Per-query crypto payment settled on-chain (Base mainnet, real USDC via the CDP
facilitator). Send an X-Payment header; get the tx hash back in
X-Payment-Response. Built for autonomous agents with a wallet.
Prepaid — pay by card
Top up a balance with a Stripe Checkout link, then each query debits it.
Get a key, POST /topup, watch GET /balance.
Best for a human developer running an agent.
An authenticated-but-unpaid query returns a unified HTTP 402 advertising every
enabled rail (Accept-Payment: x402, prepaid). Capability negotiation is
never charged.
For agents
If you are an autonomous agent or a crawler, everything you need is machine-readable:
/llms.txt | Plain-text capability + endpoint + pricing summary for LLMs |
/.well-known/ai-plugin.json | Plugin-style manifest pointing at the MCP endpoint |
/mcp | The MCP endpoint. Needs a Kwant API key; initialize + tools/list carry no charge |
/sitemap.xml · /robots.txt | Crawl map. All reputable AI crawlers allowed |
With a provisioned key, discover tools dynamically, price each query against the table above, and settle per call with x402 — no human in the loop at query time.