x402-market MCP Server
by asaishotaio.github.AsaiShota/mcp-serverv0.2.0-alpha.1
Let AI agents pay-per-call for any HTTP API via x402 on Base mainnet. One tool: pay_and_call.
context tax
queued
security
queued
cold start
queued
freshness
Slowing5mo ago
Install x402-market MCP server
Install in Claude Code
claude mcp add asaishota -e MCP_BUYER_PRIVATE_KEY='<mcp-buyer-private-key>' -- npx -y @x402-market/mcp-serverInstall in Cursor
{
"mcpServers": {
"asaishota": {
"command": "npx",
"args": [
"-y",
"@x402-market/mcp-server"
],
"env": {
"MCP_BUYER_PRIVATE_KEY": "<mcp-buyer-private-key>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"asaishota": {
"command": "npx",
"args": [
"-y",
"@x402-market/mcp-server"
],
"env": {
"MCP_BUYER_PRIVATE_KEY": "<mcp-buyer-private-key>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"asaishota": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@x402-market/mcp-server"
],
"env": {
"MCP_BUYER_PRIVATE_KEY": "<mcp-buyer-private-key>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"asaishota": {
"command": "npx",
"args": [
"-y",
"@x402-market/mcp-server"
],
"env": {
"MCP_BUYER_PRIVATE_KEY": "<mcp-buyer-private-key>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| MARKET_API_URL | — | — | Marketplace API base URL. |
| MCP_BUYER_PRIVATE_KEY | — | yes | Funded buyer wallet private key (0x-prefixed). Required for pay_and_call; read-only tools work without it. |
| BASE_RPC_URL | — | — | Base RPC endpoint. Defaults to Base mainnet public RPC; Alchemy/QuickNode recommended for higher rate limits. |
| BASE_CHAIN_ID | — | — | 8453 = Base mainnet (default, matches live listings). 84532 = Base Sepolia testnet. |
| MCP_MAX_PRICE | — | — | Hard cap on per-call cost (USDC). Refuses to pay above this. |
Freshness
Slowing — last maintenance signal 5mo ago. The newest of the signals below sets the band.
Last commit (default branch)
no data · GitHub
Latest release
no data · GitHub
Package published
no data · npm/PyPI
Registry entry updated
2026-05-02 · 5mo ago · official registry · v0.2.0-alpha.1
FAQ
›How do I install the x402-market MCP server in Claude Code?
Run: claude mcp add asaishota -e MCP_BUYER_PRIVATE_KEY='<mcp-buyer-private-key>' -- npx -y @x402-market/mcp-server. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does x402-market require an API key?
Yes. It expects MCP_BUYER_PRIVATE_KEY, of which 1 is a secret.
›Can I use x402-market as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is x402-market in the official MCP registry?
Yes, as io.github.AsaiShota/mcp-server.