SuperAPIAI Directory

spraay-x402-mcp

github.com · AI developer platforms

Onchain data, AI models and batch USDC payments on Base via x402: swap quotes, token prices, wallet balances, ENS resolution and multi-recipient transfers.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

Spraay x402 MCP Server is the MCP server for the Spraay x402 Gateway, positioned as full-stack DeFi infrastructure for AI agents. It provides 183 pay-per-use tools, backed by the Spraay x402 Gateway with 192 endpoints on the Base chain, and supports Solana, Ethereum, XRP, and Stellar payment rails.

In terms of purpose, this server lets Claude, Cursor, or any MCP-compatible client access on-chain payments, batch payments, swaps, cross-chain bridges, payroll, invoicing, escrow, oracle data, analytics, 200+ AI models, GPU/compute, research APIs, search/RAG, and other capabilities. Agents pay per request in USDC via the x402 protocol, with no API keys and no account required.

In terms of main capabilities, the tool list is generated at build time from the live gateway manifest (npm run sync), so the authoritative catalog and pricing always reside on the gateway. Of the gateway's 192 endpoints, 24 are free and require no payment, including gas/price/chain status, address and batch validation, ENS resolution, unit conversion, x402 discovery probing, and model/compute discovery. The 183 tools span the gateway's 33 categories. Pricing ranges from $0.001 (read-type) to about $0.10 (payroll, escrow release, tax), settled in USDC on Base.

In terms of usage, it runs once installed, with no configuration, no API keys, and no environment variables required. On first run, the server automatically creates a wallet, saves it to ~/.spraay/.session, and prints the address to stderr. After funding that address with USDC on Base, you can start calling tools. It supports one-line installation (Claude Code) as well as manual configuration (Cursor's .cursor/mcp.json or Claude Desktop's claude_desktop_config.json). If you prefer to use a key you control rather than the automatically created wallet, you can set EVM_PRIVATE_KEY in the environment (it overrides the session wallet). A remote URL mode is also available, in which settlement is handled on the gateway side and the client holds no signing key.

The calling flow is: the agent calls a tool (for example spraay_batch_execute); the MCP server requests the Spraay x402 Gateway; the gateway returns 402 Payment Required along with the USDC amount; in remote mode, settlement is handled on the gateway side, while in local mode @x402/axios signs a USDC micropayment from an automatically created (or overridden) wallet; after the gateway verifies the payment, it returns the data.

Use cases include developers and teams that need to let AI agents autonomously complete on-chain payments, batch transfers, DeFi operations, data queries, AI inference, and compute calls.

Regarding limitations and security, these tools can initiate real USDC payments and should be treated with the same caution as any tool with access to funds. An automatically created wallet holds only the funds you send to it, so it is recommended to top it up only with the amount of USDC you are willing to let the agent spend; it starts empty, so a fresh installation cannot transfer funds until you top it up, while read-only tools are unaffected. The session key is located at ~/.spraay/.session and should be protected like any secret, since anyone who reads it can control the wallet; on POSIX systems it is written with 0600 permissions. Back it up if the funds matter; deleting it will rotate to a new wallet on the next run. If you do not want to keep a signing key on the machine, prefer using a remote URL. If you bring your own key via EVM_PRIVATE_KEY, use a dedicated hot wallet that does not control other assets, and never put the raw private key in configuration files, issues, or any committed file—keep it only in the shell environment. The published npm package contains only dist/, README, and LICENSE (verifiable with npm pack --dry-run), with no binaries, build tools, or install scripts. The email for reporting security issues is security@spraay.app, not a public issue.

None of the environment variables are required; the server can run with zero configuration, and all of the following are optional overrides. Related addresses: MCP server mcp.spraay.app; gateway gateway.spraay.app; manifest gateway.spraay.app/.well-known/x402.json; Smithery smithery.ai/servers/Plagtech/Spraay-x402-mcp.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools