x402 middleware for Grok
com.gadgethumans.swarm/x402-middleware
One-line x402 + Stripe payment middleware for MCP servers. The Stripe for the agent economy.
client:Grok
transport:stdio
runtime:npm
Install x402 middleware in Grok
.mcp.json (in your project root)
{
"mcpServers": {
"x402-middleware": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@gadgethumans/x402"
]
}
}
}
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