XE

xiaok/etherscan-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

18 stars 7 forks 品質 62 トレンド 22MIT

Etherscan用のモデルコンテキストプロトコル(MCP)サーバー

概要

Etherscan の API およびサービスとやり取りするための動的 MCP サーバー。 サーバをテストし、デバッグする最速の方法は、fastmcp dev です。 サーバを mcp-cli で実行し、端末の MCP サーバーのテストとデバッグを行います。 別の方法は、公式のMCPインスペクタを使用して、Web UIでサーバーを検査することです。 ガイド[https://modelcontextprotocol.io/quickstart/userに従って、次の設定を追加します。 サポートチェーンリスト: https://docs.etherscan.io/etherscan-v2/getting-started/supported-chains 全てのチェーンでエンドポイントがサポートされていないことに注意してください。 サポート一覧はこちら: [https://forms.blockscan.com/public/grid/3E9QiN00NLhCQVibiP3Z-Bpqhmd7zGXsgapEKJupxiI

概要(AI 翻訳)

Etherscan の API およびサービスとやり取りするための動的 MCP サーバー。

サーバーの実行

##[[T0]でテストする

サーバーをテストし、デバッグする最速の方法は[fastmcp dev]です。

端末のMCPサーバーのテストとデバッグのために[mcp-cli]でサーバーを実行します。

##[[MCP Inspectorのインスペクト

別の方法は、公式[MCP Inspectorを使用して、Web UIでサーバーを検査することです。

よくある質問

##Claude Desktopを使用する方法?

ガイド[https://modelcontextprotocol.io/quickstart/userに従って、次の設定を追加します。

API ドキュメント

[https://docs.etherscan.io/etherscan-v2]

サポートチェーンリスト: [https://docs.etherscan.io/etherscan-v2/getting-started/supported-chains

全てのチェーンでエンドポイントがサポートされていないことに注意してください。 サポート一覧はこちら: [https://forms.blockscan.com/public/grid/3E9QiN00NLhCQVibiP3Z-Bpqhmd7zGXsgapEKJupxiI

#TODO(トード)

  1. サポートプロAPI

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

@xiaok/etherscan-mcp

A dynamic MCP server for interacting with Etherscan’s API and services.

Running Your Server

Test with mcp-cli

The fastest way to test and debug your server is with fastmcp dev:

npx fastmcp dev src/index.ts

This will run your server with mcp-cli for testing and debugging your MCP server in the terminal.

Inspect with MCP Inspector

Another way is to use the official MCP Inspector to inspect your server with a Web UI:

npx npx fastmcp inspect src/index.ts

FAQ

How to use with Claude Desktop?

Follow the guide https://modelcontextprotocol.io/quickstart/user and add the following configuration:

{
  "mcpServers": {
    "etherscan_mcp": {
      "command": "npx",
      "args": ["tsx", "/PATH/TO/YOUR_PROJECT/src/index.ts"],
      "env": {
        "ETHERSCAN_API_KEY": "********"
      }
    }
  }
}

API Doc

https://docs.etherscan.io/etherscan-v2

support chain list: https://docs.etherscan.io/etherscan-v2/getting-started/supported-chains

Please note that not all endpoints are supported by all chains. Please find support list here: https://forms.blockscan.com/public/grid/3E9QiN00NLhCQVibiP3Z-Bpqhmd7zGXsgapEKJupxiI

TODO

  1. support pro api
GitHub で README 全文を見る

インストール

npx tsx /PATH/TO/YOUR_PROJECT/src/index.ts
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "etherscan_mcp": { "command": "npx", "args": ["tsx", "/PATH/TO/YOUR_PROJECT/src/index.ts"], "env": { "ETHERSCAN_API_KEY": "********" } } } }