The Graph
liveCryptoDeveloperGraphQL queries against indexed blockchain subgraphs (Uniswap, Aave, ENS, NFTs, etc.). Requires your own The Graph API key (_apiKey) — free 100k queries/mo after Graph Studio signup.
BYO only. The Graph requires an API key from Graph Studio (free 100k queries/month). Pass it as _apiKey on the gateway URL.
Tools
query_subgraphrequired: subgraph_id, queryRun 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`
subgraph_idreqstringSubgraph deployment IDqueryreqstringGraphQL query stringvariablesoptobjectOptional variables objectTry it
introspect_schemarequired: subgraph_idFetch 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 _
subgraph_idreqstringSubgraph deployment IDTry it
Test with curl
The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.
curl -X POST https://gateway.pipeworx.io/the-graph/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'curl -X POST https://gateway.pipeworx.io/the-graph/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"query_subgraph","arguments":{"subgraph_id": "example", "query": "hello"}}}'Use with the SDK
Install @pipeworx/sdk to call tools from any TypeScript/Node project.
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("query_subgraph", {"subgraph_id":"example","query":"example"});// Or ask in plain English:
const answer = await px.ask("graphql queries against indexed blockchain subgraphs (uniswap, aave, ens, nfts, etc");