Mesh Agent MCP Server

Mesh Agent MCP Server

site icon
2025.03.28 0
Python区块链服务Web3工具集成金融服务开发效率
Heurist Mesh MCP Server 是一个模型上下文协议(MCP)服务器,连接至 Heurist Mesh API,为 Claude 提供访问各种区块链和 Web3 工具的能力。Heurist Mesh 是一个由专门设计的 AI 代理和工具组成的开放网络,专注于区块链数据分析、智能合约安全、代币指标和区块链交互等 Web3 领域。该服务器支持 SSE 和 stdio 传输方式,适用于 Cursor、Claude Desktop 等 MCP 兼容接口。
View on GitHub

Overview

基本能力

产品定位

Heurist Mesh MCP Server 是一个连接 Heurist Mesh API 的 MCP 服务器,旨在为 Claude 提供访问区块链和 Web3 工具的能力。

核心功能

  • 连接至 Heurist Mesh API
  • 加载加密货币数据和 Web3 用例的工具
  • 支持 SSE 和 stdio 传输方式
  • 适用于 Cursor、Claude Desktop 等 MCP 兼容接口
  • 使用单一 API 密钥访问多种服务(如 CoinGecko 加密货币市场数据、GoPlus 代币安全审查)

适用场景

  • 区块链数据分析
  • 智能合约安全审查
  • 代币指标分析
  • 区块链交互
  • Web3 工具集成

工具列表

工具名称 描述 代理 参数 必填参数
get_coingecko_id 通过代币名称搜索其 CoinGecko ID CoinGeckoTokenInfoAgent token_name (string) token_name
get_token_info 使用 CoinGecko ID 获取详细的代币信息和市场数据 CoinGeckoTokenInfoAgent coingecko_id (string) coingecko_id
get_trending_coins 获取 CoinGecko 上当前热门的加密货币 CoinGeckoTokenInfoAgent - None
get_specific_pair_info 通过链和交易对地址在 DexScreener 上获取交易对信息 DexScreenerTokenInfoAgent chain (string), pair_address (string) chain, pair_address
get_token_pairs 通过链和代币地址在 DexScreener 上获取交易对 DexScreenerTokenInfoAgent chain (string), token_address (string) chain, token_address
get_token_profiles 从 DexScreener 获取最新代币的基本信息 DexScreenerTokenInfoAgent - None
search_pairs 通过代币名称、符号或地址在 DexScreener 上搜索交易对 DexScreenerTokenInfoAgent search_term (string) search_term
get_trending_tokens 获取 Twitter 上当前热门的代币 ElfaTwitterIntelligenceAgent time_window (string) None
search_account 分析 Twitter 账户的提及和账户统计数据 ElfaTwitterIntelligenceAgent username (string), days_ago (integer), limit (integer) username
search_mentions 在 Twitter 上搜索特定代币或主题的提及 ElfaTwitterIntelligenceAgent keywords (array), days_ago (integer), limit (integer) keywords
answer 使用 Exa 的答案 API 直接回答问题 ExaSearchAgent question (string) question
search 搜索与查询相关的网页 ExaSearchAgent search_term (string), limit (integer) search_term
search_and_answer 对查询执行搜索和回答操作 ExaSearchAgent topic (string) topic
execute_search 通过阅读网页执行网络搜索查询 FirecrawlSearchAgent search_term (string) search_term
generate_queries 为主题生成相关搜索查询以扩展研究 FirecrawlSearchAgent topic (string), num_queries (integer) topic
fetch_security_details 获取区块链代币合约的安全详细信息 GoplusAnalysisAgent contract_address (string), chain_id (integer/string) contract_address

常见问题解答

使用教程

使用依赖

安装教程

使用 UV(推荐)

# 克隆仓库
git clone https://github.com/yourusername/heurist-mesh-agent-mcp.git
cd heurist-mesh-agent-mcp

# 安装包
uv pip install -e .

使用 Docker

# 克隆仓库
git clone https://github.com/yourusername/heurist-mesh-agent-mcp.git
cd heurist-mesh-agent-mcp

# 构建 Docker 镜像
docker build -t mesh-tool-server .

调试方式

使用 stdio 传输(适用于 Claude Desktop)

使用 UV

claude_desktop_config.json 中添加以下内容:

{
  "mcpServers": {
    "heurist-mesh-agent": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/heurist-mesh-mcp-server/mesh_mcp_server",  // 更新此路径
        "run",
        "mesh-tool-server"
      ],
      "env": {
        "HEURIST_API_KEY": "your-api-key-here"  // 更新此密钥
      }
    }
  }
}
使用 Docker

claude_desktop_config.json 中添加以下内容:

{
  "mcpServers": {
    "mesh-agent": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "-e", "TRANSPORT=stdio",
        "-e", "HEURIST_API_KEY=your-api-key-here",  // 更新此密钥
        "mesh-tool-server"
      ]
    }
  }
}

使用 SSE 传输(适用于 Cursor)

设置环境变量
cp .env.example .env
HEURIST_API_KEY=your-api-key-here
使用 UV
uv run mesh-tool-server --transport sse --port 8000
使用 Docker
docker run -p 8000:8000 -e PORT=8000 mesh-tool-server

在 Cursor 中添加 MCP 服务器 URL:http://0.0.0.0:8000/sse

许可证

该项目遵循 MIT 开源许可条款。