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 SubgraphIf 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

Talk to 15,000+ Subgraphs: Setting Up Subgraph MCP in Cursor or Claude Desktop

2025/12/23 14:17
4 min read
For feedback or concerns regarding this content, please contact us at [email protected]

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:

  • Get an API key from The Graph Marketplace
  • Configure Subgraph MCP in Cursor or Claude Desktop
  • Understand how this unlocks ~15,000 subgraphs for natural‑language querying

No custom queries. No rate‑limit anxiety. Just ask questions.

What is Subgraph MCP?

Subgraph MCP (Model Context Protocol) lets large language models (LLMs) reason about and query subgraphs on your behalf.

Instead of writing GraphQL yourself, you:

  1. Ask a question in natural language
  2. The LLM selects the best subgraph or you can ask it to use a subgraph based on deployment ID
  3. It generates and runs the query. It reads the schema to know what content each subgraph has.
  4. You get structured results back

All powered by The Graph’s decentralized data layer.

Why Subgraph MCP Matters

Without MCP:

  • You must know which subgraph to use. This requires a lot of filtering and searching.
  • You must write correct GraphQL query.
  • You must manage API limits and errors.

With Subgraph MCP:

  • One API key gives access to ~15,000 subgraphs
  • The LLM chooses the right schema automatically
  • Queries are handled safely and efficiently
  • You focus on questions, not infrastructure

This is what makes “chatting with blockchain data” actually practical.

Step 1: Get an API Key from The Graph Marketplace

Subgraph MCP uses an API key.

1. Create an API Key with The Graph

https://medium.com/media/376d9fbba1e2db2c1dafd44cc9b99c05/href

⚠️ Treat this like a password. Anyone with this token can query on your behalf.

Step 2: Download Cursor

Graph Docs

https://thegraph.com/docs/en/ai-suite/subgraph-mcp/cursor/

Cursor Quickstart docs

https://cursor.com/docs/get-started/quickstart

Step 3. Configure Subgraph MCP in Cursor

Head to settings:

Click on Tools and MCPs:

Cursor supports MCP via a simple JSON config.

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"
}
}
}
}

Step 4. Save and Restart Cursor

Once enabled, Cursor can now:

  • Discover subgraph schemas
  • Generate queries automatically
  • Execute them securely

Configure Subgraph MCP in Claude Desktop

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/

1. Install Claude Desktop

https://medium.com/media/05df3b28f86791fefa297db1aeb48254/href

2. Add the Subgraph MCP Server

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

3. Restart Claude Desktop

Claude will now be able to:

  • Inspect thousands of subgraph schemas
  • Choose the correct one automatically
  • Run queries safely on your behalf
https://medium.com/media/aa414b5222748ce81b82969ed63e520c/href

What You Can Ask Once It’s Set Up

After setup, you can ask questions like:

  • “What was Uniswap v3 volume on Base yesterday?”
  • “Show me the top token holders for this ERC‑20.”
  • “How many users interacted with this contract last week?”
  • “What’s the TVL change for this protocol over 30 days?”

You don’t need to:

  • Know the subgraph name
  • Know the deployment ID (it does help to point AI to deployment ID).
  • Write queries

The LLM handles all of it.

Final Thoughts

Subgraph MCP turns The Graph into a conversational data layer.

With a single question:

  • You unlock ~15,000 subgraphs
  • You eliminate boilerplate queries
  • You let LLMs do what they’re good at: reasoning

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.

Disclaimer: The articles reposted on this site are sourced from public platforms and are provided for informational purposes only. They do not necessarily reflect the views of MEXC. All rights remain with the original authors. If you believe any content infringes on third-party rights, please contact [email protected] for removal. MEXC makes no guarantees regarding the accuracy, completeness, or timeliness of the content and is not responsible for any actions taken based on the information provided. The content does not constitute financial, legal, or other professional advice, nor should it be considered a recommendation or endorsement by MEXC.

You May Also Like

IP Hits $11.75, HYPE Climbs to $55, BlockDAG Surpasses Both with $407M Presale Surge!

IP Hits $11.75, HYPE Climbs to $55, BlockDAG Surpasses Both with $407M Presale Surge!

The post IP Hits $11.75, HYPE Climbs to $55, BlockDAG Surpasses Both with $407M Presale Surge! appeared on BitcoinEthereumNews.com. Crypto News 17 September 2025 | 18:00 Discover why BlockDAG’s upcoming Awakening Testnet launch makes it the best crypto to buy today as Story (IP) price jumps to $11.75 and Hyperliquid hits new highs. Recent crypto market numbers show strength but also some limits. The Story (IP) price jump has been sharp, fueled by big buybacks and speculation, yet critics point out that revenue still lags far behind its valuation. The Hyperliquid (HYPE) price looks solid around the mid-$50s after a new all-time high, but questions remain about sustainability once the hype around USDH proposals cools down. So the obvious question is: why chase coins that are either stretched thin or at risk of retracing when you could back a network that’s already proving itself on the ground? That’s where BlockDAG comes in. While other chains are stuck dealing with validator congestion or outages, BlockDAG’s upcoming Awakening Testnet will be stress-testing its EVM-compatible smart chain with real miners before listing. For anyone looking for the best crypto coin to buy, the choice between waiting on fixes or joining live progress feels like an easy one. BlockDAG: Smart Chain Running Before Launch Ethereum continues to wrestle with gas congestion, and Solana is still known for network freezes, yet BlockDAG is already showing a different picture. Its upcoming Awakening Testnet, set to launch on September 25, isn’t just a demo; it’s a live rollout where the chain’s base protocols are being stress-tested with miners connected globally. EVM compatibility is active, account abstraction is built in, and tools like updated vesting contracts and Stratum integration are already functional. Instead of waiting for fixes like other networks, BlockDAG is proving its infrastructure in real time. What makes this even more important is that the technology is operational before the coin even hits exchanges. That…
Share
BitcoinEthereumNews2025/09/18 00:32
StakeStone STO Surges 128% in 24 Hours: What $955M Volume Tells Us

StakeStone STO Surges 128% in 24 Hours: What $955M Volume Tells Us

StakeStone's STO token recorded a staggering 128% price increase in 24 hours, accompanied by $955.8 million in trading volume—nearly seven times its $141 million
Share
Blockchainmagazine2026/04/02 18:06
Q2 Market Insights: Bitcoin regains dominance in risk-averse environment, ETFs remain critical to market structure

Q2 Market Insights: Bitcoin regains dominance in risk-averse environment, ETFs remain critical to market structure

The market will show a downward trend in the short term, and then rebound and set new highs in the second half of the year.
Share
PANews2025/04/28 19:40

$30,000 in PRL + 15,000 USDT

$30,000 in PRL + 15,000 USDT$30,000 in PRL + 15,000 USDT

Deposit & trade PRL to boost your rewards!