MCP Server
MCP
x402-market
Let AI agents pay-per-call for any HTTP API via x402 on Base mainnet. One tool: pay_and_call.
Install
npx -y @x402-market/[email protected]
Configuration Example
{
"remotes": [],
"packages": [
{
"registryType": "npm",
"identifier": "@x402-market/mcp-server",
"version": "0.2.0-alpha.1",
"transport": {
"type": "stdio"
},
"environmentVariables": [
{
"description": "Marketplace API base URL.",
"default": "https://x402-market-api.lien-studio-akiyama.workers.dev",
"name": "MARKET_API_URL"
},
{
"description": "Funded buyer wallet private key (0x-prefixed). Required for pay_and_call; read-only tools work without it.",
"isSecret": true,
"name": "MCP_BUYER_PRIVATE_KEY"
},
{
"description": "Base RPC endpoint. Defaults to Base mainnet public RPC; Alchemy/QuickNode recommended for higher rate limits.",
"default": "https://mainnet.base.org",
"name": "BASE_RPC_URL"
},
{
"description": "8453 = Base mainnet (default, matches live listings). 84532 = Base Sepolia testnet.",
"format": "number",
"default": "8453",
"name": "BASE_CHAIN_ID"
},
{
"description": "Hard cap on per-call cost (USDC). Refuses to pay above this.",
"default": "1.0",
"name": "MCP_MAX_PRICE"
}
]
}
]
}
mcp
model-context-protocol
npm
By
Comments
Sign in to leave a comment