Spraay X402 MCP logo

Spraay X402 MCP

by plagtech

Pay-per-call MCP tools for Base payments, DeFi data, AI models, analytics, invoicing, payroll, and escrow.

Install Spraay X402 MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "plagtech-spraay-x402-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "spraay-x402-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio plagtech-spraay-x402-mcp -- npx -y spraay-x402-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 183 tools correctly ().

Overview

plagtech/spraay-x402-mcp MCP server connects MCP clients to the Spraay x402 Gateway for onchain payments, DeFi data, AI inference, analytics, and related services. It uses x402 micropayments settled in USDC on Base; local mode signs payments with an auto-created or supplied wallet, while remote mode handles settlement gateway-side. The server exposes a broad catalog that includes batch payments, swaps, bridge quotes, payroll, invoices, escrow, wallet analysis, and access to more than 200 AI models. Reach for it when an agent needs paid blockchain operations or data without managing separate API credentials for each service.

Use cases

  • Pay up to 200 recipients in one Base transaction
  • Query Base prices, gas, balances, and transaction history
  • Request swap and cross-chain bridge quotes
  • Create invoices and milestone-based escrows
  • Call AI models through x402 micropayments

Key features

  • USDC x402 pay-per-call settlement
  • Batch payments and stablecoin payroll
  • Base swaps, oracle data, and gas estimates
  • Invoices and escrow workflows with persistence
  • Wallet, transaction, and contract analysis
  • Access to more than 200 AI models

Tools183

What Spraay X402 MCP lets your agent do. Expand a tool for its parameters.

Verified live~22.6k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

21/29 checks healthy over the last 117d

What it can do

From the 183 tools this server returned when we ran it; 183 declare their own safety hints.

Runs commands · 5Can delete or modify data · 5Handles credentials · 19Makes network requests · 183Read-only tools · 173
Network at startup4 connections
Files written at startup1
Install scriptsNone
npm provenanceNot published
Package age251 days
Maintainers1

Observed 2026-11-15 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 14d ago via OSV.dev · spraay-x402-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars4Stargazers on the source repository.
npm downloads257Package downloads in the last 30 days.
Last commit5mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed183Callable tools this server registers over MCP.
Directory activity6 viewsConfig copies, upvotes, and views on AllMCPs.

How Spraay X402 MCP works

What plagtech/spraay-x402-mcp MCP server does

plagtech/spraay-x402-mcp MCP server exposes Spraay Gateway operations through MCP tools. The documented server includes 183 tools across areas such as Base payments, payroll, invoicing, escrow, swaps, bridge quotes, oracle data, wallet analytics, transaction analysis, contract explanations, and AI model access. The live gateway manifest is the source for the current catalog and pricing, so the available tool set may change as the project synchronizes with that manifest.

Payment-oriented tools can create unsigned transaction data for a caller to sign rather than broadcasting transactions directly. Examples include batch transfers to as many as 200 recipients, token swaps, payroll runs, and escrow releases. Other tools provide estimates, token or chain lists, invoice records, escrow status, wallet profiles, decoded transaction history, and onchain price or gas information.

How it works

An MCP client invokes a tool, and the local server forwards the request to the Spraay x402 Gateway. The gateway returns a payment requirement, after which the request is settled in USDC before the result is returned. Twenty-four gateway endpoints are described as free.

In local mode, the server signs the USDC micropayment with a wallet created during first startup or with a private key supplied through configuration. In remote mode, the client connects to the hosted MCP URL and settlement is handled by the gateway, so no signing key is kept on the client machine.

Setup and configuration

Install the plagtech/spraay-x402-mcp MCP server with Node.js 20 or later:

Terminal
npx -y spraay-x402-mcp

The package requires no environment variables for a basic local run. On first startup it creates a wallet, stores the session at ~/.spraay/.session, and prints the wallet address. Fund that address with USDC on Base before using paid calls. The optional EVM_PRIVATE_KEY variable replaces the generated wallet, while SPRAAY_GATEWAY_URL changes the gateway endpoint.

Claude Desktop and Cursor can launch the server with the same npx -y spraay-x402-mcp command. A hosted endpoint is also documented at https://spraay-x402-mcp--plagtech.run.tools.

Tools and capabilities

Representative capabilities include:

  • Discover and call more than 200 AI models through spraay_models and spraay_chat.
  • Quote and prepare Uniswap V3 swaps on Base, including token discovery.
  • Estimate and prepare batch payments, payroll transfers, and escrow actions.
  • Create, list, and inspect persistent invoices and escrows.
  • Retrieve Base token prices, gas data, stablecoin FX rates, wallet profiles, and transaction history.
  • Request bridge quotes across supported networks through the LI.FI aggregator.
  • Classify addresses and transactions, explain verified contracts, and produce wallet or transaction summaries.

Limitations and notes

The plagtech/spraay-x402-mcp MCP server can control funds when a funded local wallet is used. Protect ~/.spraay/.session, use a dedicated hot wallet, and avoid placing a raw private key in committed configuration. A fresh wallet starts empty, although read-only tools can still be used.

Tool results and availability depend on the live gateway manifest. Operations that return unsigned transactions still require the caller to sign and broadcast them. Local use requires USDC on Base to pay for metered requests; remote mode avoids storing a signing key locally but still uses the gateway's settlement process.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Spraay X402 MCP

Run `npx -y spraay-x402-mcp` with Node.js 20 or later, or configure that command in an MCP client.

Yes. The README provides a Claude Desktop configuration using `npx -y spraay-x402-mcp`.

No API key or required environment variable is needed. Local mode creates a wallet automatically; `EVM_PRIVATE_KEY` is an optional override.

The gateway requests payment through x402, and charges are settled in USDC. Local mode signs with the session or supplied wallet; remote mode handles settlement gateway-side.

Several tools return unsigned transaction data for actions such as swaps, batch payments, payroll, and escrow release. The caller must sign and broadcast those transactions.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewSpraay X402 MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/plagtech-spraay-x402-mcp?style=directory)](https://allmcps.com/mcp/plagtech-spraay-x402-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/plagtech-spraay-x402-mcp"><img src="https://allmcps.com/api/badge/plagtech-spraay-x402-mcp?style=directory" alt="Spraay X402 MCP on AllMCPs" /></a>