Skip to content

Menu

Apollo GraphQL MCP Server logo

Apollo GraphQL MCP Server

Published

At a glance

Watch out for
Predefined operations are not validated against the schema at startup, so a broken operation only fails when the upstream API rejects it.

Apollo MCP Server is Apollo GraphQL's own server for exposing GraphQL operations to AI models as MCP tools. It is written in Rust, MIT licensed, and sits in front of a graph you already run, whether that graph is managed in GraphOS or not.

The idea is simple. You decide which GraphQL operations an agent may call, and each one becomes a tool with a typed input schema. If you want the model to explore on its own, you can also switch on introspection tools that let it read the schema, check an operation and run ad hoc queries.

It runs as a long-lived process. The Docker image serves Streamable HTTP on port 8000, and the quickstart connects desktop clients to http://127.0.0.1:8000/mcp through mcp-remote. You can run it as a standalone binary, from the ghcr.io container image, or alongside a local router with rover dev.

How it connects

Your AI app

An assistant or agent that supports MCP

Apollo GraphQL MCP Server

Runs as

  • npx (Node.js)
  • Docker
  • Remote (HTTP)

Gives the agent

  • Operations as tools
  • Schema introspection
  • Operation checking
  • Ad hoc execution
  • Explorer links
  • Live tool updates

Apollo GraphQL

The data or system the tools act on

Your AI app talks to Apollo GraphQL MCP Server over the Model Context Protocol, and the server carries out the work. Built from the setup and capability sections on this page.

What it can do

Operations as tools
Each GraphQL operation you supply, from .graphql files, a persisted query manifest or a GraphOS operation collection, becomes its own MCP tool.
Schema introspection
The introspect tool looks up schema types by name and depth, and search finds type information by terms.
Operation checking
The validate tool checks an operation against the schema without executing it, which is handy before saving a new tool.
Ad hoc execution
The execute tool runs an arbitrary operation against the GraphQL endpoint, with mutation_mode controlling which operation types are allowed.
Explorer links
The explorer tool returns a URL that opens an operation in Apollo Explorer; it is enabled with overrides.enable_explorer and needs a GraphOS graph reference.
Live tool updates
Tools loaded from GraphOS collections or uplink persisted queries refresh as they change, typically within about 60 seconds.

Setting it up

The quickest documented path uses Rover: run rover init --mcp to scaffold a project, then start the graph and server together with rover dev --supergraph-config supergraph.yaml --mcp .apollo/mcp.local.yaml (Rover v0.37 or later). For a standalone install, the docs give curl -sSL https://mcp.apollo.dev/download/nix/latest | sh, then ./apollo-mcp-server followed by the path to your YAML config; cargo install --locked apollo-mcp-server also works if you have Rust. With Docker, use ghcr.io/apollographql/apollo-mcp-server, mount your file at /config.yaml and pass /config.yaml as the last argument. Without a config file you must set APOLLO_KEY and APOLLO_GRAPH_REF; APOLLO_MCP_TRANSPORT__PORT changes the default port of 8000. To connect Claude Code, run claude mcp add apollo-mcp npx mcp-remote http://127.0.0.1:8000/mcp. In Cursor or Windsurf, add a server named Apollo MCP with command npx and arguments ["mcp-remote", "http://127.0.0.1:8000/mcp"]; Claude Desktop takes the same command and args in claude_desktop_config.json. You can check the tool list first with npx @modelcontextprotocol/inspector http://127.0.0.1:8000/mcp --transport http.

Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)

Where it helps

  • Give a support agent a fixed set of read-only queries, such as order lookups, without handing it the whole schema.
  • Let a coding assistant introspect and validate queries against your graph while you write client code.
  • Publish new agent tools by saving operations to the Default MCP Tools collection in GraphOS instead of redeploying.
  • Prototype an agent against a local supergraph with rover dev before running the server in a container.

Limitations and things to watch

  • Predefined operations are not validated against the schema at startup, so a broken operation only fails when the upstream API rejects it.
  • The execute tool does not check fields, arguments or variable types itself, so you need the GraphQL API's own authorization and demand controls in place.
  • Operation collections with more than 100 operations still load, but polling for changes is turned off.
  • Changes from hot-reloaded operation and schema sources go live with no approval step, so write access to those sources needs to be restricted.
  • Turning on enable_output_schema can cause validating clients to reject some valid responses, such as root data: null errors.

Sources

Written from the project's own documentation, checked November 2026.

How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…