Spraay X402 Mcp

io.github.plagtech由 GitHub 帳號 plagtech 發布v3.1.1更新於 Oct 28, 2026

MCP server for Spraay x402 Gateway. 60 tools for crypto payments, DeFi, and AI on Base.

概覽

AI 產生的概覽

Spraay x402 閘道 MCP 伺服器,讓助理按次付費呼叫 Base 上的加密支付、DeFi、AI 推論、研究與搜尋工具,以 USDC 結算。

可以做什麼
  • 呼叫 AI 與算力工具:200+ 大型模型、影像、影片、TTS、STT、向量嵌入、批次任務、Bittensor 推論
  • 轉移資金:批次付款、穩定幣發薪、開立發票、里程碑託管
  • 查詢 DeFi 與鏈上資料:兌換、預言機價格、Gas、跨鏈報價、餘額、ENS、錢包分析
  • 使用研究與搜尋:論文庫、arXiv、PubMed、網頁搜尋、內容擷取、問答
  • 串接基礎設施與合規:多鏈 RPC、IPFS/Arweave 儲存、排程任務、KYC 與制裁篩查、加密稅務
  • 寄送電子郵件、簡訊與 XMTP 訊息,並執行供應鏈與機器人任務流程
適用情境
適合需要鏈上支付、DeFi 資料、付費 AI 推論或研究 API,又不想分別管理各家帳號與 API 金鑰的情境,前提是你願意讓助理按次花費少量 USDC。唯讀與免費端點無需儲值即可使用。
執行需求
本機 npm 套件需要 Node.js 20+ 與 MCP 用戶端,也可改用遠端 URL。付費呼叫需在 Base 上準備 USDC;首次執行會在 ~/.spraay/.session 自動建立錢包。可選覆寫項:EVM_PRIVATE_KEY 與 SPRAAY_GATEWAY_URL。需要能連線至閘道的網路。
安裝前請注意
相關工具會動用真實 USDC:付款、發薪、託管釋出與兌換。錢包只存入允許助理花費的金額,並妥善保護控制資金的 session 金鑰檔案。若使用 EVM_PRIVATE_KEY,請用專用熱錢包且切勿提交金鑰。改用遠端 URL 可避免本機保存簽章金鑰。工具呼叫與付款資訊會傳送至 Spraay 閘道。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Spraay X402 Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

💧 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).


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)

bash
claude mcp add spraay -s user -- npx -y spraay-x402-mcp

Manual config (Cursor / Claude Desktop)

Cursor (.cursor/mcp.json) or Claude Desktop (claude_desktop_config.json):

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 EVM_PRIVATE_KEY 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.

json
{  "mcpServers": {    "spraay": {      "url": "https://spraay-x402-mcp--plagtech.run.tools"    }  }}

Smithery

bash
smithery mcp add Plagtech/Spraay-x402-mcp

From source

bash
git clone https://github.com/plagtech/spraay-x402-mcpcd spraay-x402-mcpnpm installnpm run buildnpm start                     # auto-creates a wallet on first run

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:

bash
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 [email protected], not a public issue.


Requirements

  • Node.js 20+
  • MCP client — Claude Desktop, Cursor, or any MCP-compatible client
  • USDC on Base — fund the auto-created wallet (or your own); even $1 covers thousands of calls

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

來源:README.md,提交 327cfc7

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v3.1.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分