The Graph

v0.2.1
io.github.pipeworx-io/the-graph Checked 1 day ago Published 27 days ago

The 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.

ParameterTypeDescription
_apiKey *stringYour own The Graph API key (BYO — Pipeworx does not supply one). Free 100k queries/month after signup at https://thegraph.com/studio/apikeys.
query *stringGraphQL query string
subgraph_id *stringSubgraph deployment ID (look up at thegraph.com/explorer; e.g., Uniswap v3 Ethereum is "5zvR82QoaXYFyDEKLZ9t6v9adgnptxYpKpSbxtgVENFV")
variablesobjectOptional 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.

ParameterTypeDescription
_apiKey *stringYour 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 *stringSubgraph deployment ID