Skip to main content

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 number
  • eth_get_block — get a block by number, tag, or hash
  • eth_get_transaction — get a transaction by hash
  • eth_get_transaction_receipt — get a transaction receipt
  • eth_get_logs — query event logs with filters
  • eth_get_balance — get an address balance
  • eth_get_code — get contract bytecode
  • eth_get_storage_at — read a contract storage slot
  • eth_call — execute a read-only contract call
  • eth_gas_price — get the current gas price
  • eth_chain_id — get the chain ID
  • eth_get_transaction_count — get an address nonce
  • net_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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

evm_rpc_mcp-0.1.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

evm_rpc_mcp-0.1.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

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

Hashes for evm_rpc_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 664895d0b00b263596cbef76913a523882a2505638446991483d588fa6b8245d
MD5 cccb8b3f40627183776a57de8cc541ca
BLAKE2b-256 e0ba472c60735c0037aedba81bcc75affa2e6f55f5262a94fe7f4030adde90c0

See more details on using hashes here.

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

Hashes for evm_rpc_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fe71f58eb7ed92ead07457d9e3f2334e3198686a71888dc5617a9fee46d1ee80
MD5 737b8bbc0bbe5ffe63eaa500348547a1
BLAKE2b-256 2701d0fa5bb250fc7fe4449c0198f15add2a567b48a56c65a7aaddaed3e1da6a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page