If you’ve ever wanted to ask blockchain data questions in plain English without worrying about GraphQL syntax, query limits, or which subgraph to use, know Subgraph MCP is the missing piece.
In this guide, you’ll learn how to:
No custom queries. No rate‑limit anxiety. Just ask questions.
Subgraph MCP (Model Context Protocol) lets large language models (LLMs) reason about and query subgraphs on your behalf.
Instead of writing GraphQL yourself, you:
All powered by The Graph’s decentralized data layer.
Without MCP:
With Subgraph MCP:
This is what makes “chatting with blockchain data” actually practical.
Subgraph MCP uses an API key.
⚠️ Treat this like a password. Anyone with this token can query on your behalf.
Graph Docs
https://thegraph.com/docs/en/ai-suite/subgraph-mcp/cursor/
Cursor Quickstart docs
https://cursor.com/docs/get-started/quickstart
Head to settings:
Click on Tools and MCPs:
Paste the following JSON and replace Bearer GATEWAY_API_Key
*use your API Key from above
{
"mcpServers": {
"subgraph": {
"command": "npx",
"args": ["mcp-remote", "--header", "Authorization:${AUTH_HEADER}", "https://subgraphs.mcp.thegraph.com/sse"],
"env": {
"AUTH_HEADER": "Bearer GATEWAY_API_KEY"
}
}
}
}
Once enabled, Cursor can now:
Claude Desktop uses the same MCP concept with a local config file.
Graph Docs for Claude
https://thegraph.com/docs/en/ai-suite/subgraph-mcp/claude/
Paste the following JSON and replace Bearer GATEWAY_API_Key
*use your API Key from above
{
"mcpServers": {
"subgraph": {
"command": "npx",
"args": ["mcp-remote", "--header", "Authorization:${AUTH_HEADER}", "https://subgraphs.mcp.thegraph.com/sse"],
"env": {
"AUTH_HEADER": "Bearer GATEWAY_API_KEY"
}
}
}
}https://medium.com/media/5d8398ebce74de2ba11bd7f9c4c976b5/href
Claude will now be able to:
After setup, you can ask questions like:
You don’t need to:
The LLM handles all of it.
Subgraph MCP turns The Graph into a conversational data layer.
With a single question:
If you’re building dashboards, bots, research tools, or just exploring on‑chain data this is the fastest path from question to answer.
Talk to 15,000+ Subgraphs: Setting Up Subgraph MCP in Cursor or Claude Desktop was originally published in Coinmonks on Medium, where people are continuing the conversation by highlighting and responding to this story.


