Heurist Mesh MCP 服务器

Heurist Mesh MCP 服务器

一个连接 Heurist Mesh API 的 MCP 服务器,为 Claude 提供区块链和 Web3 工具支持。

快速入门

前置条件

  • 安装 Python 3.10 或更高版本
  • 安装 UV 包管理器(推荐)或 Docker
  • 获取 Heurist API 密钥

安装

使用 UV

git clone https://github.com/heurist-network/heurist-mesh-mcp-server.git
cd heurist-mesh-mcp-server
uv pip install -e .

使用 Docker

git clone https://github.com/heurist-network/heurist-mesh-mcp-server.git
cd heurist-mesh-mcp-server
docker build -t mesh-tool-server .

运行

使用 stdio(适用于 Claude Desktop)

编辑配置文件 claude_desktop_config.json

{
  "mcpServers": {
    "heurist-mesh-agent": {
      "command": "uv",
      "args": [
        "run",
        "mesh-tool-server"
      ],
      "env": {
        "HEURIST_API_KEY": "your-api-key-here"
      }
    }
  }
}

使用 SSE(适用于 Cursor)

设置环境变量 .env

cp .env.example .env
HEURIST_API_KEY=your-api-key-here

运行命令:

uv run mesh-tool-server --transport sse --port 8000

在 Cursor 中添加 URL:http://0.0.0.0:8000/sse

可用工具

访问 Heurist Metadata 查看所有工具。