x402 mcp server for Gemini CLI
io.github.jmthomasofficial/x402-mcp-server
JMT x402: 35 pay-per-call Base/USDC tools for agents, auto-paid via x402 v2. No API key.
client:Gemini CLI
transport:stdio
runtime:npm
Install x402 mcp server in Gemini CLI
~/.gemini/settings.json · windows: %USERPROFILE%\.gemini\settings.json
{
"mcpServers": {
"x402-mcp-server": {
"command": "npx",
"args": [
"-y",
"@jmthomasofficial/x402-mcp-server"
],
"env": {
"JMT_X402_PRIVATE_KEY": "<JMT_X402_PRIVATE_KEY>"
}
}
}
}
Gemini expands $VAR and ${VAR} inside env values, so a secret can live in your shell rather than this file. Gemini CLI docs