DeFi data API for AI agents — pay-per-call via x402/USDC on Base
npx -y @x402-api/mcp-server{
"X402_API_BASE_URL": "YOUR_VALUE_HERE"
}Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
{
"mcpServers": {
"io-github-fernsugi-x402-api": {
"command": "npx",
"args": [
"-y",
"@x402-api/mcp-server"
],
"env": {
"X402_API_BASE_URL": "YOUR_VALUE_HERE"
}
}
}
}~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.jsonNo remote HTTP endpoint is advertised. Use the package or stdio setup shown in Install.
x402-api is an MCP server for DeFi data API for AI agents — pay-per-call via x402/USDC on Base. It supports STDIO transport.
Use the generated config in Install. This server runs with npx -y @x402-api/mcp-server; add any required environment variables before starting your client.
Choose the Claude Desktop tab in Install and copy the config for npx -y @x402-api/mcp-server. Add required environment variables before starting Claude Desktop.
Choose the Claude Code tab in Install and copy the config for npx -y @x402-api/mcp-server. Add required environment variables before starting Claude Code.
Choose the Codex tab in Install and copy the config for npx -y @x402-api/mcp-server. Add required environment variables before starting Codex.
Choose the Cursor or VS Code tab in Install and copy the config for npx -y @x402-api/mcp-server. Add required environment variables before starting Cursor or VS Code.
x402-api uses STDIO transport. Use the package or command config in Install.
x402-api inventory is listed when the MCP endpoint exposes tools, resources, or prompts. Some servers require auth first.
x402-api does not advertise a verified auth requirement. If discovery fails, it may still need provider login, an API key, a bearer token, or a session header.
| Package | Registry | Version | Inputs |
|---|---|---|---|
@x402-api/mcp-serverstdio | npm | 1.0.2 | Env: X402_API_BASE_URL |