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

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.

Market Opportunity
CrypTalk Logo
CrypTalk Price(TALK)
$0,015
$0,015$0,015
%0,00
USD
CrypTalk (TALK) Live Price Chart
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 service@support.mexc.com 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

Bitcoin Has Taken Gold’s Role In Today’s World, Eric Trump Says

Bitcoin Has Taken Gold’s Role In Today’s World, Eric Trump Says

Eric Trump on Tuesday described Bitcoin as a “modern-day gold,” calling it a liquid store of value that can act as a hedge to real estate and other assets. Related Reading: XRP’s Biggest Rally Yet? Analyst Projects $20+ In October 2025 According to reports, the remark came during a TV appearance on CNBC’s Squawk Box, tied to the launch of American Bitcoin, the mining and treasury firm he helped start. Company Holdings And Strategy Based on public filings and company summaries, American Bitcoin has accumulated 2,443 BTC on its balance sheet. That stash has been valued in the low hundreds of millions of dollars at recent spot prices. The firm mixes large-scale mining with the goal of holding Bitcoin as a strategic reserve, which it says will help it grow both production and asset holdings over time. Eric Trump’s comments were direct. He told viewers that institutions are treating Bitcoin more like a store of value than a fringe idea, and he warned firms that resist blockchain adoption. The tone was strong at times, and the line about Bitcoin being a modern equivalent of gold was used to frame American Bitcoin’s role as both miner and holder.   Eric Trump has said: bitcoin is modern-day gold — unusual_whales (@unusual_whales) September 16, 2025 How The Company Went Public American Bitcoin moved toward a public listing via an all-stock merger with Gryphon Digital Mining earlier this year, a deal that kept most of the original shareholders in control and positioned the new entity for a Nasdaq debut. Reports show that mining partner Hut 8 holds a large ownership stake, leaving the Trump family and other backers with a minority share. The listing brought fresh attention and capital to the firm as it began trading under the ticker ABTC. Market watchers say the firm’s public debut highlights two trends: mining companies are trying to grow by both producing and holding Bitcoin, and political ties are bringing more headlines to crypto firms. Some analysts point out that holding large amounts of Bitcoin on the balance sheet exposes a company to price swings, while supporters argue it aligns incentives between miners and investors. Related Reading: Ethereum Bulls Target $8,500 With Big Money Backing The Move – Details Reaction And Possible Risks Based on coverage of the launch, investors have reacted with both enthusiasm and caution. Supporters praise the prospect of a US-based miner that aims to be transparent and aggressive about building a reserve. Critics point to governance questions, possible conflicts tied to high-profile backers, and the usual risks of a volatile asset being held on corporate balance sheets. Eric Trump’s remark that Bitcoin has taken gold’s role in today’s world reflects both his belief in its value and American Bitcoin’s strategy of mining and holding. Whether that view sticks will depend on how investors and institutions respond in the months ahead. Featured image from Meta, chart from TradingView
Share
NewsBTC2025/09/18 06:00
Nasdaq-listed iPower reaches $30 million convertible note financing agreement to launch DAT strategy.

Nasdaq-listed iPower reaches $30 million convertible note financing agreement to launch DAT strategy.

PANews reported on December 23 that, according to Globenewswire, Nasdaq-listed e-commerce and supply chain platform iPower announced it has reached a $30 million
Share
PANews2025/12/23 22:19
DOGE ETF Hype Fades as Whales Sell and Traders Await Decline

DOGE ETF Hype Fades as Whales Sell and Traders Await Decline

The post DOGE ETF Hype Fades as Whales Sell and Traders Await Decline appeared on BitcoinEthereumNews.com. Leading meme coin Dogecoin (DOGE) has struggled to gain momentum despite excitement surrounding the anticipated launch of a US-listed Dogecoin ETF this week. On-chain data reveals a decline in whale participation and a general uptick in coin selloffs across exchanges, hinting at the possibility of a deeper price pullback in the coming days. Sponsored Sponsored DOGE Faces Decline as Whales Hold Back, Traders Sell The market is anticipating the launch of Rex-Osprey’s Dogecoin ETF (DOJE) tomorrow, which is expected to give traditional investors direct exposure to Dogecoin’s price movements.  However, DOGE’s price performance has remained muted ahead of the milestone, signaling a lack of enthusiasm from traders. According to on-chain analytics platform Nansen, whale accumulation has slowed notably over the past week. Large investors, with wallets containing DOGE coins worth more than $1 million, appear unconvinced by the ETF narrative and have reduced their holdings by over 4% in the past week.  For token TA and market updates: Want more token insights like this? Sign up for Editor Harsh Notariya’s Daily Crypto Newsletter here. Dogecoin Whale Activity. Source: Nansen When large holders reduce their accumulation, it signals a bearish shift in market sentiment. This reduced DOGE demand from significant players can lead to decreased buying pressure, potentially resulting in price stagnation or declines in the near term. Sponsored Sponsored Furthermore, DOGE’s exchange reserve has risen steadily in the past week, suggesting that more traders are transferring DOGE to exchanges with the intent to sell. As of this writing, the altcoin’s exchange balance sits at 28 billion DOGE, climbing by 12% in the past seven days. DOGE Balance on Exchanges. Source: Glassnode A rising exchange balance indicates that holders are moving their assets to trading platforms to sell rather than to hold. This influx of coins onto exchanges increases the available supply in…
Share
BitcoinEthereumNews2025/09/18 05:07