Skip to main content
Glama
Ethereum RPC MCP Server
by 0xKoda

Ethereum RPC MCP サーバー

Ethereum ブロックチェーンと対話するためのモデルコンテキストプロトコル (MCP) サーバー。

概要

このMCPサーバーは、標準のJSON-RPCメソッドを通じてイーサリアムブロックチェーンデータをクエリするためのツールを提供します。これにより、AIアシスタントやアプリケーションは標準化されたプロトコルを介してイーサリアムブロックチェーンとやり取りできるようになります。

Related MCP server: Geth MCP Proxy

特徴

この MCP サーバーは、ツールとして 3 つの主要な Ethereum RPC メソッドを提供します。

  • eth_getCode : 特定のEthereumアドレスのコードを取得する

  • eth_gasPrice : Ethereumネットワーク上の現在のガス価格を取得します

  • eth_getBalance : Ethereumアカウントの残高を確認する

注: 今後も追加予定

使用法

カーソルに追加

この MCP をカーソルに追加するには:

  1. まず、このリポジトリをクローンします。

    git clone https://github.com/yourusername/eth-mpc.git
  2. カーソル設定→MCP→新しいMCPサーバーの追加に移動します

  3. 名前を入力します(例:「eth-mcp」)

  4. タイプとして「コマンド」を選択

  5. スクリプトへのフルパスを入力します。

    node /path/to/eth-mpc/index.js

カーソルにEthereum MCPを追加する

  1. 「追加」をクリックしてサーバーを有効にします

追加されると、Ethereum RPC ツールを Cursor 内で使用できるようになります。

サーバーは stdio トランスポートを使用するため、Claude Desktop、Cursor などの MCP クライアントと互換性があります。

MCP Inspectorによるテスト

MCP Inspectorは、MCPサーバーのテストとデバッグのための開発ツールです。完全なAIクライアントを必要とせずに、MCPサーバーの機能をテストするためのインタラクティブなインターフェースを提供します。

インスペクターの実行

Inspector を使用して Ethereum RPC MCP サーバーをテストするには:

インスペクターを実行するには:

npx @modelcontextprotocol/inspector
  1. コマンドとパスを入力してください

  2. インスペクターは実行中の MCP サーバーに接続し、利用可能なツールを表示します。

Inspectorを使用したテストツール

インスペクターを使用すると、次のことが可能になります。

  • 利用可能なツールとその説明を表示する

  • 各ツールを異なるパラメータでテストする

  • 構造化された形式で回答を確認する

  • MCPサーバーの実装に関する問題をデバッグする

たとえば、 eth_getBalanceツールをテストするには、次のようにします。

  1. インスペクタインターフェースでツールを選択する

  2. 有効なEthereumアドレスを入力してください(例: 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 - Vitalikのアドレス)

  3. デフォルトのブロックパラメータ( latest )を使用する

  4. リクエストを送信して応答を表示する

MCPクライアントとの統合

この MCP サーバーは、次のような MCP 互換クライアントと統合できます。

  • クロードデスクトップ

  • クロード・コード

  • カーソル(上記の説明を参照)

  • クライン

  • その他のMCP互換アプリケーション

統合されると、クライアント アプリケーションはこのサーバーが提供するツールを使用して、Ethereum ブロックチェーン データを直接照会できます。

MCPを理解する

モデルコンテキストプロトコル(MCP)は、AIモデルが様々なツールやサービスと連携できるようにするオープンスタンダードです。開発者がAIアシスタントにAPI、データソース、機能を公開するための標準化された方法を提供します。

MCPについて詳しくはこちら

このような MCP サーバーは、各サービスごとにカスタム統合を必要とせずに、AI アシスタントが複数のサービスにわたって複雑なタスクを実行できるようにするエコシステムの一部を形成します。

📚公式ドキュメント:モデルコンテキストプロトコルの概要

ライセンス

マサチューセッツ工科大学

貢献

貢献を歓迎します!お気軽にプルリクエストを送信してください。

Available Tools

3 tools
eth_gasPriceA

Retrieves the current gas price in wei

Inputs: no named parameters.

eth_getBalanceC

Retrieves the balance of a given Ethereum address

Inputs: address (required), blockParameter.

eth_getCodeC

Retrieves the code at a given Ethereum address

Inputs: address (required), blockParameter.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: eth_gasPrice retrieves network gas price, eth_getBalance retrieves account balance, and eth_getCode retrieves contract code. There is no overlap or ambiguity between these functions, making tool selection straightforward for an agent.

    Naming Consistency5/5

    All tool names follow a consistent eth_verbNoun pattern (eth_gasPrice, eth_getBalance, eth_getCode), using snake_case and the same prefix. This predictable naming scheme enhances readability and agent usability without any deviations.

    Tool Count2/5

    With only 3 tools, this server feels thin for an Ethereum RPC server, as it lacks core operations like sending transactions, querying blocks, or checking transaction status. The count is too low for the apparent scope of Ethereum interaction, limiting functionality.

    Completeness2/5

    The tool surface is severely incomplete for an Ethereum RPC domain. It includes only read-only queries (gas price, balance, code) but omits essential operations such as eth_sendTransaction, eth_getTransactionByHash, or eth_blockNumber, creating significant gaps that will cause agent failures in typical workflows.

    Maintenance

    ActivityInactive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Bridges 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.
      52 npm
      4
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Provides comprehensive access to Ethereum Virtual Machine (EVM) JSON-RPC methods for querying blockchain data, executing smart contract calls, and interacting with any EVM-compatible network including Ethereum, Polygon, Arbitrum, and more. Enables users to check balances, analyze transactions, estimate gas, retrieve logs, and perform blockchain operations through natural language.
      19
      16 npm
      3
      MIT