kwant
Quant Intelligence · MCP over Streamable HTTP · Cloudflare edge

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.

endpoint  https://kwant.sh/mcp

Three layers

Market data is a commodity. Kwant turns it into judgment — data becomes signal, signal becomes intelligence.

01 · DATA

Clean market data

Point-in-time quotes, OHLCV history, and fundamentals for US & TSX names — typed, cached at the edge.

get_quote
get_price_history
get_fundamentals
02 · SIGNAL

Indicators & signals

Technical indicators, event detection, and risk/return statistics — the readable signals under the noise.

compute_indicator · detect_signals
compute_stats · compare_tickers
compute_correlation_matrix
03 · INTELLIGENCE

Factor scores & strategy

Screen and score whole universes, construct weighted portfolios, and backtest strategies. The quant desk's judgment.

screen · screen_with_scores
compute_universe_scores · construct_portfolio
backtest · run_portfolio_backtest

16 tools · one endpoint

Discover them over tools/list. Priced per query at call time.

ToolDoesLayerQuery
get_quoteLatest point-in-time quotedata$0.005
get_price_historyOHLCV bars over an interval/rangedata$0.005
get_fundamentalsProfile + key ratios (mkt cap, PE, sector…)data$0.005
compute_indicatorRSI, MACD, SMA, EMA, BBANDS, ATR, ADX, STOCHsignal$0.005
detect_signalsGolden/death cross, RSI bands, MACD cross, breakoutsignal$0.005
compute_statsVolatility, sharpe, max drawdown, returns, betasignal$0.005
compare_tickersRank N tickers by a chosen metricsignal$0.005
compute_correlation_matrixPairwise correlation across a basketsignal$0.010
screenFilter a universe by fundamental/technical rulesintel$0.010
screen_with_scoresScreen + rank with composite factor scoresintel$0.010
build_monthly_universeConstruct a point-in-time monthly universeintel$0.010
compute_universe_scoresFactor scores across a whole universeintel$0.010
construct_portfolioBuild a weighted portfolio from a selectionintel$0.010
compute_portfolio_statsPortfolio-level risk/return statisticsintel$0.010
backtestBacktest a signal/strategy on one tickerintel$0.010
run_portfolio_backtestMonthly-rebalanced multi-asset backtestintel$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.

$0.005 data/signal · $0.010 intelligence — per query

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.

Same per-query price, drawn from balance

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.txtPlain-text capability + endpoint + pricing summary for LLMs
/.well-known/ai-plugin.jsonPlugin-style manifest pointing at the MCP endpoint
/mcpThe MCP endpoint. Needs a Kwant API key; initialize + tools/list carry no charge
/sitemap.xml · /robots.txtCrawl 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.