X402 MCP
Hundreds of x402-paid APIs as MCP tools, auto-discovered from Coinbase Bazaar. USDC on…
- Pricing
- Open source
- Runs
- Locally
- Version
- 1.0.4
- Listing updated
- 6 days ago
About X402 MCP
X402 MCP is an open-source MCP server. It runs locally on your machine and is started by your AI client.
Hundreds of x402-paid APIs as MCP tools, auto-discovered from Coinbase Bazaar. USDC on Base+Solana.
Install
Run in a terminal
claude mcp add x402-mcp --env X402_PRIVATE_KEY='<X402_PRIVATE_KEY>' -- npx -y x402node-mcpAdd to claude_desktop_config.json
{
"mcpServers": {
"x402-mcp": {
"command": "npx",
"args": [
"-y",
"x402node-mcp"
],
"env": {
"X402_PRIVATE_KEY": "<X402_PRIVATE_KEY>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"x402-mcp": {
"command": "npx",
"args": [
"-y",
"x402node-mcp"
],
"env": {
"X402_PRIVATE_KEY": "<X402_PRIVATE_KEY>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"x402-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"x402node-mcp"
],
"env": {
"X402_PRIVATE_KEY": "<X402_PRIVATE_KEY>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"x402-mcp": {
"command": "npx",
"args": [
"-y",
"x402node-mcp"
],
"env": {
"X402_PRIVATE_KEY": "<X402_PRIVATE_KEY>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"x402-mcp": {
"command": "npx",
"args": [
"-y",
"x402node-mcp"
],
"env": {
"X402_PRIVATE_KEY": "<X402_PRIVATE_KEY>"
}
}
}
}Using several servers? Build one config file with the MCP config generator.
Configuration
X402_PRIVATE_KEYBase EOA private key (hex, 0x-prefixed) with USDC for signing x402 paymentsRequired
Pricing
Open source
X402 MCP FAQ
Is X402 MCP free?
Yes. X402 MCP is open source, so you can use and self-host it for free.
How do I add X402 MCP to Claude Code?
Run this command in your terminal: claude mcp add x402-mcp --env X402_PRIVATE_KEY='<X402_PRIVATE_KEY>' -- npx -y x402node-mcp
Where this comes from
- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.