Subgraph MCP Server
JSON →Allows LLMs to interact with Subgraphs available on The Graph Network.
Tools · 9
- search_subgraphs_by_keyword Search for subgraphs by keyword in their display names. Ordered by signal. Returns top 10 results if total results ≤ 100, or square root of total otherwise.
- get_deployment_30day_query_counts Get the aggregate query count over the last 30 days for multiple subgraph deployments (using their IPFS hashes), sorted by query count.
- get_schema_by_deployment_id Get the GraphQL schema for a specific subgraph deployment using its _deployment ID_ (e.g., `0x...`).
- get_schema_by_subgraph_id Get the GraphQL schema for the _current_ deployment associated with a _subgraph ID_ (e.g., `5zvR82...`).
- get_schema_by_ipfs_hash Get the GraphQL schema for a specific subgraph deployment using its manifest's _IPFS hash_ (e.g., `Qm...`).
- execute_query_by_deployment_id Execute a GraphQL query against a specific, immutable subgraph deployment using its _deployment ID_ (e.g., `0x...`).
- execute_query_by_subgraph_id Execute a GraphQL query against the _latest_ deployment associated with a _subgraph ID_ (e.g., `5zvR82...`).
- execute_query_by_ipfs_hash Execute a GraphQL query against a specific, immutable subgraph deployment using its _IPFS hash_ (e.g., `Qm...`).
- get_top_subgraph_deployments Get the top 3 subgraph deployments indexing a given contract address on a specific chain, ordered by query fees.
Environment variables
YOUR_GATEWAY_API_KEYGATEWAY_API_KEYMETRICS_PORTMETRICS_HOST
Links
★ 8 GitHub stars