Exposes x402-paid APIs discovered from the Coinbase CDP Bazaar and pays for them with stablecoin micropayments.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add x402 --env X402_PRIVATE_KEY='<X402_PRIVATE_KEY>' -- npx -y x402node-mcp~/.codex/config.toml
[mcp_servers.x402]
command = "npx"
args = ["-y", "x402node-mcp"]
env = { X402_PRIVATE_KEY = "<X402_PRIVATE_KEY>" }
# codex mcp add x402 --env X402_PRIVATE_KEY='<X402_PRIVATE_KEY>' -- npx -y x402node-mcp~/.cursor/mcp.json
{
"mcpServers": {
"x402": {
"command": "npx",
"args": [
"-y",
"x402node-mcp"
],
"env": {
"X402_PRIVATE_KEY": "<X402_PRIVATE_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"x402": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"x402node-mcp"
],
"env": {
"X402_PRIVATE_KEY": "<X402_PRIVATE_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"x402": {
"command": "npx",
"args": [
"-y",
"x402node-mcp"
],
"env": {
"X402_PRIVATE_KEY": "<X402_PRIVATE_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"x402": {
"command": "npx",
"args": [
"-y",
"x402node-mcp"
],
"env": {
"X402_PRIVATE_KEY": "<X402_PRIVATE_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"x402": {
"command": "npx",
"args": [
"-y",
"x402node-mcp"
],
"env": {
"X402_PRIVATE_KEY": "<X402_PRIVATE_KEY>"
}
}
}
}Environment variables
X402_PRIVATE_KEY
Replace the placeholders with your own credentials and keep them out of version control.