perpspec for AI agents
perp exchange rules and funding as tools: an MCP server, a REST API and pay-per-call with x402. no account needed to try.
MCP
streamable HTTP endpoint https://perpspec.com/mcp. add it to Claude, Cursor or any MCP client:
{
"mcpServers": {
"perpspec": {
"url": "https://perpspec.com/mcp",
"headers": {
"X-API-Key": "optional: your key"
}
}
}
}
- get_funding Current funding for one asset (e.g. BTC, ETH, SOL) on every perp exchange that lists it, annualized with each market's own 1h/4h/8h interval, plus 7-day average and 24h volume. Use to answer 'where is funding highest/lowest'.
- best_funding_spreads Best long-low/short-high funding pairs across exchanges, liquid markets only ($1M+ 24h volume per leg), ranked by 30 days of carry net of round-trip taker fees, with days to break even.
- cost_to_hold Fees in and out plus funding (7-day average) for holding a position, per exchange, cheapest first, with whether the leverage is allowed. Use to choose where to open a position.
- venue_rules Rule sheet for perp exchanges: funding interval, formula and cap, base fees, max leverage range, sources. Omit venue for all 11.
- list_markets Per-market max leverage, funding interval and cap, taker/maker fee and OI/position limits. Filter by venue, asset or text.
- rule_changes Changelog of rule changes (funding interval/cap, fees, leverage, listings, delistings, doc edits) with a plain-language 'why it matters'. Check before trading on rules you cached. Free/pay-per-call: changes 1-30 days old; Pro: live + history.
- funding_history Settled funding payments per market with the interval in force at each payment: Binance since 2019, Bybit 2020, Aster 2021, Hyperliquid/dYdX 2023, more. asset= includes delisted markets (no survivorship bias). Pro or x402.
- market_warnings Markets that are reduce-only, close-only or have a delisting date set. Check before opening or holding a position.
three ways to pay
- trial: 20 MCP calls a day per IP with no key (20 rows each).
- api key: free key at /login (60 req/h, 50 rows/call), or Pro $9.99/mo: 1,000 req/h, no row caps, live rule changes, funding history, webhooks. subscribe.
- x402 (launching soon): no account; pay each call in USDC on Base. send the request, get HTTP 402 with the price, pay, retry. prices rise with use so heavy agents move to Pro:
| calls by your wallet, last 30 days | 0-99 | 100-499 | 500+ |
|---|---|---|---|
| data calls / MCP tools | $0.01 | $0.02 | $0.05 |
| funding history | $0.05 | $0.10 | $0.25 |
paid calls return up to 200 rows. every paid response carries X-Perpspec-Spent-30d; past ~200 calls a month, Pro is cheaper. send X-Payer: <your wallet> to get your tier's quote up front.
for crawlers and LLMs
/llms.txt · /llms-full.txt · every page has a Markdown twin at the same URL + .md · OpenAPI docs