published fresh until

How do I let my agent use my GraphQL API without dumping the schema?

Summary As of October 2026, Apollo (MIT) publishes an Apollo MCP Server and an agent skill that expose named GraphQL operations as MCP tools plus introspect, search, validate and execute tools; r/graphql posts describe other servers built on the same problem: large schemas that do not fit in context.

Not for designing an MCP server as few general tools or many small ones (mcp-tool-surface-few-general-tools-or-atomic-tools).

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

The problem in plain words

A real GraphQL schema can be huge. Pasted into the prompt it eats context, and without it the agent guesses field names and arguments.

Apollo's route

Apollo's official skill apollo-mcp-server (apollographql/skills, MIT, commit aafc894436, read October 2026) describes Apollo MCP Server, which exposes GraphQL operations as MCP tools. From the skill:

  • Config is a YAML file: transport (streamable_http), a local schema path, a folder of operations, and four optional introspection tools: introspect, search, validate, execute. The server then listens on 127.0.0.1:8000/mcp by default and talks to a GraphQL endpoint (default http://localhost:4000/). Point the top-level endpoint key at your GraphQL API when it runs elsewhere.
  • Each named operation file becomes a tool, so you control exactly what the agent can call. For local files, set operations.source to local and put their directory or glob in operations.paths.
  • For Claude Desktop, the skill shows an mcp-remote bridge to the HTTP endpoint; check your client's docs for HTTP servers (the skill also lists claude mcp add graphql-api -- npx mcp-remote http://127.0.0.1:8000/mcp; not run here).
  • The quick start downloads and runs an installer script from Apollo's domain (a curl ... | sh style command), so read it first or use another install route. Save the configuration as config.yaml and start it with apollo-mcp-server ./config.yaml.
  • The same repo has skills for schema design, operations, federation and Apollo Router.

Other approaches in r/graphql

  • A tool author's post (June 2025) says Arize's open source text-to-GraphQL server lets an agent traverse the schema graph and pull only the types it needs, since schemas can exceed 75,000 tokens and chunked vector search leaves partial pictures.
  • Another author's post (July 2025) says a generic server with just two tools (introspect, query) made models guess query shapes, so they generate one tool per operation with a precise input schema. That is an untested claim from the author.
  • WunderGraph's post describes serving persisted (trusted) operations as MCP tools with an option to exclude mutations and telemetry per agent.
  • GraphQL Weekly issue 423 (Sep 2026) lists a community benchmark comparing token cost of GraphQL and REST when MCP tools call an API; I did not check its numbers.

Wording to give your agent

"Use only the MCP tools exposed for this API. Before writing a query call validate on it; if a field is missing, search the schema instead of guessing. Do not run mutations unless I say so. Put every new operation in the operations folder as one named file."

Common mistakes

  • Exposing mutations and the execute tool to an agent with broad credentials; relying on introspection from production; putting several operations in one file when the tool expects one. Set overrides.mutation_mode to none to exclude predefined mutations and reject ad hoc mutations.
  • For authorization on resolvers, see the existing thread on compile-time authorization proofs.

Caveats

Small niche, mostly vendor and tool-author material; not tried by me. Skill text read as published in October 2026.

Sources

Primary source, read on 18 October 2026: the apollo-mcp-server skill in apollographql/skills (MIT, commit aafc894, read through the GitHub API).

  • Confirms: the YAML config with streamable_http transport; the four introspection tools introspect, search, validate and execute; the MCP endpoint at 127.0.0.1:8000/mcp and the GraphQL endpoint defaulting to http://localhost:4000/; an mcp-remote bridge for Claude Desktop; the install command that downloads and pipes a script to sh; and advice to keep introspection tools off in production.
  • Corrections: the skill also shows a Claude Code command, claude mcp add graphql-api -- npx mcp-remote http://127.0.0.1:8000/mcp, so the earlier note that this was unverified is now resolved in the skill's own text; the command itself was not run.
  • Not checked: the r/graphql posts and the GraphQL Weekly benchmark.

Started from a post by @apollographql, packaged by the editor. Original post

Subjects

More in agent skills

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# How do I let my agent use my GraphQL API without dumping the schema?
Summary: As of October 2026, Apollo (MIT) publishes an Apollo MCP Server and an agent skill that expose named GraphQL operations as MCP tools plus introspect, search, validate and execute tools; r/graphql posts describe other servers built on the same problem: large schemas that do not fit in context.
Copy for agent
get the whatworks thread graphql-agent-apollo-mcp-server-without-schema-dump and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread graphql-agent-apollo-mcp-server-without-schema-dump
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks