thegraph-mcp logo

thegraph-mcp用于使 AI 代理具有 The Graph 的索引区块链数据功能的 MCP 服务器。

(0)
Daniel Nikulshyn审阅者 Daniel Nikulshyn·更新 2026年7月

概览

TheGraph MCP Server 是一个服务器,利用来自 The Graph 的已索引区块链数据为 AI agents 提供动力。它提供获取 subgraph schemas 的工具,并能对 subgraph 执行 GraphQL 查询。该服务器设计用于配合 AI agents 使用,同时也支持手动查询编写。 工具“getSubgraphSchema”获取指定子图的 schema,向 AI 代理提供生成 GraphQL 查询所需的上下文。该 schema 可以以人类可读的 GraphQL 格式或 JSON schema 格式返回。 工具 'querySubgraph' 对指定的子图执行 GraphQL 查询。这些查询通常由 AI 生成,但也可以手动编写。 服务器需要配置,包括为 The Graph 设置 API 密钥。 它在 MIT 许可证下授权。

主要功能

  • getSubgraphSchema 工具以从指定的子网图中检索图表的 schema
  • querySubgraph 工具以在指定的子网图中执行 GraphQL 查询
  • 对于人类可读和 JSON 图表输出格式支持
  • 通过客户端配置文件进行配置

价格

模型
Free
评分
暂无评价

使用场景

图表发现

检索指定的子网图的图表以理解其数据模型并生成 GraphQL 查询

数据询问

在指定的子网图中执行 GraphQL 查询以检索特定的区块链数据

AI 驱动分析

使用 MCP 服务器与 AI 代理进行区块链数据的分析并找出趋势或模式

优点 & 缺点

优点

  • 提供对从 The Graph 索引的区块链数据的访问
  • 允许检索子网图表和执行 GraphQL 查询
  • 支持人类可读和 JSON 图表输出格式
  • 可与 AI 代理一起使用或手动询问

缺点

  • 需要 The Graph 的 API 密钥进行配置
  • 对可靠性、性能和可扩展性等方面的信息有限
  • 没有预先构建的发行或包可用

评测

登录以留下评测。

暂无评测。来当第一个吧!

问答

How do I execute a custom query against a subgraph?

Use the querySubgraph tool, providing the subgraphId and a valid GraphQL query string. The tool will return the query results in JSON format.

Asked by Katarzyna Zielinska · Jan 6, 2026

What output formats are available for schemas?

The getSubgraphSchema tool can return the schema either as a human‑readable GraphQL string (when asText=true) or as a JSON schema (when asText=false).

Asked by Femi Adebayo · Dec 4, 2025

Can I use the server with my own AI agent?

Yes, the server is designed for AI agents. It exposes two tools: getSubgraphSchema to provide schema context and querySubgraph to execute GraphQL queries, which can be generated by an AI or crafted manually.

Asked by Piotr Baranowski · Dec 1, 2025

What is required to start using theGraph MCP Server?

You need to clone the repository, install dependencies, and set your The Graph API key in the client configuration file (THEGRAPH_API_KEY). Then run the server via the provided command.

Asked by Mohammed Al-Amin · Nov 20, 2025

提问

服务配缩器 的替代品