Pay-per-call AI tools (embed, summarize, ask) from x402ai, paid in USDC on Base via x402.
Connect Runs on your machine
claude mcp add x402ai-mcp -e X402AI_BUYER_PRIVATE_KEY=<X402AI_BUYER_PRIVATE_KEY> -e X402AI_MAX_SESSION_USD=<X402AI_MAX_SESSION_USD> -e X402AI_DRY_RUN=<X402AI_DRY_RUN> -- npx -y [email protected]
{
"mcpServers": {
"x402ai-mcp": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"X402AI_BUYER_PRIVATE_KEY": "<X402AI_BUYER_PRIVATE_KEY>",
"X402AI_MAX_SESSION_USD": "<X402AI_MAX_SESSION_USD>",
"X402AI_DRY_RUN": "<X402AI_DRY_RUN>"
}
}
}
}
{
"mcpServers": {
"x402ai-mcp": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"X402AI_BUYER_PRIVATE_KEY": "<X402AI_BUYER_PRIVATE_KEY>",
"X402AI_MAX_SESSION_USD": "<X402AI_MAX_SESSION_USD>",
"X402AI_DRY_RUN": "<X402AI_DRY_RUN>"
}
}
}
}
{
"servers": {
"x402ai-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"X402AI_BUYER_PRIVATE_KEY": "<X402AI_BUYER_PRIVATE_KEY>",
"X402AI_MAX_SESSION_USD": "<X402AI_MAX_SESSION_USD>",
"X402AI_DRY_RUN": "<X402AI_DRY_RUN>"
}
}
}
}
Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.
Tools
This server runs locally, so its tools are listed by your MCP client once it starts.
Environment variables
| Name | Description |
|---|---|
X402AI_BUYER_PRIVATE_KEYOptional, 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_USDOptional | Spending cap per server process in USD (default 0.25). |
X402AI_DRY_RUNOptional | Set to 1 to quote prices without signing or paying. |
Details
| Package | [email protected] (NPM, stdio) |
| First published | 26 Oct 2026 |
| Last updated | 26 Oct 2026 |
| Registry name | io.github.ukenal/x402ai-mcp |
More other servers See all
Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.
