x402-mcp-server
v1.0.5Pay-per-call x402 tools on Base: web extract/render, burn-once secret vault, chart, GeoTIFF
Values you need
| Variable | What it is | |
|---|---|---|
BASE_PRIVATE_KEY | required secret | 0x-prefixed EVM private key, wallet funded with Base USDC -- signs EIP-3009 payments locally. |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add x402-mcp-server -e 'BASE_PRIVATE_KEY=<BASE_PRIVATE_KEY>' -- npx -y --package=x402-mcp-server_by_milza@1.0.5 x402-mcp-serverAdd to
claude_desktop_config.json{
"mcpServers": {
"x402-mcp-server": {
"args": [
"-y",
"--package=x402-mcp-server_by_milza@1.0.5",
"x402-mcp-server"
],
"command": "npx",
"env": {
"BASE_PRIVATE_KEY": "<BASE_PRIVATE_KEY>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"x402-mcp-server": {
"args": [
"-y",
"--package=x402-mcp-server_by_milza@1.0.5",
"x402-mcp-server"
],
"command": "npx",
"env": {
"BASE_PRIVATE_KEY": "<BASE_PRIVATE_KEY>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "BASE_PRIVATE_KEY",
"id": "base-private-key",
"password": true,
"type": "promptString"
}
],
"servers": {
"x402-mcp-server": {
"args": [
"-y",
"--package=x402-mcp-server_by_milza@1.0.5",
"x402-mcp-server"
],
"command": "npx",
"env": {
"BASE_PRIVATE_KEY": "${input:base-private-key}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.x402-mcp-server]
command = "npx"
args = ["-y", "--package=x402-mcp-server_by_milza@1.0.5", "x402-mcp-server"]
env = { "BASE_PRIVATE_KEY" = "<BASE_PRIVATE_KEY>" }For AI agents
- Ask the user for: BASE_PRIVATE_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: markdown-extractor, spa-dom-to-md, burn-once-secret-vault, svg-bar-chart-renderer, wasm-geotiff-transcoder.
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json