以太坊区块链数据工具服务
这是一个 MCP(模型上下文协议)服务器,通过 Etherscan API 提供以太坊区块链数据工具的镜像仓库
MCP Etherscan 服务器快速入门
功能
- 查询ETH余额
- 查看交易历史
- 跟踪ERC20代币转账
- 获取智能合约ABI
- 监控Gas价格
- 解析ENS名称
前提条件
- Node.js >= 18
- Etherscan API密钥 (在 https://etherscan.io/apis 获取)
安装步骤
- 克隆仓库
git clone https://github.com/MCP-Mirror/crazyrabbitLTC_mcp-etherscan-server.git
cd mcp-etherscan-server
- 安装依赖
npm install
- 创建.env文件
ETHERSCAN_API_KEY=你的API密钥
- 构建项目
npm run build
- 启动服务器
npm start
在Claude桌面版使用
配置MCP服务器:
- 在设置中添加服务器
- 使用stdio传输
- 命令:
node /path/to/build/index.js
示例用法:
- 查询地址余额:
Check the balance of 0x742d35Cc6634C0532925a3b844Bc454e4438f44e
- 查看交易:
Show me recent transactions for vitalik.eth