mcpField
D
Drpc Agent Skills

Drpc Agent Skills

Remote
github.com/drpcorgAI & Agents23Updated 18w ago
Repository

About Drpc Agent Skills

DRPC Agent Skills gives AI coding agents RPC access to over 100 blockchains, exposing methods such as eth_call as MCP tools. Agents with a wallet can obtain an API key automatically through x402.

Key features

  1. 01RPC tools such as eth_call and eth_getBalance
  2. 02Access to 100+ blockchains and 200+ networks
  3. 03Automatic API key acquisition via x402
  4. 04Installation guides for several coding agents
  5. 05Recovery guidance for billing and rate-limit errors

Use cases

  1. 01Checking wallet balances across several chains
  2. 02Comparing gas prices across L2 networks
  3. 03Reading smart contract data or confirming transaction status

MCP support

This project is an MCP server that exposes DRPC JSON-RPC methods to MCP clients as tools such as list_networks, eth_call and rpc_batch.

Configuration

Remote servers need no local install. Pick your client, then copy the config or install in one click.

Endpointhttps://lb.drpc.org/mcp/<YOUR_API_KEY>
Copy install command
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.

Tools

Details

From the project README

DRPC Agent Skills

GitHub stars License: MIT Blockchains Networks Platforms MCP Tools

Give your AI coding agent access to 100+ blockchains over RPC. Works on first ask -- no restart, no config file editing. Agents with a wallet get an API key automatically via x402 -- no signup needed. Guided recipes, error handling, 200+ networks.

Why DRPC? Your requests go through a decentralized gateway that routes across multiple providers. If one is down, another picks up. Responses are consensus-validated, so you don't get bad data from a single node.

What Can You Do?

Type a plain English prompt. The agent figures out which RPC calls to make.

Use CaseExample Prompt
DeFi Portfolio"Get my wallet balance across Ethereum, Arbitrum, and Base"
Gas Optimization"Compare gas prices across all L2 networks right now"
Transaction Tracking"Check if transaction 0xabc... is confirmed on Optimism"
Smart Contract Reading"Read the totalSupply of USDC contract on Base"
Whale Watching"Get the last 10 transactions for this address on Ethereum"
Cross-Chain Analysis"Compare TVL-related contract data across Arbitrum, Base and Optimism"

Install

Works with: Claude Code · Gemini CLI · Cursor · Codex · Pi Agent · Windsurf · Cline · OpenClaw

If your agent has a wallet, it gets an API key automatically via x402 -- no signup. Otherwise, get a free key at drpc.org. Then install the skill for your platform:

Claude Code
claude plugins marketplace add drpcorg/drpc-agent-skills
claude plugins install drpc-agent-skills
Gemini CLI
gemini extensions install https://github.com/drpcorg/drpc-agent-skills
Codex
git clone https://github.com/drpcorg/drpc-agent-skills.git
ln -s $(pwd)/drpc-agent-skills/skills/drpc-rpc ~/.agents/skills/drpc-rpc
Pi Agent
pi install npm:pi-mcp-adapter
pi install https://github.com/drpcorg/drpc-agent-skills

Pi-specific setup is bundled as a Pi extension and documented separately in .pi/INSTALL.md.

Cursor
git clone https://github.com/drpcorg/drpc-agent-skills.git
ln -s $(pwd)/drpc-agent-skills/skills/drpc-rpc .cursor/skills/drpc-rpc
Windsurf
git clone https://github.com/drpcorg/drpc-agent-skills.git
ln -s $(pwd)/drpc-agent-skills/skills/drpc-rpc .windsurf/skills/drpc-rpc
Cline
git clone https://github.com/drpcorg/drpc-agent-skills.git
ln -s $(pwd)/drpc-agent-skills/skills/drpc-rpc .cline/skills/drpc-rpc
OpenClaw
git clone https://github.com/drpcorg/drpc-agent-skills.git
ln -s $(pwd)/drpc-agent-skills/skills/drpc-rpc ~/.openclaw/skills/drpc-rpc

How It Works

Ask something like:

"Get the ETH balance of vitalik.eth on Ethereum"

"Compare gas prices across all L2 networks"

The agent reads the skill file, picks the right RPC method, calls DRPC, and gives you back the result. No boilerplate on your end.

You ask → Agent reads skill → Calls DRPC API → Returns blockchain data

Three modes, picked automatically:

  1. First session: acquires API key via x402 wallet signing (or asks you for one), executes request via direct HTTP (no restart needed), configures MCP for future sessions
  2. Subsequent sessions: uses native MCP tools (faster, integrated)
  3. Error handling: recognizes billing limits, rate limiting, and guides recovery

x402: Automatic API Key Acquisition

This skill implements the x402 payment protocol -- an open standard by Coinbase for machine-to-machine payments over HTTP. When a server returns 402 Payment Required, the client knows exactly what to pay, signs the payment, and gets access. No accounts, no dashboards, no copy-pasting keys.

Our implementation adds a free shortcut on top of the standard flow:

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)
  1. SIWE check first -- the agent signs a message proving wallet ownership. If that wallet is already tied to a DRPC account, the API key comes back immediately at no cost.
  2. Payment only when needed -- for new wallets, the agent signs an EIP-3009 transferWithAuthorization for USDC on Base. The server settles it on-chain and returns the key.
  3. Graceful fallback -- no wallet? The agent asks the user for a key the old-fashioned way.

All signatures are off-chain (no gas for the user). Settlement happens server-side.

See x402-auto-key.md for the full protocol recipe with curl examples.

Skill Contents

FilePurpose
SKILL.mdEntry point — detects transport, routes by query type
setup.mdMCP configuration per platform
direct-http.mdDirect HTTP calls for first session (no MCP needed)
client-selection.mdDirect JSON-RPC client selection (reth, geth, erigon, etc.)
tools-reference.mdAll 16 MCP tools with parameters
recipes-simple.mdSingle-network recipes
recipes-crosschain.mdCross-chain recipes
x402-auto-key.mdAuto-acquire API key via x402 (SIWE + EIP-3009)
errors.mdError codes, billing errors, recovery patterns

MCP Tools

ToolDescription
list_networksAll 200+ supported networks
list_methodsRPC methods for a network
get_network_infoNetwork details (chain ID, currency, explorers)
eth_getBalanceNative token balance
eth_getBlockByNumberBlock by number or tag
eth_getBlockByHashBlock by hash
eth_getTransactionByHashTransaction details
eth_getTransactionReceiptReceipt with status and logs
eth_getLogsEvent log queries
eth_callRead smart contracts
eth_gasPriceCurrent gas price
eth_estimateGasGas estimation
eth_getCodeContract bytecode
eth_getTransactionCountNonce for address
rpc_callAny JSON-RPC method
rpc_batchBatch multiple calls

Supported Networks

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, and many more.

Contributing

Found a bug? Missing a chain? Open an issue or send a PR.

Stars help with discoverability -- if this saved you time, consider leaving one.

License

MIT

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.