Spraay x402 MCP Server
Enables multi-chain JSON-RPC calls via the Alchemy platform to interact with various blockchain networks.
Supports decentralized storage by allowing users to pin and retrieve content on the InterPlanetary File System (IPFS) via Pinata.
Provides persistent storage for DeFi infrastructure data, including invoices, escrow milestones, audit trails, and webhook registrations.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Spraay x402 MCP ServerWhat is the USDC balance of vitalik.eth?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
💧 Spraay x402 MCP Server
Full-stack DeFi infrastructure for AI agents — 148 pay-per-call tools, backed by the 153-endpoint Spraay x402 Gateway on Base, with Solana, Ethereum, XRP, and Stellar payment rails.
Connect Claude, Cursor, or any MCP client to onchain payments, batch payouts, swaps, bridging, payroll, invoicing, escrow, oracle data, analytics, 200+ AI models, GPU/compute, research APIs, search/RAG, and more. Agents pay USDC per request via the x402 protocol — no API keys, no accounts.
The tool list is generated from the live gateway manifest at build time (
npm run sync), so the authoritative catalog and pricing always live at the gateway — see Tool catalog. 24 of the gateway's endpoints are free (no payment required).
Quick Start
Two ways to connect, depending on how payments are authorized. Read Security & Wallet Safety before the local path — these tools can move real funds.
Option 1 — Remote URL (recommended, no private key on your machine)
Settlement is handled gateway-side; your client never holds a signing key.
Cursor (.cursor/mcp.json) or Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"spraay": {
"url": "https://spraay-x402-mcp--plagtech.run.tools"
}
}
}Option 2 — Local, self-signed (advanced)
Run the server locally and let it sign USDC payments from a wallet you control. Use the scoped, version-pinned package.
{
"mcpServers": {
"spraay": {
"command": "npx",
"args": ["-y", "@plagtech/spraay-x402-mcp@4.0.0"],
"env": {
"EVM_PRIVATE_KEY": "${EVM_PRIVATE_KEY}",
"SPRAAY_ENABLE_PAYMENTS": "true"
// Optional autonomy leash — add these ONLY when running an
// unsupervised agent. Leave them out for interactive/human use
// (no limit). See Security & Wallet Safety below.
// "SPRAAY_MAX_SPEND_USDC": "1.00",
// "SPRAAY_DAILY_CAP_USDC": "10.00"
}
}
}
}Set EVM_PRIVATE_KEY in your shell environment — never paste a raw key into
this file. Use a dedicated hot wallet funded only with what the agent may
spend. See Security & Wallet Safety.
Smithery
smithery mcp add Plagtech/Spraay-x402-mcpFrom source
git clone https://github.com/plagtech/spraay-x402-mcp
cd spraay-x402-mcp
npm install
cp .env.example .env # then edit .env with your key (it is gitignored)
npm run build
npm startRelated MCP server: hyperd-mcp
Tool catalog
148 tools spanning the gateway's 27 categories. Highlights by area:
Area | What it covers |
AI & Inference | 200+ LLMs (OpenAI-compatible), wallet/tx classification, contract explanation, summaries |
Compute | Text / image / video / TTS / STT / embeddings across Replicate, Chutes, OpenRouter; batch jobs |
Compute Futures | Prepaid compute credits with tier discounts; draw down per inference |
Bittensor | Decentralized inference, image gen, and embeddings via SN64 / SN19 |
Payments | Batch payouts up to 200 recipients (Base, XRP Ledger, Stellar); estimates |
Payroll | Stablecoin payroll runs across Base, Ethereum, Solana |
Invoicing & Escrow | Crypto-native invoices and milestone escrow (persistent) |
DeFi & Data | Swaps (Uniswap V3 / Aerodrome), oracle prices/gas/FX, bridge quotes, balances, ENS/Basename |
Analytics | Wallet profiles and decoded transaction history |
Research | 250M+ papers (OpenAlex), arXiv, Crossref, PubMed, PubChem, US Census, dictionary |
Search & RAG | Web search, content extraction, question answering |
Communication | Email, SMS, XMTP messaging, webhooks |
Infrastructure | Multi-chain RPC, IPFS/Arweave storage, cron scheduling, structured logs |
Identity & Compliance | KYC/sanctions screening, auth sessions, audit trail, crypto tax (FIFO, IRS 8949) |
Supply Chain (SCTP) | Supplier registration, purchase orders, invoice verification, settlement |
Robotics (RTP) | Register robots, dispatch paid tasks, escrow-backed completion |
Trust & Safety | ProofLayer trust scores; free token-safety, address-safety, and tx-decode checks |
24 free endpoints require no payment — gas/prices/chain-status, address & batch validation, ENS resolution, unit conversion, x402 discovery probes, and model/compute discovery.
For the exact, current tool list and per-tool pricing, query the live manifest:
curl https://gateway.spraay.app/.well-known/x402.jsonPricing ranges from $0.001 (reads) to ~$0.10 (payroll, escrow release, tax), settled in USDC on Base.
How it works
An agent calls a tool (e.g.
spraay_batch_execute).The MCP server hits the Spraay x402 Gateway.
The gateway responds
402 Payment Requiredwith a USDC amount.Remote mode: settlement is handled gateway-side. Local mode:
@x402/axiossigns a USDC micropayment from your wallet, subject to the spend caps you set.The gateway validates payment and returns the data.
Security & Wallet Safety
These tools can initiate real USDC payments. Treat the server like any tool with funds access.
Prefer Option 1 (remote URL) — no signing key on your machine.
If you self-sign (Option 2): use a dedicated hot wallet, funded only with what you'll let the agent spend. Never a key that controls other assets.
Payments are off by default.
SPRAAY_ENABLE_PAYMENTSmust betruebefore any fund-moving tool will run. A fresh install cannot spend until you opt in. Read-only tools work regardless.Spend caps are optional — an autonomy leash for unattended agents. When you run an agent with no human watching, set
SPRAAY_MAX_SPEND_USDC(per call) andSPRAAY_DAILY_CAP_USDCto bound the blast radius if it loops or is manipulated by upstream prompt injection. Leave them unset for interactive use — a human at the keyboard is the supervision, and there's no limit unless you add one.Never put a raw private key in a config file, issue, or any committed file. Keys live in a gitignored
.envor your shell environment only.
The published npm package ships only dist/, README, and LICENSE (verify
with npm pack --dry-run) — no binaries, no build tooling, no install scripts.
Report security issues to security@spraay.app, not a public issue.
Requirements
Node.js 20+
MCP client — Claude Desktop, Cursor, or any MCP-compatible client
Wallet (local mode only) — an EVM key with USDC on Base; even $1 covers thousands of calls
Environment variables
Variable | Required | Default | Description |
| Local mode only | — | Wallet key for USDC signing. Use a dedicated, capped hot wallet. |
| No |
| Master gate. Must be |
| No | unset = no limit | Optional per-call ceiling. Set only for unattended agents. |
| No | unset = no limit | Optional rolling 24h ceiling. Set only for unattended agents. |
| No |
| Override the gateway URL. |
Links
MCP server: mcp.spraay.app
Gateway: gateway.spraay.app
Manifest: gateway.spraay.app/.well-known/x402.json
x402: x402.org
License
MIT
Maintenance
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/plagtech/spraay-x402-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server