@@ -10,12 +10,16 @@ The Subgraph Model Context Protocol (MCP) server enables Cursor to interact dire
1010- A Gateway API key from [ Subgraph Studio] ( https://thegraph.com/studio/ )
1111- [ ` npx ` ] ( https://docs.npmjs.com/downloading-and-installing-node-js-and-npm ) or [ ` bunx ` ] ( https://bun.sh/ ) installed and available in your path
1212
13- ## Configuration
13+ ## Configuration Steps
14+
15+ ### 1. Open Configuration File
1416
1517Create or edit your ` ~/.cursor/mcp.json ` file.
1618
1719> ** Cursor Settings** > ** MCP** > ** Add new global MCP Server**
1820
21+ ### 2. Add Configuration
22+
1923``` json label="mcp.json"
2024{
2125 "mcpServers" : {
@@ -32,6 +36,8 @@ Create or edit your `~/.cursor/mcp.json` file.
3236}
3337```
3438
39+ ### 3. Add Your API Key
40+
3541Replace ` GATEWAY_API_KEY ` with your API key from Subgraph Studio.
3642
3743## Using Both Token API MCP and Subgraph MCP Together
@@ -43,7 +49,7 @@ You can configure Cursor to use both the Token API MCP and Subgraph MCP simultan
4349 "mcpServers" : {
4450 "token-api" : {
4551 "command" : " npx" ,
46- "args" : [" @pinax/mcp" , " --sse-url" , " https://token-api.thegraph.com/sse" ],
52+ "args" : [" @pinax/mcp" , " --sse-url" , " https://token-api.mcp. thegraph.com/sse" ],
4753 "env" : {
4854 "ACCESS_TOKEN" : " ACCESS_TOKEN"
4955 }
@@ -64,15 +70,6 @@ You can configure Cursor to use both the Token API MCP and Subgraph MCP simultan
6470- For Token API access tokens, visit [ The Graph Market] ( https://thegraph.com/explorer )
6571- For Subgraph Gateway API keys, visit [ Subgraph Studio] ( https://thegraph.com/studio/ )
6672
67- ## Using The Graph Resource in Cursor
68-
69- After configuring Cursor:
70-
71- 1 . Restart Cursor
72- 2 . Start a new conversation
73- 3 . Enable the Subgraph MCP from the MCP settings menu
74- 4 . Add "The Graph" resource to your chat context
75-
7673## Available Subgraph Tools and Usage
7774
7875The Subgraph MCP provides several tools for interacting with Subgraphs:
0 commit comments