X402 MCP logo

X402 MCP

by tunedforai

MCP server for real-time crypto market data, cross-exchange order flow, macro analysis, and wallet risk checks.

Install X402 MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "tunedforai-x402-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@tunedforai/x402-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio tunedforai-x402-mcp -- npx -y @tunedforai/x402-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

The install command started, but didn't respond the way we expected when we tried to talk to it.

npx -y @tunedforai/x402-mcp

initialize succeeded but no response to tools/list.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

This stdio MCP server exposes seven stateless tools backed by x402.tunedfor.ai. It provides token coverage, market snapshots, cross-exchange order flow, macro regime analysis, combined analysis, address risk scores, and API information. Use it for crypto research, trading context, monitoring, or wallet screening without an API key.

Use cases

  • Check crypto prices, funding, open interest, and fear-and-greed data
  • Analyze cross-exchange CVD, whale activity, and liquidation pressure
  • Assess macro market regime using DXY, VIX, and directional signals
  • Review wallet risk across EVM and Solana addresses
  • Monitor supported tokens for pre-trade or low-frequency workflows

Key features

  • Seven stateless MCP tools
  • Market coverage across major crypto tokens and exchanges
  • Cross-exchange CVD and whale activity analysis
  • Macro regime and directional signal analysis
  • Wallet risk scoring for mixers, sanctions, and counterparties
  • Free MCP access with no API key or authentication

Tools7

What X402 MCP lets your agent do. Expand a tool for its parameters.

Verified live~599 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

16/17 checks healthy over the last 117d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 16d ago via OSV.dev · @tunedforai/x402-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
npm downloads116Package downloads in the last 30 days.
Last commit7mo agoMost recent push to the default branch.
Install checkInconclusiveStarted but did not complete the MCP handshake in our test.
Tools exposed7Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

From the project README

x402-mcp

Cross-exchange crypto market structure for AI agents. 20 exchanges, 26 fixed Pillar tokens plus any-token light coverage, 7 tools - light coverage, snapshot, orderflow, macro regime, full analysis, address risk, and API info. Free via MCP.

npm version License: MIT

x402-mcp is a stdio MCP server that exposes x402.tunedfor.ai - a real-time crypto market structure API - as 7 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):

config.json
{
  "mcpServers": {
    "x402": {
      "command": "npx",
      "args": ["-y", "@tunedforai/x402-mcp"]
    }
  }
}

Claude Code

Terminal
claude mcp add x402 -- npx -y @tunedforai/x402-mcp

Cline / Continue / other MCP clients

Use the same npx -y @tunedforai/x402-mcp invocation as the stdio command.

Manual

Terminal
npm install -g @tunedforai/x402-mcp
x402-mcp  # runs the stdio server

Tools

All 7 tools are stateless. No API key, no auth, no setup. Just call them.

ToolWhat it returnsREST equivalentFree via MCP / Paid REST
marketLightAny-token CoinGecko-backed market coverage: price, momentum, rank, liquidity/exchange context, and risk flags. Defaults to brief=off; set brief=full for Kimi briefPOST /data/lightFree / $0.05
marketSnapshotFree 16-field MCP subset: live price, funding, OI, buy/sell ratio, fear/greedPOST /dataFree / $0.20
marketAnalyzeMacro regime, DXY, VIX, directional signal + confidencePOST /analyze/marketFree / $0.25
marketOrderflowCross-exchange CVD, whale activity, liquidation pressurePOST /analyze/orderflowFree / $0.50
marketFullSnapshot + orderflow + LLM-synthesized analysisPOST /analyze/fullFree / $0.75
addressRiskWallet risk score (mixers, sanctions, counterparties). EVM + SolanaPOST /analyze/addressFree / $0.25
apiInfoPricing, quick-start, migration detailsGET /api_infoFree

Token coverage

Major L1s and L2s on the snapshot tier: BTC, ETH, SOL, XRP, BNB, DOGE, ADA, AVAX, LINK, ATOM, DOT, ARB, SUI, OP, LTC.

Extended orderflow tier: the above plus NEAR, AAVE, BCH, HBAR, SHIB, TON, TRX, UNI, XLM.

marketLight supports listed CoinGecko symbols beyond the fixed Pillar token list. Use it for lightweight coverage of tokens such as WCT when the fixed snapshot/orderflow tools reject a symbol. It defaults to brief=off for lower latency; request brief=full when you specifically need the Kimi-generated prose brief.

Call apiInfo from any MCP client for the authoritative current list.


MCP subset contract

marketSnapshot returns a free 16-field MCP subset for agent context and routing. It is not the paid REST /data schema.

Expected top-level MCP keys:

  • as_of_utc
  • token
  • snapshot
  • data_freshness
  • presentation_hint
  • next_steps

The snapshot object carries the 16 market data fields plus metadata. token and fetched_at are metadata keys, so a raw JSON key count may show 17 keys under snapshot even though the product contract is the 16-field market-data subset.

Do not require schema_version or coverage from MCP. Those belong to the paid REST contract unless the MCP product contract is intentionally expanded.

Every marketSnapshot response must keep the REST CTA:

text
This is a 16-field MCP subset. Paid REST /data at x402.tunedfor.ai ($0.20 USDC) returns the full 70-field snapshot including on-chain metrics, sentiment, and historical percentiles. No API key, pay-per-call from any wallet.

Examples

Pre-trade check

Code
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

Code
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.

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
  • Rate-limited to 60 calls/minute and 200 calls/hour per wallet — prevents stripmining; 429 on breach
  • 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:

  1. First request returns HTTP 402 Payment Required with the price
  2. Agent signs a USDC payment locally (private key never leaves the agent)
  3. Agent retries with the payment header attached
  4. 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: licensed third-party institutional data
  • 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 data — we serve derived, computed aggregates. All raw source fields are transformed into our own composite signals before responses are returned.


Links


License

MIT © Tuned For AI

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about X402 MCP

No. The MCP server requires no API key, authentication, or setup beyond installing and running it.

The server provides marketLight, marketSnapshot, marketAnalyze, marketOrderflow, marketFull, addressRisk, and apiInfo.

The MCP wrapper is free with rate limits. The corresponding REST endpoints use pay-per-call USDC payments through x402.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewX402 MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/tunedforai-x402-mcp?style=directory)](https://allmcps.com/mcp/tunedforai-x402-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/tunedforai-x402-mcp"><img src="https://allmcps.com/api/badge/tunedforai-x402-mcp?style=directory" alt="X402 MCP on AllMCPs" /></a>