You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace `/path/to/your/subgraph-mcp/target/release/subgraph-mcp` with the actual path to the compiled binary.
62
111
63
112
## Using The Graph Resource in Claude
64
113
@@ -73,7 +122,7 @@ After configuring Claude Desktop:
73
122
74
123
## Troubleshooting
75
124
76
-
To enable logs for the MCP, add the `--verbose true` option to your args array.
125
+
To enable logs for the MCP when using the npx option, add the `--verbose true` option to your args array.
77
126
78
127
## Available Subgraph Tools and Usage
79
128
@@ -87,13 +136,20 @@ The Subgraph MCP provides several tools for interacting with Subgraphs:
87
136
88
137
### Query Execution Tools
89
138
90
-
-**Execute query by deployment ID**: Run GraphQL queries against specific, immutable deployments
139
+
-**Execute query by deployment ID/IPFS hash**: Run GraphQL queries against specific, immutable deployments
91
140
-**Execute query by Subgraph ID**: Run GraphQL queries against the latest version of a Subgraph
92
141
93
142
### Discovery Tools
94
143
95
-
-**Get top Subgraph deployments for a given keyword**: Find the top Subgraph deployments by query volume for a given keyword
96
-
-**Get top Subgraph deployments for a contract**: Find the top 3 Subgraph deployments indexing a specific contract on a particular chain
144
+
-**Search subgraphs by keyword**: Find subgraphs by keyword in their display names, ordered by signal
145
+
-**Get deployment 30-day query counts**: Get aggregate query count over the last 30 days for multiple subgraph deployments
146
+
-**Get top Subgraph deployments for a contract**: Find the top 3 Subgraph deployments indexing a specific contract on a particular chain, ordered by query fees
147
+
148
+
## Key Identifier Types
149
+
150
+
-**Subgraph ID** (e.g., `5zvR82...`): Logical identifier for a subgraph. Use `execute_query_by_subgraph_id` or `get_schema_by_subgraph_id`.
151
+
-**Deployment ID** (e.g., `0x4d7c...`): Identifier for a specific, immutable deployment. Use `execute_query_by_deployment_id` or `get_schema_by_deployment_id`.
152
+
-**IPFS Hash** (e.g., `QmTZ8e...`): Identifier for the manifest of a specific, immutable deployment. Use `execute_query_by_deployment_id` (the gateway treats it like a deployment ID for querying) or `get_schema_by_ipfs_hash`.
97
153
98
154
## Natural Language Queries
99
155
@@ -118,3 +174,7 @@ Which tokens have the highest market cap in this Subgraph?
118
174
```
119
175
Show me the most recent 5 swaps for the USDC/ETH pair
120
176
```
177
+
178
+
```
179
+
Find the top subgraphs for contract 0x1f98431c8ad98523631ae4a59f267346ea31f984 on arbitrum-one
0 commit comments