Labsco
plagtech logo

Spraay x402 MCP Server

from plagtech

Multi-chain x402 payment gateway and DeFi automation MCP server. 161 tools across 39 categories β€” batch payments, token swaps, bridges, escrow, AI inference, staking, governance, oracles, geospatial, GPU compute, research, and more. Supports Base, Ethereum, and Solana with 10+ additional chains. Integrated into AWS Strands Agents tools and Google ADK Community Toolkit.

πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedPaid serviceNeeds API keys
<!-- ============================================================================ COUNTS β€” confirmed against the live gateway manifest on 2026-07-01. Source of truth: https://gateway.spraay.app/.well-known/x402.json Gateway: 192 endpoints (160 paid + 32 free), 33 categories MCP server: 183 tools (97 manual + 86 auto-generated) This README uses 183 because it documents the MCP server, which exposes a subset of gateway endpoints as tools. CONFIRM 183 before committing: npm run sync Select-String -Path src\auto-tools.ts -Pattern "server\.tool\(" | Measure-Object | % Count # that is the auto count (86); add the manual count: Select-String -Path src\index.ts -Pattern "^ server\.tool\(" | Measure-Object | % Count If the sum differs from 183, do one find-replace of "183" here. Keep this number in sync with: the GitHub repo Description, meta.json, smithery.yaml, and the cursor.directory listing. Gateway-level surfaces use 192; MCP-server surfaces use 183. ============================================================================ -->

πŸ’§ Spraay x402 MCP Server

smithery badge Version Tools License: MIT

Full-stack DeFi infrastructure for AI agents β€” 183 pay-per-call tools, backed by the 192-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).


Tool catalog

183 tools spanning the gateway's 33 categories. Highlights by area:

AreaWhat it covers
AI & Inference200+ LLMs (OpenAI-compatible), wallet/tx classification, contract explanation, summaries
ComputeText / image / video / TTS / STT / embeddings across Replicate, Chutes, OpenRouter; batch jobs
Compute FuturesPrepaid compute credits with tier discounts; draw down per inference
BittensorDecentralized inference, image gen, and embeddings via SN64 / SN19
PaymentsBatch payouts up to 200 recipients (Base, XRP Ledger, Stellar); estimates
PayrollStablecoin payroll runs across Base, Ethereum, Solana
Invoicing & EscrowCrypto-native invoices and milestone escrow (persistent)
DeFi & DataSwaps (Uniswap V3 / Aerodrome), oracle prices/gas/FX, bridge quotes, balances, ENS/Basename
AnalyticsWallet profiles and decoded transaction history
Research250M+ papers (OpenAlex), arXiv, Crossref, PubMed, PubChem, US Census, dictionary
Search & RAGWeb search, content extraction, question answering
CommunicationEmail, SMS, XMTP messaging, webhooks
InfrastructureMulti-chain RPC, IPFS/Arweave storage, cron scheduling, structured logs
Identity & ComplianceKYC/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 & SafetyProofLayer 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:

Copy & paste β€” that's it
curl https://gateway.spraay.app/.well-known/x402.json

Pricing ranges from $0.001 (reads) to ~$0.10 (payroll, escrow release, tax), settled in USDC on Base.


How it works

  1. An agent calls a tool (e.g. spraay_batch_execute).
  2. The MCP server hits the Spraay x402 Gateway.
  3. The gateway responds 402 Payment Required with a USDC amount.
  4. Remote mode: settlement is handled gateway-side. Local mode: @x402/axios signs a USDC micropayment from the auto-created (or overridden) wallet.
  5. 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.

  • The auto-created wallet only holds what you send it. Fund it with only as much USDC as you're willing to let the agent spend. It starts empty, so a fresh install cannot move funds until you fund it; read-only tools work regardless.
  • The session key lives at ~/.spraay/.session. Protect that file like any secret β€” anyone who reads it controls the wallet. It's written with 0600 permissions on POSIX systems. Back it up if the funds matter; delete it to rotate to a new wallet on the next run.
  • Prefer the remote URL if you'd rather keep no signing key on your machine β€” settlement is handled gateway-side.
  • If you bring your own key via EVM_PRIVATE_KEY, use a dedicated hot wallet that controls no other assets, and never put a raw private key in a config file, issue, or any committed file β€” keep it in 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.


Environment variables

None are required β€” the server runs with zero configuration. All of the following are optional overrides.

VariableRequiredDefaultDescription
EVM_PRIVATE_KEYNoauto-created at ~/.spraay/.sessionOverride the auto-created wallet with your own key. Use a dedicated, funded-as-needed hot wallet.
SPRAAY_GATEWAY_URLNohttps://gateway.spraay.appOverride the gateway URL.

Links

License

MIT