区块链协议服务器

Etherlink MCP Server是一个基于Tezos的EVM兼容Layer 2区块链的模型上下文协议服务器,支持余额查询、交易发送、智能合约读写等功能。

  • by efekucuk
  • TypeScript
  • 本地部署
  • 4 星标
  • 更新于
在 GitHub 查看 efekucuk/etherlink-mcp-server

使用说明

Etherlink MCP服务器

一种模型上下文协议(MCP)服务器 Etherlink -基于Tezos构建的EVM兼容的第2层区块链。

网络

网络 链ID RPC端点 资源管理器
主网 42793 https://node.mainnet.etherlink.com explorer.etherlink.com
影网测试网 127823 https://node.shadownet.etherlink.com shadhownet.explorer.etherlink.com

本国货币: XTZ(18位小数)

快速开始

安装并运行

git clone https://github.com/efekucuk/etherlink-mcp-server.git
cd etherlink-mcp-server

bun install
bun run start

使用Claude Desktop进行配置

添加到您的Claude桌面配置(~/.config/claude/claude_desktop_config.json):

{
  "mcpServers": {
    "etherlink": {
      "command": "bun",
      "args": ["run", "/path/to/etherlink-mcp-server/src/index.ts"],
      "env": {
        "EVM_PRIVATE_KEY": "your-private-key-here"
      }
    }
  }
}

网络别名

  • 主网: etherlink, etherlink-mainnet
  • 测试网: etherlink-shadownet, etherlink-testnet, shadownet

特性

  • ✅ 检查余额(原生XTZ+ERC20代币)
  • ✅ 发送交易记录
  • ✅ 读/写智能合约(自动获取ABI)
  • ✅ 代币操作(ERC20、ERC721、ERC1155)
  • ✅ 交易历史和收据
  • ✅ 天然气估算
  • ✅ 阻止数据访问
  • ✅ 调试跟踪

Etherlink特定注意事项

关键特性

  1. 本国货币: XTZ (Tez)
  2. EIP-1559支持: 是-使用 max_fee_per_gas.优先费(max_priority_fee_per_gas)由于测序仪使用先到先得的顺序,因此被忽略。
  3. WebSockets: 使用运行自己的节点时受支持 --ws 旗帜。公共RPC节点不公开WebSockets。
  4. 费率限制: 公共RPC限制为1000个请求/分钟

费用结构

Etherlink费用包括:

  • 执行费 -根据网络吞吐量而变化(最小1Gwei)
  • 入会费 -涵盖Tezos L1上的数据可用性

看 费用结构 了解详情。

测试

bun test test/etherlink.test.ts

测试网水龙头

获取测试网XTZ:https://shadownet.faucet.etherlink.com

资源

许可证

麻省理工学院