x402-market for Grok
io.github.asaishota/mcp-server
Let AI agents pay-per-call for any HTTP API via x402 on Base mainnet. One tool: pay_and_call.
client:Grok
transport:stdio
runtime:npm
Install x402-market in Grok
.mcp.json (in your project root)
{
"mcpServers": {
"mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@x402-market/mcp-server"
],
"env": {
"MARKET_API_URL": "<MARKET_API_URL>",
"MCP_BUYER_PRIVATE_KEY": "<MCP_BUYER_PRIVATE_KEY>",
"BASE_RPC_URL": "<BASE_RPC_URL>",
"BASE_CHAIN_ID": "<BASE_CHAIN_ID>",
"MCP_MAX_PRICE": "<MCP_MAX_PRICE>"
}
}
}
}
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