MCP Servers / database / Subgraph MCP Server

Subgraph MCP Server

JSON →
stdionone8database

Allows LLMs to interact with Subgraphs available on The Graph Network.

Install
How to run this server

No install command recorded.

server path: subgraph-mcp-server
Tools
What this server exposes
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.
Configuration
Environment & auth
authnone
envYOUR_GATEWAY_API_KEY
envGATEWAY_API_KEY
envMETRICS_PORT
envMETRICS_HOST
Resources
Subgraph MCP Server — MCP Server · libregistry