
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.
概览
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。需要能访问网关的网络。
安装
在 SourceWeft 中
- 打开 控制台中的 Spraay X402 Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
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)
Manual config (Cursor / Claude Desktop)
Cursor (.cursor/mcp.json) or Claude Desktop (claude_desktop_config.json):
That's it. The first run prints something like:
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.
Smithery
From source
Tool catalog
183 tools spanning the gateway's 33 categories. Highlights by area:
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:
Pricing ranges from $0.001 (reads) to ~$0.10 (payroll, escrow release, tax), settled in USDC on Base.
How it works
- An agent calls a tool (e.g.
spraay_batch_execute). - The MCP server hits the Spraay x402 Gateway.
- The gateway responds
402 Payment Requiredwith a USDC amount. - Remote mode: settlement is handled gateway-side.
Local mode:
@x402/axiossigns a USDC micropayment from the auto-created (or overridden) wallet. - 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 with0600permissions 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.
Links
- MCP server: mcp.spraay.app
- Gateway: gateway.spraay.app
- Manifest: gateway.spraay.app/.well-known/x402.json
- Smithery: smithery.ai/servers/Plagtech/Spraay-x402-mcp
- x402: x402.org
License
MIT
来源:README.md,提交 327cfc7
工具
0版本历史
1- v3.1.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分