ChainRPC MCP

v2.0.2
io.github.John0n1/chainrpc-mcp Checked 2 days ago Published 3 months ago

Safety-first EVM and Bitcoin RPC tools for balances, contracts, blocks, and transactions

Values you need

VariableWhat it is
EVM_RPC_URLoptional EVM JSON-RPC endpoint Default: https://ethereum-rpc.publicnode.com
BITCOIN_RPC_URLoptional Bitcoin Core-compatible JSON-RPC endpoint Default: https://bitcoin-rpc.publicnode.com
ALLOW_EVM_BROADCASToptional Explicitly enable signed EVM transaction broadcasts Default: false
ALLOW_BITCOIN_BROADCASToptional Explicitly enable signed Bitcoin transaction broadcasts Default: false

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add chainrpc-mcp -- npx -y chainrpc-mcp@2.0.2
Add to claude_desktop_config.json
{
  "mcpServers": {
    "chainrpc-mcp": {
      "args": [
        "-y",
        "chainrpc-mcp@2.0.2"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "chainrpc-mcp": {
      "args": [
        "-y",
        "chainrpc-mcp@2.0.2"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "chainrpc-mcp": {
      "args": [
        "-y",
        "chainrpc-mcp@2.0.2"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.chainrpc-mcp]
command = "npx"
args = ["-y", "chainrpc-mcp@2.0.2"]

Remote (hosted)

Run in a terminal
claude mcp add --transport http chainrpc-mcp https://chainrpc-mcp.mitander.io/mcp
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "chainrpc-mcp": {
      "args": [
        "-y",
        "mcp-remote",
        "https://chainrpc-mcp.mitander.io/mcp"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "chainrpc-mcp": {
      "url": "https://chainrpc-mcp.mitander.io/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "chainrpc-mcp": {
      "type": "http",
      "url": "https://chainrpc-mcp.mitander.io/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.chainrpc-mcp]
command = "npx"
args = ["-y", "mcp-remote", "https://chainrpc-mcp.mitander.io/mcp"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: evm_getBlockNumber, evm_getChainInfo, evm_getNativeBalance, evm_getBlock, evm_getTransaction, evm_call, evm_readContract, evm_estimateTransaction, ….
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json