XE

xiaok/etherscan-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

18 stars 7 forks 质量 62 趋势 22MIT

Etherscan 的模型背景协议服务器

概览

一个动态的MCP服务器,用于与以太斯坎的API和服务交互. 测试和调试您服务器的最快方式是使用 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 翻译)

一个动态的MCP服务器,用于与以太斯坎的API和服务交互.

□ 运行您的服务器

使用 [[T0] 测试

测试和调试您服务器的最快方式是 [[T1] :

这将用 mcp-cli 运行您的服务器, 用于测试和调试您的终端中的 MCP 服务器 。

++ 检查用 MCP Inspector

另一种方法是使用官方MCP Inspector用Web UI检查您的服务器:

□ 问 题

如何使用克劳德桌面?

遵循指南https://modelcontextprotocol.io/quickstart/user并添加以下配置:

□ API Doc

[[T6]

支持链列表 : [[T7]

请注意,并非所有终点都得到所有链条的支持。 请在此查找支持列表 : https://forms.blockscan.com/public/grid/3E9QiN00NLhCQVibiP3Z-Bpqhmd7zGXsgapEKJupxiI

□ 东都

  1. 亲亲支持

本页由 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
新手?先看 mcpskill.org 教程 →

配置

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