X402 MCP logo

X402 MCP

Access 177 crypto intelligence endpoints with agent-signed USDC micropayments through the x402 protocol.

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": {
    "x402-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@carbon-cashmere/x402-mcp"
      ],
      "env": {
        "EVM_PRIVATE_KEY": "YOUR_VALUE_HERE",
        "SVM_PRIVATE_KEY": "YOUR_VALUE_HERE",
        "X402_API_BASE": "YOUR_VALUE_HERE",
        "X402_TOOL_LIMIT": "YOUR_VALUE_HERE",
        "X402_LOG_LEVEL": "YOUR_VALUE_HERE"
      }
    }
  }
}

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

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env EVM_PRIVATE_KEY=YOUR_VALUE_HERE --env SVM_PRIVATE_KEY=YOUR_VALUE_HERE --env X402_API_BASE=YOUR_VALUE_HERE --env X402_TOOL_LIMIT=YOUR_VALUE_HERE --env X402_LOG_LEVEL=YOUR_VALUE_HERE --transport stdio x402-mcp -- npx -y @carbon-cashmere/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

We hit an unexpected error while testing this listing automatically.

npx -y @carbon-cashmere/x402-mcp

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

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

The x402-mcp MCP server connects AI agents to Carbon & Cashmere’s crypto market intelligence API and its 177 paid endpoints. It exposes research tools for news, stablecoins, on-chain Bitcoin data, Bittensor, MANTIS, market snapshots, subscriptions, and sponsor tiers. Each paid call uses the x402 protocol to request payment, sign a USDC transaction locally, and retry the API request with the payment proof. Reach for it when an agent needs crypto market data on a pay-per-call basis without an API key or subscription.

Use cases

  • Analyze crypto news sentiment and market impact
  • Query stablecoin supply and chain distribution
  • Inspect Bitcoin on-chain activity
  • Rank Bittensor miners by emissions
  • Retrieve aggregated crypto market intelligence

Key features

  • 177 crypto market intelligence endpoints
  • Automatic x402 USDC micropayments
  • Local EVM and Solana wallet signing
  • Configurable tool exposure from 1 to 177
  • Discovery-only mode without wallet keys
  • Pay-per-call pricing from $0.003 to $0.50

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.

27/27 checks healthy over the last 117d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 12d ago via OSV.dev · @carbon-cashmere/x402-mcp (npm)

Adoption & maintenance

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

npm downloads293Package downloads in the last 30 days.
Last commit6mo agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.

How X402 MCP works

What x402-mcp MCP server does

The x402-mcp MCP server exposes Carbon & Cashmere’s crypto market intelligence API at api.carbon-cashmere.de as MCP tools. The catalog contains 177 paid endpoints, including analyzed news with sentiment and market impact, stablecoin supply and chain distribution data, Bitcoin on-chain metrics, Bittensor miner rankings, MANTIS subnet accuracy history, and aggregated intelligence snapshots.

The catalog also includes subscription products, sponsor tiers, daily and weekly reports, on-chain bundles, and specialized research routes. Endpoint prices range from $0.003 to $0.50 per call. By default, the server registers the top 100 tools, selected using server-side revenue, settlement, exploration, and description signals. Setting X402_TOOL_LIMIT=177 exposes the full catalog, including per-coin routes.

How it works

An agent calls an MCP tool, and the local process requests the corresponding API resource. If the API returns an x402 payment requirement, the process signs a payment using the configured wallet and retries the request with the payment signature. The API then returns the requested data to the agent.

The implementation uses Coinbase’s x402 v2 protocol. Settlement can use Base, Polygon, Arbitrum, World Chain, Solana, Algorand, or Stellar when the requested API response advertises that network. The server only signs networks listed in the API’s accepts[] response. Typical call latency is approximately two to three seconds.

Payment signing takes place on the local machine. The private keys remain in the local configuration and process; the signed EIP-712 or SIWS payload is sent to Carbon & Cashmere. Calls are limited by the wallet’s available balance, so the funded wallet also acts as the maximum spend cap.

Setup and configuration

Install the package through an MCP client using npx -y @carbon-cashmere/x402-mcp. The README provides configuration examples for Claude Desktop and says the same JSON configuration can be entered in Cursor, Cline, or Continue settings. Use a separate spending wallet rather than a primary wallet because the EVM key is stored in plaintext in the client configuration.

EVM_PRIVATE_KEY is used for EVM payments and must be a 0x-prefixed hexadecimal key. Fund it with USDC on a supported network; the documentation identifies Base mainnet as the lowest-cost option. SVM_PRIVATE_KEY is optional and uses a base58 Solana keypair for tools routed only to Solana.

X402_API_BASE changes the API base URL, X402_TOOL_LIMIT controls how many tools are registered from 1 to 177, and X402_LOG_LEVEL accepts debug, info, warn, or error. Without either wallet key, the x402-mcp MCP server runs in discovery-only mode: registration and free endpoints work, while paid calls return a 402 error.

Tools and capabilities

  • Query analyzed crypto news and market impact.
  • Inspect stablecoin capitalization, supply by coin, and chain distribution.
  • Retrieve Bitcoin hash rate, mempool, and miner-flow metrics.
  • Review Bittensor emissions and MANTIS realized-accuracy data.
  • Request aggregated intelligence, reports, bundles, subscriptions, and sponsor tiers.
  • Choose a smaller tool catalog or expose all 177 endpoints.

Limitations and notes

The service is pay-per-call rather than subscription-free: every paid invocation requires a USDC micropayment, with no API key or OAuth credential. The default catalog omits 77 endpoints, so agents that need specialized per-coin routes may require X402_TOOL_LIMIT=177. A wallet is not needed for discovery-only use, but paid requests cannot complete without appropriate funds and signing credentials.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

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

Frequently Asked Questions about X402 MCP

x402-mcp is an MCP server that connects AI agents to Carbon & Cashmere’s crypto market intelligence API. Its main tools cover analyzed news, stablecoins, Bitcoin on-chain metrics, Bittensor rankings, MANTIS accuracy, and aggregated market snapshots. Paid calls trigger local USDC micropayment signing through the x402 protocol before returning API data.

Install it with `npx -y @carbon-cashmere/x402-mcp` in an MCP client configuration. The README provides JSON settings for Claude Desktop and says the same configuration can be entered in Cursor, Cline, and Continue.

EVM_PRIVATE_KEY is required for EVM payments, while SVM_PRIVATE_KEY is optional for Solana-only routes. Starting the server without either key enables discovery-only mode, where tool registration and free endpoints work but paid calls return a 402 error.

The server exposes 100 tools by default. Set `X402_TOOL_LIMIT=177` to register the complete catalog, including specialized per-coin endpoints; lower values can reduce the number of tools presented to the agent.

Yes. Cursor must be configured with the package command and any wallet or catalog environment variables needed for the selected calls.

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/x402-mcp?style=directory)](https://allmcps.com/mcp/x402-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/x402-mcp"><img src="https://allmcps.com/api/badge/x402-mcp?style=directory" alt="X402 MCP on AllMCPs" /></a>