Spraay X402 MCP server
io.github.plagtech/spraay-x402-mcp·v3.1.1·4 starsMCP server for Spraay x402 Gateway. 60 tools for crypto payments, DeFi, and AI on Base.
4 stars43 downloads/wk
Reviews
Write oneNobody has reviewed Spraay X402 yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Spraay X402 tools (66, 16 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
spraay_analytics_txhistoryGet decoded transaction history for any address on Base. Returns transaction types, values, timestamps, and decoded method calls. Costs $0.003 USDC.
spraay_analytics_walletGet a comprehensive wallet profile including ETH + token balances, wallet age, entity classification, and portfolio breakdown on Base. Costs $0.005 USDC.
spraay_audit_logRecord an immutable audit trail entry for payments, escrows, compliance actions, and other events. Data persists in Supabase. Costs $0.001 USDC.
spraay_audit_queryQuery the audit trail by actor, action, resource, or time range. Returns matching entries sorted newest first. Data persists in Supabase. Costs $0.005 USDC.
spraay_auth_sessionwrite actionCreate an authenticated session with scoped permissions and configurable TTL. Returns a session token (spr_...) for use in Authorization headers. Data persists in Supabase. Costs $0.005 USDC.
spraay_auth_verifyVerify a session token and check its permissions, expiry, and associated address. Data persists in Supabase. Costs $0.001 USDC.
spraay_balancesGet ETH + ERC-20 token balances for any wallet on Base. Returns formatted balances with USD values where available. Costs $0.002 USDC.
spraay_batch_estimateEstimate gas cost for a batch payment before executing. Returns estimated gas in wei and USD equivalent. Costs $0.001 USDC.
spraay_batch_executewrite actionExecute a batch payment to up to 200 recipients in a single Base transaction via the Spraay protocol. Supports any ERC-20 token or native ETH. Returns unsigned transaction data for the sender to sign. Costs $0.01 USDC.
spraay_bridge_chainsList all chains supported by the Spraay bridge aggregator (LI.FI). Returns chain names, IDs, and supported tokens. Costs $0.001 USDC.
spraay_bridge_quoteGet a cross-chain bridge quote via LI.FI aggregator. Supports Base, Ethereum, Arbitrum, Polygon, BNB Chain, Avalanche, Optimism, and more. Returns estimated output, fees, and execution time. Costs $0.005 USDC.
spraay_chatwrite actionSend a message to 200+ AI models (GPT-4o, Claude, Llama 3, Gemini, Mistral, etc.) via the Spraay x402 Gateway. Returns the model's completion. Use spraay_models to discover available model IDs. Costs $0.005 USDC.
spraay_classify_addressAI-powered wallet classification with risk scoring. Analyzes on-chain activity to classify addresses as whale, retail, MEV bot, exchange, bridge, or contract. Returns risk score, classification, confidence, and behavioral signals. Costs $0.008 USDC.
spraay_classify_txAI-powered transaction classification with risk scoring. Decodes, categorizes, and analyzes any Base transaction. Returns type (swap, transfer, contract call, etc.), risk level, and decoded parameters. Costs $0.008 USDC.
spraay_cron_cancelwrite actionCancel a scheduled job by ID. Stops future executions. Data persists in Supabase. Costs $0.001 USDC.
spraay_cron_createwrite actionCreate a scheduled job for recurring payments, DCA strategies, reminders, or any gateway action. Supports standard 5-part cron expressions. Data persists in Supabase. Costs $0.005 USDC.
spraay_cron_listList all scheduled jobs with optional status and action filters. Data persists in Supabase. Costs $0.001 USDC.
spraay_escrow_cancelwrite actionCancel an escrow. Depositor can cancel unfunded escrows; depositor or arbiter can cancel funded ones. Data persists in Supabase. Costs $0.002 USDC.
spraay_escrow_createwrite actionCreate a conditional escrow with optional milestones, arbiter, and expiry on Base. Funds are held until release conditions are met. Data persists in Supabase. Returns escrow ID and next-step actions. Costs $0.008 USDC.
spraay_escrow_fundMark an escrow as funded. Changes status from 'created' to 'funded'. Only works on unfunded, non-expired escrows. Data persists in Supabase. Costs $0.002 USDC.
spraay_escrow_getGet full escrow details including status, participants, conditions, balance check, and timestamps by ID. Data persists in Supabase. Costs $0.001 USDC.
spraay_escrow_listList escrows by address (depositor, beneficiary, or arbiter) with optional status filter. Data persists in Supabase. Costs $0.002 USDC.
spraay_escrow_releaseRelease escrow funds to the beneficiary. Returns an unsigned ERC-20 transfer transaction for the depositor to sign. Only depositor or arbiter can release. Data persists in Supabase. Costs $0.005 USDC.
spraay_explain_contractAI-powered smart contract analysis. Explains what a verified contract does, lists its functions, identifies patterns (ERC-20, ERC-721, etc.), and flags security properties. Costs $0.01 USDC.
spraay_gpu_modelsList all available GPU model shortcuts grouped by category (image, video, LLM, audio, utility). Shows shortcut names, full Replicate model IDs, and descriptions. You can also use any Replicate model by its full ID. FREE — no USDC cost.
spraay_gpu_runwrite actionRun AI model inference on GPU via Replicate. Supports image generation (flux-pro, sdxl, ideogram), video generation (wan-video, minimax-video), LLMs (llama-70b, llama-8b, mixtral), audio (whisper transcription, musicgen), and utilities (esrgan upscaling, rembg background removal). Use shortcuts like 'flux-pro' or full model IDs like 'owner/model'. Returns output directly for fast models, or a poll
spraay_gpu_statusCheck the status of a GPU prediction by ID. Use this to poll for results on longer-running jobs like video generation or large model inference. Returns output when complete. Costs $0.002 USDC.
spraay_invoice_createwrite actionCreate a payment invoice with a pre-encoded ERC-20 transfer transaction. Supports USDC, USDT, DAI, EURC, WETH on Base. Data persists in Supabase. Returns invoice ID, payment instructions, and unsigned tx. Costs $0.005 USDC.
spraay_invoice_getLook up a specific invoice by ID. Returns full invoice details, on-chain balance check, and payment status. Data persists in Supabase. Costs $0.001 USDC.
spraay_invoice_listList invoices by creator or payer address with optional status filter. Data persists in Supabase. Costs $0.002 USDC.
spraay_kyc_statusCheck KYC verification status by record ID or wallet address. Returns verification level, check results, and expiry. Data persists in Supabase. Costs $0.005 USDC.
spraay_kyc_verifyInitiate KYC/KYB verification for compliance-gated payments. Supports individual and business verification at basic, enhanced, or full levels. Data persists in Supabase. Costs $0.05 USDC.
spraay_logs_ingestIngest structured logs for debugging and monitoring agent workflows. Accepts up to 100 entries per batch. Data persists in Supabase. Costs $0.001 USDC.
spraay_logs_queryQuery structured logs by service, level, and time range. Returns matching log entries sorted newest first. Data persists in Supabase. Costs $0.003 USDC.
spraay_modelsList all 200+ AI models available on the Spraay x402 Gateway. Returns model IDs, providers, and context window sizes. Costs $0.001 USDC.
spraay_notify_emailwrite actionSend an email notification via AgentMail for payment confirmations, alerts, receipts, or general communication. Supports subject, CC, and reply-to. Costs $0.003 USDC.
spraay_notify_smswrite actionSend an SMS notification for payment alerts (simulated — Twilio integration coming). Requires E.164 phone format. Costs $0.005 USDC.
spraay_notify_statusCheck delivery status of a previously sent email or SMS notification by notification ID. Costs $0.001 USDC.
spraay_oracle_fxGet stablecoin exchange rates with depeg detection. Returns cross-rates between USDC, USDT, DAI, and EURC. Costs $0.002 USDC.
spraay_oracle_gasGet current gas prices on Base in gwei. Returns base fee, priority fee, and estimated transaction costs. Costs $0.001 USDC.
spraay_oracle_pricesGet real-time on-chain token prices with confidence scores from Uniswap V3 QuoterV2 on Base. Returns USD prices for ETH, WETH, cbBTC, USDT, DAI, EURC, and more. Costs $0.003 USDC.
spraay_payroll_estimateEstimate gas and fees for a payroll batch before executing. Returns estimated gas in wei and USD. Costs $0.002 USDC.
spraay_payroll_executewrite actionExecute a payroll batch payment via Spraay V2 contract on Base. Pay up to 200 employees in a single transaction with any stablecoin. Returns unsigned transaction data. Costs $0.02 USDC.
spraay_payroll_tokensList all stablecoins supported for payroll on Base. Returns symbols, addresses, and decimals. Costs $0.001 USDC.
spraay_pricesGet live on-chain token prices on Base from Uniswap V3 pools. Returns USD prices with timestamps. Costs $0.002 USDC.
spraay_resolveResolve ENS names (.eth) and Basenames (.base.eth) to wallet addresses, or perform reverse lookup from address to name. Costs $0.001 USDC.
spraay_rpc_callMake a premium multi-chain JSON-RPC call via Alchemy (EVM) or Helius (Solana). Supports Base, Ethereum, Arbitrum, Polygon, BNB Chain, Avalanche, and Solana. Costs $0.001 USDC.
spraay_rpc_chainsList all chains supported by the Spraay RPC proxy and their allowed JSON-RPC methods. Costs $0.001 USDC.
spraay_search_extractExtract clean, structured content from specific URLs — perfect for RAG pipelines. Returns the full text content of each page, ready for LLM consumption. Up to 5 URLs per request. Costs $0.015 USDC.
spraay_search_qnaAsk a question and get a direct, synthesized answer with cited sources. Searches the web, extracts relevant content, and generates a comprehensive answer. Great for research and fact-checking. Costs $0.02 USDC.
spraay_search_webSearch the web and get clean, LLM-ready results via Tavily. Returns extracted content (not just links), plus an AI-generated answer. Supports basic and advanced search depth, domain filtering, and topic focus (general, news, finance). Costs $0.01 USDC.
spraay_storage_getRetrieve previously pinned content from IPFS/Arweave by CID. Returns the stored data. Costs $0.002 USDC.
spraay_storage_pinPin content to IPFS via Pinata for permanent decentralized storage. Returns CID (content identifier) for retrieval. Supports text, JSON, and base64 data. Costs $0.005 USDC.
spraay_storage_statusCheck the pin status of a storage request by pin ID. Returns pinning progress and confirmation. Costs $0.001 USDC.
spraay_summarizeAI intelligence briefing for any wallet address or transaction hash. Returns structured risk assessment, entity classification, activity summary, and actionable insights. Costs $0.008 USDC.
spraay_swap_executewrite actionExecute a token swap via Uniswap V3 on Base. Returns unsigned transaction data for the caller to sign and broadcast. Get a quote first with spraay_swap_quote. Costs $0.01 USDC.
spraay_swap_quoteGet a swap quote from Uniswap V3 on Base. Returns expected output amount, price impact, and route details. Use spraay_swap_tokens to see available tokens. Costs $0.002 USDC.
spraay_swap_tokensList all tokens available for swapping on Spraay via Uniswap V3 on Base. Returns symbols, addresses, and decimals. Costs $0.001 USDC.
spraay_tax_calculateCalculate crypto tax gain/loss using FIFO method for up to 500 transactions. Returns per-event breakdown and aggregate summary with short/long-term classification. Data persists in Supabase. Costs $0.01 USDC.
spraay_tax_reportRetrieve a previously calculated tax report by ID, or list all reports. Data persists in Supabase. Costs $0.02 USDC.
spraay_webhook_deletewrite actionDelete a registered webhook by ID. Removes it permanently from Supabase. Costs $0.001 USDC.
spraay_webhook_listList all registered webhooks with their status, subscribed events, and delivery stats. Data persists in Supabase. Costs $0.001 USDC.
spraay_webhook_registerRegister a webhook endpoint to receive real-time POST events for payments, escrows, swaps, invoices, and more. Returns webhook ID and HMAC secret for signature verification. Data persists in Supabase. Costs $0.003 USDC.
spraay_webhook_testwrite actionSend a test ping event to a registered webhook to verify delivery and signature validation. Data persists in Supabase. Costs $0.002 USDC.
spraay_xmtp_inboxRead XMTP inbox messages for an Ethereum address. Returns decrypted messages from the production XMTP network. Costs $0.002 USDC.
spraay_xmtp_sendwrite actionSend an encrypted XMTP message to any Ethereum address on the XMTP production network. Messages are end-to-end encrypted. Costs $0.003 USDC.
Public scan report
scanner v0.1.10 · 2026-09-28 · same rubric, same numbers if you re-run it
- Code scan10 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitystatic API keys via environment variables6/15
- Maintenancelast push 88 days ago12/15
- Maintainer identityregistry namespace matches repository owner6/10
How Spraay X402 compares
Against every graded Finance MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 75/100
- higher than 50% of 1,761 Finance servers
- Tools
- 66
- the typical Finance server has 8
- Tools that change things
- 24%
- typical: 0%. Fewer write tools means less an agent can break
- GitHub stars
- 4
- more than 85% of 946 Finance servers
- Downloads a week
- 43
- more than 38% of 421 Finance servers with a package
What its tools let an agent do: 50 read · 16 change
Install Spraay X402 in Claude Code, Cursor or VS Code
Runs npx -y spraay-x402-mcp on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add spraay-x402-mcp -- npx -y spraay-x402-mcp
What the publisher says
From the Spraay X402 repository's README, as published. We do not edit it. Read it on GitHub
<!--
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
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).
Quick Start
Install and go — no config, no API keys, no env vars. On first run the server auto-creates a wallet, saves it to ~/.spraay/.session, and prints the address to stderr. Fund that address with USDC on Base and start calling tools.
Read Security & Wallet Safety — these tools move real funds.
One-line install (Claude Code)
claude mcp add spraay -s user -- npx -y spraay-x402-mcpManual config (Cursor / Claude Desktop)
Cursor (.cursor/mcp.json) or Claude Desktop (claudedesktopconfig.json):
{
"mcpServers": {
"spraay": {
"command": "npx",
"args": ["-y", "spraay-x402-mcp"]
}
}
}That's it. The first run prints something like:
💧 Spraay created a new wallet: 0xABC…123
Private key saved to ~/.spraay/.session (keep it safe — it controls funds).
Fund this address with USDC on Base to start paying for tool calls.Optional — bring your own wallet
To sign with a key you already control instead of the auto-created one, set EVMPRIVATEKEY in your environment (it overrides the session wallet). Never paste a raw key into a committed config file — use a dedicated hot wallet funded only with what the agent may spend. See Security & Wallet Safety.
Remote URL (no wallet on your machine)
Settlement is handled gateway-side; your client never holds a signing key.
{
"mcpServers": {
"spraay": {
"url": "https://spraay-x402-mcp--plagtech.run.tools"
}
}
}Smithery
smithery mcp add Plagtech/Spraay-x402-mcpFrom source
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Spraay X402: common questions
- Is Spraay X402 MCP server safe?
- Mostly: it is graded B (75/100). Read the Spraay X402 safety report
- How do I install Spraay X402?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Spraay X402 need an API key?
- Yes. The registry entry asks for
X402_WALLET_PRIVATE_KEY. - Is Spraay X402 maintained?
- The last commit was 125 days ago (2026-07-01). The latest release is v3.1.1.
- What can I use instead of Spraay X402?
- Servers from other publishers that do the same job: PayRam MCP server, Blockrun MCP server and three.ws Agent Payments MCP server. Compare all Spraay X402 alternatives.
- How does Spraay X402 compare with other Finance MCP servers?
- safety score 75/100 (higher than 50% of 1,761 Finance servers); tools 66 (the typical Finance server has 8); tools that change things 24% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.
Alternatives to Spraay X402
Same job from other publishers: the closest match first, then the best rated.
PayRamInstall, configure, operate and integrate self-hosted PayRam crypto payment gateways.not reviewedGrowingB- BlockrunWeb search, deep research, prediction markets & crypto data for AI agents. Pay per call via x402.not reviewedEstablishedB
- three.ws Agent PaymentsGoverned x402 payment sessions: pay any endpoint with budget, allowlist & per-tx caps, no key.not reviewedEstablishedB
- Yolfi Payments MCPLet AI agents add Yolfi crypto checkout, paylinks, webhooks, and status checks.not reviewedEstablishedA
- X402 ListFind and vet x402 payment APIs before your agent pays one: uptime, price, on-chain volume.not reviewedEstablishedA