dRPC Agent Skills
OfficialDRPC 代理技能
让您的 AI 编码代理能够通过 RPC 访问 100 多个区块链。即问即用——无需重启,无需编辑配置文件。拥有钱包的代理可通过 x402 自动获取 API 密钥——无需注册。提供引导式方案、错误处理以及 200 多个网络支持。
为什么选择 DRPC? 您的请求通过去中心化网关进行路由,该网关会在多个提供商之间进行调度。如果一个提供商宕机,另一个会接管。响应经过共识验证,因此您不会从单个节点获取错误数据。
您可以做什么?
输入简单的英语提示词,代理会自动判断需要进行哪些 RPC 调用。
使用场景 | 示例提示词 |
DeFi 投资组合 | "获取我在 Ethereum、Arbitrum 和 Base 上的钱包余额" |
Gas 优化 | "立即比较所有 L2 网络上的 Gas 价格" |
交易追踪 | "检查交易 0xabc... 在 Optimism 上是否已确认" |
智能合约读取 | "读取 Base 上 USDC 合约的 totalSupply" |
巨鲸监控 | "获取该地址在 Ethereum 上的最后 10 笔交易" |
跨链分析 | "比较 Arbitrum、Base 和 Optimism 上与 TVL 相关的合约数据" |
Related MCP server: x402 On-Chain Data MCP Server
安装
支持平台: Claude Code · Gemini CLI · Cursor · Codex · Windsurf · Cline · OpenClaw
如果您的代理拥有钱包,它可以通过 x402 自动获取 API 密钥——无需注册。否则,请在 drpc.org 获取免费密钥。然后为您的平台安装技能:
Claude Code
claude plugins marketplace add drpcorg/drpc-agent-skills
claude plugins install drpc-agent-skillsGemini CLI
gemini extensions install https://github.com/drpcorg/drpc-agent-skillsCodex
git clone https://github.com/drpcorg/drpc-agent-skills.git
ln -s $(pwd)/drpc-agent-skills/skills/drpc-rpc ~/.agents/skills/drpc-rpcCursor
git clone https://github.com/drpcorg/drpc-agent-skills.git
ln -s $(pwd)/drpc-agent-skills/skills/drpc-rpc .cursor/skills/drpc-rpcWindsurf
git clone https://github.com/drpcorg/drpc-agent-skills.git
ln -s $(pwd)/drpc-agent-skills/skills/drpc-rpc .windsurf/skills/drpc-rpcCline
git clone https://github.com/drpcorg/drpc-agent-skills.git
ln -s $(pwd)/drpc-agent-skills/skills/drpc-rpc .cline/skills/drpc-rpcOpenClaw
git clone https://github.com/drpcorg/drpc-agent-skills.git
ln -s $(pwd)/drpc-agent-skills/skills/drpc-rpc ~/.openclaw/skills/drpc-rpc工作原理
询问类似以下内容:
"获取 vitalik.eth 在 Ethereum 上的 ETH 余额"
"比较所有 L2 网络上的 Gas 价格"
代理会读取技能文件,选择正确的 RPC 方法,调用 DRPC,并将结果返回给您。无需您编写任何样板代码。
You ask → Agent reads skill → Calls DRPC API → Returns blockchain data自动选择三种模式:
首次会话: 通过 x402 钱包签名获取 API 密钥(或要求您提供一个),通过直接 HTTP 执行请求(无需重启),并为后续会话配置 MCP。
后续会话: 使用原生 MCP 工具(更快、集成度更高)。
错误处理: 识别计费限制、速率限制,并指导恢复。
x402:自动获取 API 密钥
此技能实现了 x402 支付协议——这是 Coinbase 为 HTTP 机器对机器支付制定的开放标准。当服务器返回 402 Payment Required 时,客户端确切知道需要支付多少,签署支付并获得访问权限。无需账户,无需仪表板,无需复制粘贴密钥。
我们的实现还在标准流程之上增加了一个免费快捷方式:
Agent has wallet?
│
├─ yes → SIWE sign-in (EIP-4361) ─── wallet already linked? ─── yes → API key (free, instant)
│ │
│ no
│ ↓
│ Pay 5 USDC (EIP-3009 signature, settled on Base)
│ ↓
│ API key + tx receipt
│
└─ no → Ask user for key (fallback to drpc.org free tier)首先进行 SIWE 检查——代理签署一条消息以证明钱包所有权。如果该钱包已绑定到 DRPC 账户,则无需任何费用即可立即返回 API 密钥。
仅在需要时支付——对于新钱包,代理会为 Base 上的 USDC 签署 EIP-3009
transferWithAuthorization。服务器在链上结算并返回密钥。优雅降级——没有钱包?代理会以传统方式向用户索要密钥。
所有签名均在链下进行(用户无需支付 Gas)。结算在服务器端完成。
请参阅 x402-auto-key.md 获取包含 curl 示例的完整协议方案。
技能内容
文件 | 用途 |
入口点 — 检测传输方式,按查询类型路由 | |
各平台的 MCP 配置 | |
首次会话的直接 HTTP 调用(无需 MCP) | |
所有 16 个带参数的 MCP 工具 | |
单网络方案 | |
跨链方案 | |
通过 x402 自动获取 API 密钥 (SIWE + EIP-3009) | |
错误代码、计费错误、恢复模式 |
MCP 工具
工具 | 描述 |
| 所有 200 多个支持的网络 |
| 网络的 RPC 方法 |
| 网络详情(链 ID、货币、浏览器) |
| 原生代币余额 |
| 按编号或标签获取区块 |
| 按哈希获取区块 |
| 交易详情 |
| 包含状态和日志的收据 |
| 事件日志查询 |
| 读取智能合约 |
| 当前 Gas 价格 |
| Gas 估算 |
| 合约字节码 |
| 地址的 Nonce 值 |
| 任何 JSON-RPC 方法 |
| 批量调用 |
支持的网络
Ethereum、Arbitrum、Optimism、Base、Polygon、BNB Chain、Avalanche、zkSync、Linea、Scroll、Mantle、Fantom、Gnosis、Celo、Moonbeam、Harmony、Aurora、Metis、Boba、Cronos、Klaytn、Solana、Bitcoin、NEAR、Cosmos、Starknet 以及 更多。
贡献
发现 Bug?缺少链?请提交 Issue 或发送 PR。
Star 有助于提高可见性——如果这为您节省了时间,请考虑点个 Star。
许可证
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
USDC-gated Base JSON-RPC: free 10 req/min, $0.50 per 10k. Failover, cache, /mcp, ledger.
Abstraxn: public Web3 MCP server for read-only chain data and pay-per-call relays.
Hosted MCP gateway for Web3 infra discovery across 20+ networks via one endpoint.
Safety-first EVM and Bitcoin RPC tools for balances, contracts, blocks, and transactions
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceBridges Ethereum JSON-RPC queries from Geth nodes to the Model Context Protocol ecosystem, exposing blockchain operations as MCP tools. Enables AI models and applications to securely interact with Ethereum data including blocks, transactions, balances, and advanced debug functions through schema-validated access.873MIT
- FlicenseAqualityDmaintenancePay-per-call MCP server for on-chain blockchain data including wallet profiles, token metrics, protocol TVL, and gas prices.5-
- AlicenseAqualityCmaintenanceEnables MCP clients to interact with over 31 blockchain chains through the MoltNode RPC gateway, providing tools for chain listing, RPC calls, block numbers, and native balance queries without API keys or setup.4MIT
- AlicenseAqualityAmaintenanceBlockchain JSON-RPC on 23 EVM chains for AI agents — Ethereum, Base, Arbitrum, plus young chains like Robinhood Chain, Plasma and Ink. Free reads with no key; heavy methods (eth_getLogs, trace, debug) via a free API key or x402 USDC pay-per-call.12121MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/drpcorg/drpc-agent-skills'
If you have feedback or need assistance with the MCP directory API, please join our Discord server