MCP server for SwiftNodes — multi-chain RPC data, pricing, weekly-probed method support, and live endpoint probing for AI agents.
swiftnodes-mcp
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
An MCP (Model Context Protocol) server for SwiftNodes — multi-chain blockchain RPC, exposed to AI agents.
One API key, 125+ chains, flat-rate pricing. This server gives Claude, ChatGPT, Cursor, and any MCP client live, factual answers about chains, pricing, and JSON-RPC method support — plus the ability to probe any EVM endpoint directly.
Hosted server (recommended)
SwiftNodes runs this server for you at **https://rpc.swiftnodes.io/mcp** (Streamable HTTP). Nothing to install.
Cursor and other clients (~/.cursor/mcp.json):
The key is optional: without it the public tools below work. With it, two more tools are available:
| Tool | What it does |
|---|---|
| rpc_call | Make a JSON-RPC call on any SwiftNodes chain with your key (counts against your plan like any request). |
| get_account | Your plan, rate limits, requests used this month, and the IP/origin restrictions on the key. Never returns key values. |
Listed in the official MCP Registry as io.swiftnodes/swiftnodes. Docs: https://swiftnodes.io/docs/mcp
Tools
| Tool | What it does |
|---|---|
| list_chains | Every chain SwiftNodes serves — name, slug, chain ID, category, docs page. Filterable. |
| get_chain | Full detail for one chain: IDs, block time, native currency, HTTP/WebSocket/archive endpoint templates, docs links. |
| get_pricing | Live flat-rate plans from the public API — rate limits, included features, no compute units. |
| get_method_support | Which JSON-RPC methods work on which chain — auto-probed weekly through the same path customer requests take. Overview or per-method detail. |
| probe_endpoint | Diagnose any EVM JSON-RPC endpoint (ours or anyone's): chain identity, block height, archive capability, latency — or run a specific method call. |
Run it locally (stdio)
Zero dependencies, Node >= 18.
**From this repo:**
**Via npm** (once published): npx -y swiftnodes-mcp
Claude Desktop
Cursor / any MCP client
Add a stdio server with command node and args ["/path/to/swiftnodes-mcp/bin/server.js"].
Data sources
- **Chains** — bundled snapshot generated from the SwiftNodes site source of truth (scripts/generate-chains-data.mjs; regenerate after chain changes).
- **Pricing** — fetched live from https://rpc.swiftnodes.io/api/plans (bundled fallback if unreachable).