p402 for Grok
io.github.z333q/p402
Multi-provider AI router with x402 micropayment settlement on Base L2. 1% flat fee.
client:Grok
transport:stdio
runtime:npm
Install p402 in Grok
.mcp.json (in your project root)
{
"mcpServers": {
"p402": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@p402/mcp-server"
],
"env": {
"P402_API_KEY": "<P402_API_KEY>",
"P402_ROUTER_URL": "<P402_ROUTER_URL>"
}
}
}
}
Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs