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 — 57 pay-per-use tools (56 active) on Base with persistent Supabase storage.
Connect Claude, Cursor, or any MCP-compatible AI to onchain payments, token swaps, bridge, payroll, invoicing, escrow, oracle data, analytics, AI inference, email, XMTP messaging, webhooks, cron scheduling, IPFS storage, multi-chain RPC, KYC, auth, audit trail, tax & 200+ AI models.
AI agents pay USDC per request via x402 protocol. No API keys. No accounts. Just plug in and go.
Quick Start
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"spraay": {
"command": "npx",
"args": ["-y", "spraay-x402-mcp"],
"env": {
"EVM_PRIVATE_KEY": "0xYOUR_PRIVATE_KEY"
}
}
}
}Cursor
Add to .cursor/mcp.json:
{
"mcpServers": {
"spraay": {
"command": "npx",
"args": ["-y", "spraay-x402-mcp"],
"env": {
"EVM_PRIVATE_KEY": "0xYOUR_PRIVATE_KEY"
}
}
}
}Smithery
smithery mcp add Plagtech/Spraay-x402-mcpFrom Source
git clone https://github.com/plagtech/spraay-x402-mcp
cd spraay-x402-mcp
npm install
echo "EVM_PRIVATE_KEY=0xYOUR_KEY" > .env
npm start57 Tools — 15 Categories
AI ($0.001–$0.005)
Tool | Description | Cost |
| Chat with 200+ AI models (GPT-4, Claude, Llama, Gemini) | $0.005 |
| List all available models | $0.001 |
Payments ($0.001–$0.01)
Tool | Description | Cost |
| Batch pay up to 200 recipients in one tx | $0.01 |
| Estimate gas for batch payment | $0.001 |
DeFi — Swap ($0.001–$0.01)
Tool | Description | Cost |
| Get Uniswap V3 swap quote | $0.002 |
| List supported swap tokens | $0.001 |
| Execute swap (unsigned tx) | $0.01 |
Oracle ($0.001–$0.003)
Tool | Description | Cost |
| On-chain token prices with confidence scores | $0.003 |
| Gas prices on Base | $0.001 |
| Stablecoin FX rates with depeg detection | $0.002 |
Bridge ($0.001–$0.005)
Tool | Description | Cost |
| Cross-chain bridge quote (8+ chains) | $0.005 |
| Supported bridge chains | $0.001 |
Payroll ($0.001–$0.02)
Tool | Description | Cost |
| Pay up to 200 employees in stablecoins | $0.02 |
| Estimate payroll gas and fees | $0.002 |
| List payroll stablecoins | $0.001 |
Invoice ($0.001–$0.005) — persistent
Tool | Description | Cost |
| Create invoice with payment tx | $0.005 |
| List invoices by address | $0.002 |
| Look up invoice by ID | $0.001 |
Analytics ($0.003–$0.005)
Tool | Description | Cost |
| Wallet profile: balances, age, classification | $0.005 |
| Transaction history with decoded types | $0.003 |
Escrow ($0.001–$0.008) — persistent
Tool | Description | Cost |
| Create conditional escrow with milestones | $0.008 |
| List escrows by address | $0.002 |
| Escrow status and details | $0.001 |
| Mark escrow as funded | $0.002 |
| Release funds to beneficiary | $0.005 |
| Cancel escrow | $0.002 |
AI Inference ($0.008–$0.01)
Tool | Description | Cost |
| AI wallet classification with risk scoring | $0.008 |
| AI transaction classification and risk analysis | $0.008 |
| AI smart contract analysis and explanation | $0.01 |
| AI intelligence briefing for any address or tx | $0.008 |
Communication ($0.001–$0.005)
Tool | Description | Cost | Status |
| Send email notifications (AgentMail) | $0.003 | ✅ Live |
| Send SMS notifications | $0.005 | ⏳ Simulated |
| Check notification delivery status | $0.001 | ✅ Live |
| Register webhook endpoint | $0.003 | ✅ Persistent |
| Test webhook delivery | $0.002 | ✅ Persistent |
| List registered webhooks | $0.001 | ✅ Persistent |
| Delete webhook | $0.001 | ✅ Persistent |
| Send encrypted XMTP message | $0.003 | ✅ Live |
| Read XMTP inbox | $0.002 | ✅ Live |
Infrastructure ($0.001–$0.005)
Tool | Description | Cost | Status |
| Multi-chain JSON-RPC via Alchemy | $0.001 | ✅ Live |
| List supported RPC chains | $0.001 | ✅ Live |
| Pin to IPFS via Pinata | $0.005 | ✅ Live |
| Retrieve pinned content | $0.002 | ✅ Live |
| Check pin status | $0.001 | ✅ Live |
| Create scheduled job | $0.005 | ✅ Persistent |
| List scheduled jobs | $0.001 | ✅ Persistent |
| Cancel scheduled job | $0.001 | ✅ Persistent |
| Ingest structured logs | $0.001 | ✅ Persistent |
| Query logs | $0.003 | ✅ Persistent |
Identity & Access ($0.001–$0.05) — persistent
Tool | Description | Cost |
| Initiate KYC/KYB verification | $0.05 |
| Check KYC status | $0.005 |
| Create scoped auth session | $0.005 |
| Verify session token | $0.001 |
Compliance ($0.001–$0.02) — persistent
Tool | Description | Cost |
| Record audit trail entry | $0.001 |
| Query audit trail | $0.005 |
| Calculate crypto tax (FIFO) | $0.01 |
| Retrieve tax report | $0.02 |
Data ($0.001–$0.002)
Tool | Description | Cost |
| Live token prices on Base | $0.002 |
| ETH + ERC-20 balances for any wallet | $0.002 |
| ENS / Basename resolution | $0.001 |
How It Works
AI agent calls a tool (e.g.
spraay_batch_execute)MCP server hits the Spraay x402 Gateway
Gateway returns
402 Payment Requiredwith USDC amount@x402/axiosauto-signs a USDC micropayment from your walletGateway validates payment and returns data
Agent gets the response
All payments are micro-transactions ($0.001–$0.05) in USDC on Base mainnet.
Requirements
Wallet: EVM private key with USDC on Base (even $1 covers thousands of calls)
Node.js: 18+
MCP Client: Claude Desktop, Cursor, or any MCP-compatible client
Environment Variables
Variable | Required | Default | Description |
| Yes | — | Wallet private key for USDC payments |
| No |
| Override gateway URL |
Links
MCP Server: mcp.spraay.app
Gateway: gateway.spraay.app
Bazaar Discovery: gateway.spraay.app/.well-known/x402.json
Spraay App: spraay.app
x402 Protocol: x402.org
License
MIT