The Graph
v0.2.1The Graph MCP — indexed blockchain data via subgraph GraphQL queries
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
query_subgraph
Run a GraphQL query against a subgraph on The Graph network. subgraph_id is the deployment hash (starts with "Qm…" or the new "0x…" subgraph ID from thegraph.com/explorer). Returns the GraphQL `data` block plus any errors. Requires your own The Graph API key, passed as _apiKey.
| Parameter | Type | Description |
|---|---|---|
_apiKey * | string | Your own The Graph API key (BYO — Pipeworx does not supply one). Free 100k queries/month after signup at https://thegraph.com/studio/apikeys. |
query * | string | GraphQL query string |
subgraph_id * | string | Subgraph deployment ID (look up at thegraph.com/explorer; e.g., Uniswap v3 Ethereum is "5zvR82QoaXYFyDEKLZ9t6v9adgnptxYpKpSbxtgVENFV") |
variables | object | Optional GraphQL variables object |
introspect_schema
Fetch a subgraph's GraphQL schema via standard introspection. Returns types, fields, and arguments so an agent can build queries without external docs. Requires your own The Graph API key, passed as _apiKey.
| Parameter | Type | Description |
|---|---|---|
_apiKey * | string | Your own The Graph API key (BYO — Pipeworx does not supply one). Free 100k queries/month after signup at https://thegraph.com/studio/apikeys. |
subgraph_id * | string | Subgraph deployment ID |