x402-mcp is a stdio MCP server that wraps the live cryptocurrency market structure API of x402.tunedfor.ai into 7 tools, callable by any MCP-compatible client (such as Claude Desktop, Cursor, Cline, Windsurf, Claude Code). The service provides cross-exchange market data for AI agents, covering 20 exchanges, 26 fixed Pillar tokens, and lightweight coverage of arbitrary tokens.
Purpose To provide AI agents with live cryptocurrency market structure information, including cross-exchange order flow, prices, funding rates, open interest snapshots, CVD, whale activity, and OHLCV history, to support trading decisions or analysis.
Main capabilities 7 tools in total: lightweight coverage (marketLight), snapshot (marketSnapshot), order flow (orderflow), macro regime (macro regime), full analysis (full analysis), address risk (address risk), and API info (apiInfo). All tools are stateless, require no API key, no authentication, and no setup. The snapshot tier covers major L1s and L2s: BTC, ETH, SOL, XRP, BNB, DOGE, ADA, AVAX, LINK, ATOM, DOT, ARB, SUI, OP, LTC. The extended order flow tier adds NEAR, AAVE, BCH, HBAR, SHIB, TON, TRX, UNI, XLM on top of that. marketLight supports CoinGecko symbols outside the fixed Pillar token list for lightweight coverage, defaults to brief=off to reduce latency, and can request brief=full to get a Kimi-generated text brief. The authoritative current list can be obtained via apiInfo. marketSnapshot returns a free 16-field MCP subset for agent context and routing, and is not the paid REST /data mode. The snapshot object contains 16 market data fields plus metadata; token and fetched_at are metadata keys, so the raw JSON key count may show 17 keys, but the product contract is a 16-field market data subset. Do not rely on schema_version in MCP or coverage, these are part of the paid REST contract. Every marketSnapshot response must preserve the REST CTA.
How to use For Claude Desktop, Cursor, Windsurf, add to MCP config (on macOS at ~/Library/Application Support/Claude/claude_desktop_config.json, similar on other OSes). For Cline, Continue, or other MCP clients, use the same npx -y @tunedforai/x402-mcp invocation as the stdio command. All tools can be called directly.
Free MCP vs Paid REST The MCP wrapper is free but rate-limited, suitable for testing, prototyping, low-frequency agent workflows, and personal use. Production agents (24/7 polling, multi-token monitoring, large-scale backtesting) should use the paid REST endpoints at x402.tunedfor.ai. REST features: pay-per-call with USDC on Base or Solana via the x402 protocol; no API keys, the agent signs payments locally, private keys never leave the machine; per-wallet rate limits of 60/minute and 200/hour, exceeding which returns 429; no subscription, no monthly minimum fee. You can call apiInfo through any MCP client to get current pricing, migration guides, and SDK examples.
How x402 payments work (REST tier) When an agent calls a paid REST endpoint: the first request returns HTTP 402 Payment Required along with the price; the agent signs the USDC payment locally (the private key never leaves the agent); the agent retries with the payment header attached; the server verifies on-chain settlement and returns the data. No account, API key, or credit card required, just USDC and a wallet.
Data sources Prices and market data: OKX, Coinbase public APIs; funding rates/open interest/liquidations: Coinalyze (commercial license); on-chain metrics, exchange flows, whale ratios: licensed third-party institutional data; cross-exchange order flow (CVD, whale bars, liquidation aggregation): WebSocket aggregator across 20 exchanges into InfluxDB, normalized into 1-minute bars; macro context (DXY, VIX, Treasury yields): FRED + Finviz; Fear & Greed Index: alternative.me. Raw exchange data is not redistributed, only derived computed aggregates are provided. All raw source fields are transformed into proprietary composite signals before being returned in responses.
Use cases Suitable for AI agent workflows that need real-time cryptocurrency market data, such as trading analysis, market monitoring, order flow research, etc. Free MCP is suitable for testing and low-frequency queries, paid REST is suitable for high-throughput production needs.
Limitations The MCP version has rate limits, and paid REST has rate limits (60/minute and 200/hour per wallet). The MCP marketSnapshot returns a 16-field subset, not the full REST schema. Do not rely on schema_version or coverage in MCP. Product contracts may be updated; apiInfo is authoritative.
Service, Docs & Resources Service: x402.tunedfor.ai; REST docs: x402.tunedfor.ai/catalog; Quick start: x402.tunedfor.ai/llms.txt; npm: @tunedforai/x402-mcp; Smithery: smithery.ai/server/@tunedforai/x402-mcp; Issues/requests: github.com/tunedforai/x402-mcp/issues; x402 protocol: x402.org; MIT © Tuned For AI.