TheGraph MCP 服务器
为 AI 代理提供来自 The Graph 的区块链索引数据的 MCP 服务器。
快速入门
-
克隆仓库: git clone https://github.com/kukapay/thegraph-mcp.git
-
安装依赖并配置客户端: 在配置文件中添加以下内容: { "mcpServers": { "thegraph-mcp": { "command": "uv", "args": ["--directory", "path/to/thegraph-mcp", "run", "main.py"], "env": { "THEGRAPH_API_KEY": "your_api_key_here" } } } }
-
使用示例提示与工具交互,例如:
- 获取子图模式:"显示 QmZBQcF... 的可读格式模式"
- 查询数据:"查找过去24小时内交易量最高的5个代币"