# x402-mcp [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/CarbonCashmere/x402-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 293  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/x402-mcp

## Description
177 crypto market intel endpoints with auto x402 USDC micropayments from your AI agent

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "x402-mcp": {
    "command": "npx",
    "args": ["-y","@carbon-cashmere/x402-mcp"],
    "env": {
      "EVM_PRIVATE_KEY": "",
      "SVM_PRIVATE_KEY": "",
      "X402_API_BASE": "",
      "X402_TOOL_LIMIT": "",
      "X402_LOG_LEVEL": ""
    }
  }
}
```

**Requires environment variables:** `EVM_PRIVATE_KEY`, `SVM_PRIVATE_KEY`, `X402_API_BASE`, `X402_TOOL_LIMIT`, `X402_LOG_LEVEL` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

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

_Full upstream README: https://allmcps.com/mcp/x402-mcp/readme_

