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.
2tools
0msauth
free tier50 calls/day
Authentication
BYO only. The Graph requires an API key from Graph Studio (free 100k queries/month). Pass it as _apiKey on the gateway URL.
Config with credentials
Tools
query_subgraphrequired: subgraph_id, queryRun a GraphQL query against a subgraph by deployment ID.
Parameters
NameTypeDescription
subgraph_idreqstringSubgraph deployment IDqueryreqstringGraphQL query stringvariablesoptobjectOptional variables objectTry it
Response
introspect_schemarequired: subgraph_idFetch a subgraph's GraphQL schema for query construction.
Parameters
NameTypeDescription
subgraph_idreqstringSubgraph deployment IDTry it
Response
Test with curl
The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.
List available tools
bash
curl -X POST https://gateway.pipeworx.io/the-graph/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'Call a tool
bash
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.
TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("query_subgraph", {"subgraph_id":"example","query":"example"});ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("graphql queries against indexed blockchain subgraphs (uniswap, aave, ens, nfts, etc");