MCPcopy Index your code
hub / github.com/apollographql/apollo-mcp-server

github.com/apollographql/apollo-mcp-server @v1.15.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.15.0 ↗ · + Follow
1,459 symbols 4,362 edges 116 files 129 documented · 9%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Apollo Client

version ci workflow status release binaries workflow status release container workflow status license codecov

Apollo MCP Server

Apollo MCP Server is a Model Context Protocol server that exposes GraphQL operations as MCP tools. It provides a standard way for AI models to access and orchestrate your APIs running with Apollo.

Documentation

See the documentation for full details. This README shows the basics of getting this MCP server running. More details are available on the documentation site.

Installation

You can either build this server from source, if you have Rust installed on your workstation, or you can follow the installation guide. To build from source, run cargo build from the root of this repository and the server will be built in the target/debug directory.

Getting started

Follow the quickstart tutorial to get started with this server.

Usage

Full usage of Apollo MCP Server is documented on the user guide. There are a few items that are necessary for this server to function. Specifically, the following things must be configured:

  1. A graph for the MCP server to sit in front of.
  2. Definitions for the GraphQL operations that should be exposed as MCP tools.
  3. A configuration file describing how the MCP server should run.
  4. A connection to an MCP client, such as an LLM or MCP inspector.

These are all described on the user guide. Specific configuration options for the configuration file are documented in the config file reference.

Contributions

Checkout the contributor guidelines for more information.

Licensing

This project is licensed under the MIT License. See the LICENSE file for the full license text.

Security

Refer to our security policy.

[!IMPORTANT]
Do not open up a GitHub issue if a found bug is a security vulnerability, and instead to refer to our security policy.

Extension points exported contracts — how you extend this code

Executable (Interface)
Able to be executed as a GraphQL operation [4 implementers]
crates/apollo-mcp-server/src/graphql.rs
SchemaExt (Interface)
Extension trait to allow traversing a schema [1 implementers]
crates/apollo-schema-index/src/traverse.rs
WithMut (Interface)
(no doc) [1 implementers]
crates/apollo-mcp-rhai/src/shared_mut.rs
KeyResolver (Interface)
Resolves a signing key for a `(server, key_id)` pair, returning it together with the issuer that server advertises in di [2 …
crates/apollo-mcp-server/src/auth/valid_token.rs
MinifyExt (Interface)
(no doc) [1 implementers]
crates/apollo-mcp-server/src/introspection/minify.rs

Core symbols most depended-on inside this repo

to_string
called by 573
crates/apollo-mcp-rhai/src/types/promise.rs
iter
called by 144
crates/apollo-mcp-registry/src/uplink.rs
as_str
called by 129
crates/apollo-mcp-server/src/auth.rs
parse
called by 119
crates/apollo-mcp-rhai/src/functions/json.rs
as_ref
called by 104
crates/apollo-mcp-server/src/operations/operation.rs
get
called by 94
crates/apollo-mcp-server/src/server/states/telemetry.rs
from_str
called by 80
crates/apollo-mcp-server/src/runtime/logging/parsers.rs
get
called by 66
crates/apollo-mcp-server/src/custom_scalar_map.rs

Shape

Function 984
Method 279
Class 139
Enum 52
Interface 5

Languages

Rust100%

Modules by API surface

crates/apollo-mcp-server/src/server/states/running.rs111 symbols
crates/apollo-mcp-server/src/auth.rs85 symbols
crates/apollo-mcp-server/src/operations/operation.rs78 symbols
crates/apollo-mcp-server/src/env_expansion.rs63 symbols
crates/apollo-mcp-server/src/auth/valid_token.rs47 symbols
crates/apollo-mcp-server/src/schema_tree_shake.rs41 symbols
crates/apollo-mcp-server/src/runtime/telemetry.rs35 symbols
crates/apollo-mcp-server/src/cors.rs35 symbols
crates/apollo-schema-index/src/path.rs34 symbols
crates/apollo-mcp-server/src/server/states.rs34 symbols
crates/apollo-mcp-rhai/src/engine.rs34 symbols
crates/apollo-mcp-registry/src/uplink.rs33 symbols

For agents

$ claude mcp add apollo-mcp-server \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page