x402 crypto market structure
Provides market data and analysis for the AMP cryptocurrency token, including live price, funding, open interest, buy/sell ratios, and historical OHLCV data.
Integrates with Binance exchange data as part of cross-exchange market structure analysis, providing orderflow, CVD, whale activity, and liquidation pressure metrics.
Integrates with Coinbase exchange data as part of cross-exchange market structure analysis, providing price data, orderflow metrics, and market aggregates.
Uses InfluxDB to store and serve normalized 1-minute bars of cross-exchange orderflow data aggregated from 20 cryptocurrency exchanges.
Provides market data and analysis for the NEAR cryptocurrency token, including live price, funding, open interest, buy/sell ratios, and historical OHLCV data.
Integrates with OKX exchange data as part of cross-exchange market structure analysis, providing price data and market aggregates.
Provides wallet risk analysis for Solana addresses, including risk scoring for mixers, sanctions, and counterparties, and supports Solana-based USDC payments for REST API access.
Provides market data and analysis for the SUI cryptocurrency token, including live price, funding, open interest, buy/sell ratios, and historical OHLCV data.
Provides market data and analysis for the TON cryptocurrency token, including live price, funding, open interest, buy/sell ratios, and historical OHLCV data.
Provides market data and analysis for the XRP cryptocurrency token, including live price, funding, open interest, buy/sell ratios, and historical OHLCV data.
x402-mcp
Cross-exchange crypto market structure for AI agents. 20 exchanges, 26 tokens, 9 tools — orderflow, CVD, whale activity, funding/OI, 7-year OHLCV, on-chain address risk. Free via MCP.
x402-mcp is a stdio MCP server that exposes x402.tunedfor.ai — a real-time crypto market structure API — as 9 tools any MCP-compatible client (Claude Desktop, Cursor, Cline, Windsurf, Claude Code) can call. Free via MCP for testing and low-frequency queries; paid REST at the same endpoints for production agents that need higher throughput.
Install
Claude Desktop / Cursor / Windsurf
Add to your MCP config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, equivalent on other OS):
{
"mcpServers": {
"x402": {
"command": "npx",
"args": ["-y", "@tunedforai/x402-mcp"]
}
}
}Claude Code
claude mcp add x402 -- npx -y @tunedforai/x402-mcpCline / Continue / other MCP clients
Use the same npx -y @tunedforai/x402-mcp invocation as the stdio command.
Manual
npm install -g @tunedforai/x402-mcp
x402-mcp # runs the stdio serverTools
All 9 tools are stateless. No API key, no auth, no setup. Just call them.
Tool | What it returns | REST equivalent | Free via MCP / Paid REST |
| Live price, funding, OI, buy/sell ratio, fear/greed |
| Free / $0.20 |
| Macro regime, DXY, VIX, directional signal + confidence |
| Free / $0.25 |
| Cross-exchange CVD, whale activity, liquidation pressure |
| Free / $0.50 |
| Snapshot + orderflow + LLM-synthesized analysis |
| Free / $0.75 |
| Wallet risk score (mixers, sanctions, counterparties). EVM + Solana |
| Free / $0.25 |
| Hourly OHLCV with buy/sell flow split. Up to 5,000 bars, 7-year history |
| Free / $5.00 |
| Daily OHLCV with buy/sell flow split. Up to 5,000 bars, 7-year history |
| Free / $5.00 |
| 5-minute OHLCV. High-resolution intraday |
| Free / $1.00 |
| Pricing, quick-start, migration details |
| Free |
Token coverage
Snapshot tier (17 tokens): BTC, ETH, SOL, XRP, BNB, DOGE, ADA, AVAX, LINK, ATOM, DOT, ARB, SUI, OP, LTC, AMP, ZEC
Orderflow + history tier (26 tokens): all of the above + NEAR, AAVE, BCH, HBAR, SHIB, TON, TRX, UNI, XLM
Examples
Pre-trade check
You: marketSnapshot BTC
LLM: BTC at $74,180. Buy ratio 58% — bullish lean. Funding rate +0.012%
(mild long bias). Open interest $14.2B. Fear & Greed: 32 (Fear).
Snapshot 12 sec old.Cross-exchange orderflow
You: marketOrderflow ETH
LLM: ETH cross-exchange CVD: -$1.2M last hour (sell-side dominant).
Whale activity: 8 large bars across Binance/Coinbase/Bybit.
Liquidations: $890K longs, $230K shorts. Pressure: bearish.Backtest data
You: history1d BTC limit=365
LLM: [returns 365 daily bars: open/high/low/close/volume/buy_volume/sell_volume]Free MCP vs Paid REST
The MCP wrapper is free with rate limits — perfect for testing, prototyping, low-frequency agent workflows, and personal use.
For production agents (24/7 polling, multi-token monitoring, backtesting at scale), use the paid REST endpoints at x402.tunedfor.ai. REST is:
Pay-per-call in USDC on Base or Solana via the x402 protocol
No API keys — your agent signs payment locally; the private key never leaves your machine
No rate limits — pay for what you use
No subscriptions — no monthly minimums
Call apiInfo from any MCP client to get the current pricing schedule, migration guide, and SDK examples.
How x402 payment works (REST tier)
When your agent calls a paid REST endpoint:
First request returns
HTTP 402 Payment Requiredwith the priceAgent signs a USDC payment locally (private key never leaves the agent)
Agent retries with the payment header attached
Server verifies on-chain settlement and returns the data
No accounts, no API keys, no credit cards. Just USDC and a wallet.
Data sources
Price + ticker: OKX, Coinbase public APIs
Funding / OI / liquidations: Coinalyze (commercial license)
On-chain metrics, exchange flows, whale ratios: Santiment (commercial license)
Cross-exchange orderflow (CVD, whale bars, liq aggregations): 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
We don't redistribute raw exchange ticks — we serve derived, computed aggregates.
Links
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
License
MIT © Tuned For AI
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/tunedforai/x402-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server