Subgraph MCP Server

Discover and query 14,700+ classified subgraphs on The Graph Network

Local serverstdioPython

What is the Subgraph MCP server?

Most developer tooling work still happens through a UI a human drives. Subgraph MCP server moves it into the conversation instead. Discover and query 14,700+ classified subgraphs on The Graph Network.

The short version

Agent-friendly semantic classification of all subgraphs on The Graph Network.

The tools it exposes

The server publishes 3 tools. What each one is for:

  • openapi.yaml — checked into the repo, single source of truth
  • Domains — Explore subgraphs by use case — each file lists the top 25 subgraphs ranked by reliability score
  • Networks — Explore subgraphs by blockchain — each file lists the top 25 subgraphs on that chain

What it needs from you

Configuration is passed through the environment: GATEWAY_API_KEY. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Getting it running

The server ships on npm as subgraph-registry-mcp, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

How it compares

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Subgraph's toolset — openapi.yaml, Domains, Networks — is a fair guide to whether it matches your workflow. It is maintained by PaulieB14; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
openapi.yamlchecked into the repo, single source of truth
DomainsExplore subgraphs by use case — each file lists the top 25 subgraphs ranked by reliability score.
NetworksExplore subgraphs by blockchain — each file lists the top 25 subgraphs on that chain.

How to install the Subgraph MCP server

{
  "mcpServers": {
    "subgraph-registry": {
      "command": "npx",
      "args": ["-y", "subgraph-registry-mcp"],
      "env": {
        "GATEWAY_API_KEY": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
GATEWAY_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • Use Subgraph to openapi.yaml.
  • Use Subgraph to Domains.
  • Use Subgraph to Networks.

Frequently asked questions

It connects Subgraph to MCP-compatible AI assistants such as Claude and Cursor, exposing 3 tools (openapi.yaml, Domains, Networks) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Subgraph directly.