x402ai-mcp
v0.1.3Pay-per-call AI tools (embed, summarize, ask, policy-check) from x402ai, paid in USDC on Base.
Values you need
| Variable | What it is | |
|---|---|---|
X402AI_BUYER_PRIVATE_KEY | optional secret | Buyer wallet private key (hex), used only to sign payments locally. Needed only for the paid tools. Use a wallet holding only what you are willing to lose. |
X402AI_MAX_SESSION_USD | optional | Spending cap per server process in USD (default 0.25). Default: 0.25 |
X402AI_DRY_RUN | optional | Set to 1 to quote prices without signing or paying. |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add x402ai-mcp -- npx -y x402ai-mcp@0.1.3Add to
claude_desktop_config.json{
"mcpServers": {
"x402ai-mcp": {
"args": [
"-y",
"x402ai-mcp@0.1.3"
],
"command": "npx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"x402ai-mcp": {
"args": [
"-y",
"x402ai-mcp@0.1.3"
],
"command": "npx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"x402ai-mcp": {
"args": [
"-y",
"x402ai-mcp@0.1.3"
],
"command": "npx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.x402ai-mcp]
command = "npx"
args = ["-y", "x402ai-mcp@0.1.3"]For AI agents
- 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: embed, summarize, ask, policy_check, health, inspect.
- 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