What is An MCP server that powers AI agents with indexed blockchain data from The Graph.?
TheGraph MCP Server is designed to provide AI agents with indexed blockchain data from The Graph. It includes tools for fetching subgraph schemas and executing GraphQL queries, enabling users to interact with blockchain data effectively.
Documentation
TheGraph MCP Server
An MCP server that powers AI agents with indexed blockchain data from The Graph.
Available Tools# 1. getSubgraphSchema
Fetches the schema of a specified subgraph, providing AI agents with the context needed to generate GraphQL queries.
Parameters:
subgraphId: The subgraph ID (e.g., "QmZBQcF...")
asText: Output format flag
true: Returns human-readable GraphQL schema
false: Returns JSON schema (default)
2. querySubgraph
Executes GraphQL queries against a specified subgraph. While queries are typically generated by AI, you can also manually craft your own.