apollographql/apollo-mcp-server

Apollo MCP Server

Apollo MCP Server – A bridge between GraphQL APIs and AI models

What it is – Apollo MCP Server is a Rust‑based service that implements the Model Context Protocol (MCP). It lets large language models (LLMs) or other MCP‑compatible clients treat individual GraphQL operations as tools they can call, enabling the model to fetch data, trigger mutations, or orchestrate workflows on an existing Apollo‑managed GraphQL API.

Why it matters – One of the biggest hurdles for using LLMs in production is giving them safe, structured access to external systems. MCP defines a standard way for a model to discover and invoke “tools”. Apollo MCP Server automatically generates those tools from your GraphQL schema, so you don’t have to hand‑code wrappers for each query or mutation.

Key components

  • MCP server – runs alongside your Apollo GraphQL gateway and exposes a JSON‑over‑HTTP MCP endpoint.
  • Configuration file – describes which GraphQL operations become tools, authentication details, and runtime options.
  • Tool definition generation – reads the GraphQL schema and produces MCP‑compatible tool specifications that an LLM can understand.
  • MCP client compatibility – works with any MCP‑aware client, such as an LLM integrated via the Model Context Protocol or the official MCP Inspector UI.

Getting started

  1. Install – either cargo install --locked apollo-mcp-server (pre‑built from crates.io) or build from source with cargo build.
  2. Configure – create a config file that points to the GraphQL endpoint you want to expose and list the operations to expose as tools.
  3. Run – start the server; it will listen for MCP requests and translate them into GraphQL calls.
  4. Connect – point an MCP‑compatible client (e.g., an LLM prompt that uses the MCP tool list, or the MCP Inspector UI) at the server’s endpoint.

Typical use cases

  • LLM‑driven data retrieval – let a chatbot query your product catalog or user data without hard‑coding API calls.
  • Automated workflows – an LLM can invoke mutations to create orders, update records, or trigger side‑effects as part of a larger reasoning process.
  • Secure tool sandboxing – MCP enforces a clear contract (input schema, output schema) so the model can only call what you expose.

Documentation & help – Full guides are available at the Apollo docs site:

  • Quick‑start tutorial
  • User guide for running the server
  • Config‑file reference
  • Contribution guidelines for extending the project

License – MIT, so you can freely use, modify, and embed the server in commercial or open‑source projects.


Apollo MCP Server is a genuine AI‑adjacent open‑source project that provides the plumbing needed for LLMs to safely interact with GraphQL services via the Model Context Protocol.

Related

  • Project
  • Project
  • Project
  • Project
  • Project