MCP server providing read-only access to any EVM blockchain via JSON-RPC
Project description
evm-rpc-mcp
An MCP server that gives AI assistants read-only access to any EVM-compatible blockchain (Ethereum, Polygon, Arbitrum, Base, etc.) via JSON-RPC.
Features
eth_block_number— get the latest block numbereth_get_block— get a block by number, tag, or hasheth_get_transaction— get a transaction by hasheth_get_transaction_receipt— get a transaction receipteth_get_logs— query event logs with filterseth_get_balance— get an address balanceeth_get_code— get contract bytecodeeth_get_storage_at— read a contract storage sloteth_call— execute a read-only contract calleth_gas_price— get the current gas priceeth_chain_id— get the chain IDeth_get_transaction_count— get an address noncenet_version— get the network ID
Installation
pip install evm-rpc-mcp
Or run directly with uvx:
uvx evm-rpc-mcp --rpc-url https://eth.llamarpc.com
Usage
Pass your RPC endpoint URL via the --rpc-url flag or the EVM_RPC_URL environment variable:
evm-rpc-mcp --rpc-url https://eth.llamarpc.com
EVM_RPC_URL=https://eth.llamarpc.com evm-rpc-mcp
Claude Code
Add this to your project's .mcp.json file:
{
"mcpServers": {
"evm-rpc": {
"type": "stdio",
"command": "uvx",
"args": ["evm-rpc-mcp", "--rpc-url", "https://eth.llamarpc.com"]
}
}
}
Or if you installed it with pip:
{
"mcpServers": {
"evm-rpc": {
"type": "stdio",
"command": "evm-rpc-mcp",
"args": ["--rpc-url", "https://eth.llamarpc.com"]
}
}
}
Claude Desktop
Add this to your Claude Desktop config (claude_desktop_config.json):
{
"mcpServers": {
"evm-rpc": {
"command": "uvx",
"args": ["evm-rpc-mcp", "--rpc-url", "https://eth.llamarpc.com"]
}
}
}
Replace https://eth.llamarpc.com with your preferred RPC endpoint for any EVM chain.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file evm_rpc_mcp-0.1.0.tar.gz.
File metadata
- Download URL: evm_rpc_mcp-0.1.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
664895d0b00b263596cbef76913a523882a2505638446991483d588fa6b8245d
|
|
| MD5 |
cccb8b3f40627183776a57de8cc541ca
|
|
| BLAKE2b-256 |
e0ba472c60735c0037aedba81bcc75affa2e6f55f5262a94fe7f4030adde90c0
|
File details
Details for the file evm_rpc_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: evm_rpc_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe71f58eb7ed92ead07457d9e3f2334e3198686a71888dc5617a9fee46d1ee80
|
|
| MD5 |
737b8bbc0bbe5ffe63eaa500348547a1
|
|
| BLAKE2b-256 |
2701d0fa5bb250fc7fe4449c0198f15add2a567b48a56c65a7aaddaed3e1da6a
|