What is the x402-market MCP server?
Let AI agents pay-per-call for any HTTP API via x402 on Base mainnet. One tool: pay_and_call.
How to install x402-market
Copy-paste configuration for popular MCP clients.
MARKET_API_URLMarketplace API base URL.
MCP_BUYER_PRIVATE_KEYsecretFunded buyer wallet private key (0x-prefixed). Required for pay_and_call; read-only tools work without it.
BASE_RPC_URLBase RPC endpoint. Defaults to Base mainnet public RPC; Alchemy/QuickNode recommended for higher rate limits.
BASE_CHAIN_ID8453 = Base mainnet (default, matches live listings). 84532 = Base Sepolia testnet.
MCP_MAX_PRICEHard cap on per-call cost (USDC). Refuses to pay above this.
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@x402-market/mcp-server"
],
"env": {
"MARKET_API_URL": "<YOUR_MARKET_API_URL>",
"MCP_BUYER_PRIVATE_KEY": "<YOUR_MCP_BUYER_PRIVATE_KEY>",
"BASE_RPC_URL": "<YOUR_BASE_RPC_URL>",
"BASE_CHAIN_ID": "<YOUR_BASE_CHAIN_ID>",
"MCP_MAX_PRICE": "<YOUR_MCP_MAX_PRICE>"
}
}
}
}{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@x402-market/mcp-server"
],
"env": {
"MARKET_API_URL": "<YOUR_MARKET_API_URL>",
"MCP_BUYER_PRIVATE_KEY": "<YOUR_MCP_BUYER_PRIVATE_KEY>",
"BASE_RPC_URL": "<YOUR_BASE_RPC_URL>",
"BASE_CHAIN_ID": "<YOUR_BASE_CHAIN_ID>",
"MCP_MAX_PRICE": "<YOUR_MCP_MAX_PRICE>"
}
}
}
}{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@x402-market/mcp-server"
],
"env": {
"MARKET_API_URL": "<YOUR_MARKET_API_URL>",
"MCP_BUYER_PRIVATE_KEY": "<YOUR_MCP_BUYER_PRIVATE_KEY>",
"BASE_RPC_URL": "<YOUR_BASE_RPC_URL>",
"BASE_CHAIN_ID": "<YOUR_BASE_CHAIN_ID>",
"MCP_MAX_PRICE": "<YOUR_MCP_MAX_PRICE>"
}
}
}
}{
"servers": {
"mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@x402-market/mcp-server"
],
"env": {
"MARKET_API_URL": "<YOUR_MARKET_API_URL>",
"MCP_BUYER_PRIVATE_KEY": "<YOUR_MCP_BUYER_PRIVATE_KEY>",
"BASE_RPC_URL": "<YOUR_BASE_RPC_URL>",
"BASE_CHAIN_ID": "<YOUR_BASE_CHAIN_ID>",
"MCP_MAX_PRICE": "<YOUR_MCP_MAX_PRICE>"
}
}
}
}claude mcp add mcp-server --env MARKET_API_URL=<YOUR_MARKET_API_URL> --env MCP_BUYER_PRIVATE_KEY=<YOUR_MCP_BUYER_PRIVATE_KEY> --env BASE_RPC_URL=<YOUR_BASE_RPC_URL> --env BASE_CHAIN_ID=<YOUR_BASE_CHAIN_ID> --env MCP_MAX_PRICE=<YOUR_MCP_MAX_PRICE> -- npx -y @x402-market/mcp-serverRelated MCP servers
Scrapling MCP Server
Give your AI agent stealth web scraping with Cloudflare bypass and CSS selection, powered by Scrapling.
Chrome DevTools MCP
Give your AI coding agent full control of a live Chrome browser for automation, debugging, and performance analysis.
com.puter/mcp-server
Let AI agents manage your Puter files, websites, and serverless workers over MCP.
Browser automation for AI agents via MCP, powering ByteDance's Agent TARS hybrid GUI/DOM browser control.
Run arbitrary shell commands from an MCP-connected AI agent.
Filesystem access MCP server from ByteDance's UI-TARS/Agent TARS ecosystem.