The Graph

live BlockchainGraphQL

GraphQL queries against indexed blockchain subgraphs (Uniswap, Aave, ENS, NFTs, etc.). Free 100k queries/mo.

2 tools
0ms auth
free tier 50 calls/day

Tools

query_subgraph required: subgraph_id, query

Run a GraphQL query against a subgraph by deployment ID.

Parameters
Name Type Description
subgraph_id req string Subgraph deployment ID
query req string GraphQL query string
variables opt object Optional variables object
Try it
introspect_schema required: subgraph_id

Fetch a subgraph's GraphQL schema for query construction.

Parameters
Name Type Description
subgraph_id req string Subgraph deployment ID
Try it

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");