
{"id":122487,"date":"2025-12-23T06:17:35","date_gmt":"2025-12-23T06:17:35","guid":{"rendered":"https:\/\/mycryptomania.com\/?p=122487"},"modified":"2025-12-23T06:17:35","modified_gmt":"2025-12-23T06:17:35","slug":"talk-to-15000-subgraphs-setting-up-subgraph-mcp-in-cursor-or-claude-desktop","status":"publish","type":"post","link":"https:\/\/mycryptomania.com\/?p=122487","title":{"rendered":"Talk to 15,000+ Subgraphs: Setting Up Subgraph MCP in Cursor or Claude Desktop"},"content":{"rendered":"<p>If you\u2019ve ever wanted to <em>ask blockchain data questions in plain English <\/em>without worrying about GraphQL syntax, query limits, or which subgraph to use, know Subgraph MCP is the missing\u00a0piece.<\/p>\n<p>In this guide, you\u2019ll learn how\u00a0to:<\/p>\n<p>Get an API key from The Graph MarketplaceConfigure Subgraph MCP in <strong>Cursor<\/strong> or <strong>Claude\u00a0Desktop<\/strong>Understand how this unlocks ~15,000 subgraphs for natural\u2011language querying<\/p>\n<p>No custom queries. No rate\u2011limit anxiety. Just ask questions.<\/p>\n<h3>What is Subgraph\u00a0MCP?<\/h3>\n<p><a href=\"https:\/\/thegraph.com\/docs\/it\/ai-suite\/subgraph-mcp\/introduction\/\">Subgraph MCP<\/a> (Model Context Protocol) lets large language models (LLMs) <em>reason about and query subgraphs on your\u00a0behalf<\/em>.<\/p>\n<p>Instead of writing GraphQL yourself, you:<\/p>\n<p>Ask a question in natural\u00a0languageThe LLM selects the best subgraph or you can ask it to use a subgraph based on deployment IDIt generates and runs the query. It reads the schema to know what content each subgraph\u00a0has.You get structured results\u00a0back<\/p>\n<p>All powered by The Graph\u2019s decentralized data\u00a0layer.<\/p>\n<h3>Why Subgraph MCP\u00a0Matters<\/h3>\n<p>Without MCP:<\/p>\n<p>You must know <strong>which subgraph<\/strong> to use. This requires a lot of filtering and searching.You must write <strong>correct GraphQL\u00a0query.<\/strong>You must manage <strong>API limits and\u00a0errors.<\/strong><\/p>\n<p>With Subgraph\u00a0MCP:<\/p>\n<p>One API key gives access to <strong>~15,000 subgraphs<\/strong>The LLM chooses the right schema automaticallyQueries are handled safely and efficientlyYou focus on <em>questions<\/em>, not infrastructure<\/p>\n<p>This is what makes \u201cchatting with blockchain data\u201d actually practical.<\/p>\n<h3>Step 1: Get an API Key from The Graph Marketplace<\/h3>\n<p>Subgraph MCP uses an API\u00a0key.<\/p>\n<h3>1. Create an API Key with The\u00a0Graph<\/h3>\n<p><a href=\"https:\/\/medium.com\/media\/376d9fbba1e2db2c1dafd44cc9b99c05\/href\">https:\/\/medium.com\/media\/376d9fbba1e2db2c1dafd44cc9b99c05\/href<\/a><\/p>\n<p>\u26a0\ufe0f Treat this like a password. Anyone with this token can query on your\u00a0behalf.<\/p>\n<h3>Step 2: Download\u00a0Cursor<\/h3>\n<p><strong>Graph Docs<\/strong><\/p>\n<p><a href=\"https:\/\/thegraph.com\/docs\/en\/ai-suite\/subgraph-mcp\/cursor\/\">https:\/\/thegraph.com\/docs\/en\/ai-suite\/subgraph-mcp\/cursor\/<\/a><\/p>\n<p><strong>Cursor Quickstart docs<\/strong><\/p>\n<p><a href=\"https:\/\/cursor.com\/docs\/get-started\/quickstart\">https:\/\/cursor.com\/docs\/get-started\/quickstart<\/a><\/p>\n<h3>Step 3. Configure Subgraph MCP in\u00a0Cursor<\/h3>\n<p>Head to settings:<\/p>\n<p>Click on Tools and\u00a0MCPs:<\/p>\n<h4>Cursor supports MCP via a simple JSON\u00a0config.<\/h4>\n<p>Paste the following JSON and replace Bearer GATEWAY_API_Key<\/p>\n<p>*use your API Key from\u00a0above<\/p>\n<p>{<br \/>  &#8220;mcpServers&#8221;: {<br \/>    &#8220;subgraph&#8221;: {<br \/>      &#8220;command&#8221;: &#8220;npx&#8221;,<br \/>      &#8220;args&#8221;: [&#8220;mcp-remote&#8221;, &#8220;&#8211;header&#8221;, &#8220;Authorization:${AUTH_HEADER}&#8221;, &#8220;https:\/\/subgraphs.mcp.thegraph.com\/sse&#8221;],<br \/>      &#8220;env&#8221;: {<br \/>        &#8220;AUTH_HEADER&#8221;: &#8220;Bearer GATEWAY_API_KEY&#8221;<br \/>      }<br \/>    }<br \/>  }<br \/>}<\/p>\n<h3>Step 4. Save and Restart\u00a0Cursor<\/h3>\n<p>Once enabled, Cursor can\u00a0now:<\/p>\n<p>Discover subgraph\u00a0schemasGenerate queries automaticallyExecute them\u00a0securely<\/p>\n<h3>Configure Subgraph MCP in Claude\u00a0Desktop<\/h3>\n<p>Claude Desktop uses the same MCP concept with a local config\u00a0file.<\/p>\n<p><strong>Graph Docs for\u00a0Claude<\/strong><\/p>\n<p><a href=\"https:\/\/thegraph.com\/docs\/en\/ai-suite\/subgraph-mcp\/claude\/\">https:\/\/thegraph.com\/docs\/en\/ai-suite\/subgraph-mcp\/claude\/<\/a><\/p>\n<h3>1. Install Claude\u00a0Desktop<\/h3>\n<p><a href=\"https:\/\/medium.com\/media\/05df3b28f86791fefa297db1aeb48254\/href\">https:\/\/medium.com\/media\/05df3b28f86791fefa297db1aeb48254\/href<\/a><\/p>\n<h3>2. Add the Subgraph MCP\u00a0Server<\/h3>\n<p>Paste the following JSON and replace Bearer GATEWAY_API_Key<\/p>\n<p>*use your API Key from\u00a0above<\/p>\n<p>{<br \/>  &#8220;mcpServers&#8221;: {<br \/>    &#8220;subgraph&#8221;: {<br \/>      &#8220;command&#8221;: &#8220;npx&#8221;,<br \/>      &#8220;args&#8221;: [&#8220;mcp-remote&#8221;, &#8220;&#8211;header&#8221;, &#8220;Authorization:${AUTH_HEADER}&#8221;, &#8220;https:\/\/subgraphs.mcp.thegraph.com\/sse&#8221;],<br \/>      &#8220;env&#8221;: {<br \/>        &#8220;AUTH_HEADER&#8221;: &#8220;Bearer GATEWAY_API_KEY&#8221;<br \/>      }<br \/>    }<br \/>  }<br \/>}<a href=\"https:\/\/medium.com\/media\/5d8398ebce74de2ba11bd7f9c4c976b5\/href\">https:\/\/medium.com\/media\/5d8398ebce74de2ba11bd7f9c4c976b5\/href<\/a><\/p>\n<h3>3. Restart Claude\u00a0Desktop<\/h3>\n<p>Claude will now be able\u00a0to:<\/p>\n<p>Inspect thousands of subgraph\u00a0schemasChoose the correct one automaticallyRun queries safely on your\u00a0behalf<a href=\"https:\/\/medium.com\/media\/aa414b5222748ce81b82969ed63e520c\/href\">https:\/\/medium.com\/media\/aa414b5222748ce81b82969ed63e520c\/href<\/a><\/p>\n<h3>What You Can Ask Once It\u2019s Set\u00a0Up<\/h3>\n<p>After setup, you can ask questions like:<\/p>\n<p>\u201cWhat was Uniswap v3 volume on Base yesterday?\u201d\u201cShow me the top token holders for this\u00a0ERC\u201120.\u201d\u201cHow many users interacted with this contract last\u00a0week?\u201d\u201cWhat\u2019s the TVL change for this protocol over 30\u00a0days?\u201d<\/p>\n<p>You don\u2019t need\u00a0to:<\/p>\n<p>Know the subgraph\u00a0nameKnow the deployment ID (it does help to point AI to deployment ID).Write queries<\/p>\n<p>The LLM handles all of\u00a0it.<\/p>\n<h3>Final Thoughts<\/h3>\n<p>Subgraph MCP turns The Graph into a conversational data\u00a0layer.<\/p>\n<p>With a single question:<\/p>\n<p>You unlock ~15,000 subgraphsYou eliminate boilerplate queriesYou let LLMs do what they\u2019re good at: reasoning<\/p>\n<p>If you\u2019re building dashboards, bots, research tools, or just exploring on\u2011chain data this is the fastest path from <em>question<\/em> to\u00a0<em>answer<\/em>.<\/p>\n<p><a href=\"https:\/\/medium.com\/coinmonks\/talk-to-15-000-subgraphs-setting-up-subgraph-mcp-in-cursor-or-claude-desktop-b8b83d1feedd\">Talk to 15,000+ Subgraphs: Setting Up Subgraph MCP in Cursor or Claude Desktop<\/a> was originally published in <a href=\"https:\/\/medium.com\/coinmonks\">Coinmonks<\/a> on Medium, where people are continuing the conversation by highlighting and responding to this story.<\/p>","protected":false},"excerpt":{"rendered":"<p>If you\u2019ve 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\u00a0piece. In this guide, you\u2019ll learn how\u00a0to: Get an API key from The Graph MarketplaceConfigure Subgraph MCP in Cursor or Claude\u00a0DesktopUnderstand how this unlocks ~15,000 subgraphs [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":122488,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-122487","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-interesting"],"_links":{"self":[{"href":"https:\/\/mycryptomania.com\/index.php?rest_route=\/wp\/v2\/posts\/122487"}],"collection":[{"href":"https:\/\/mycryptomania.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mycryptomania.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/mycryptomania.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=122487"}],"version-history":[{"count":0,"href":"https:\/\/mycryptomania.com\/index.php?rest_route=\/wp\/v2\/posts\/122487\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mycryptomania.com\/index.php?rest_route=\/wp\/v2\/media\/122488"}],"wp:attachment":[{"href":"https:\/\/mycryptomania.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=122487"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mycryptomania.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=122487"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mycryptomania.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=122487"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}