apollo-client
Guide for building React applications with Apollo Client 4.x. Use this skill when: (1) setting up Apollo Client in a React…
Guide for using Apollo MCP Server to connect AI agents with GraphQL APIs. Use this skill when: (1) setting up or configuring Apollo MCP Server, (2) defining MCP tools from GraphQL operations, (3) using introspection tools (introspect, search, validate, execute, explorer), (4)
Claude Code
$ npx -y skills add apollographql/skills --skill apollo-mcp-server --agent claude-code
Codex
$ npx skills add apollographql/skills --skill apollo-mcp-server -a codex -y
Cursor
$ npx skills add apollographql/skills --skill apollo-mcp-server -a cursor -y
Gemini CLI
$ npx skills add apollographql/skills --skill apollo-mcp-server -a gemini-cli -y
GitHub Copilot
$ npx skills add apollographql/skills --skill apollo-mcp-server -a github-copilot -y
OpenCode
$ npx skills add apollographql/skills --skill apollo-mcp-server -a opencode -y
Windsurf
$ npx skills add apollographql/skills --skill apollo-mcp-server -a windsurf -y
name: apollo-mcp-server description: > Guide for using Apollo MCP Server to connect AI agents with GraphQL APIs. Use this skill when: (1) setting up or configuring Apollo MCP Server, (2) defining MCP tools from GraphQL operations, (3) using introspection tools (introspect, search, validate, execute, explorer), (4) configuring authentication, CORS, health checks, or telemetry, (5) writing Rhai scripts for request lifecycle hooks, (6) defining MCP prompts, (7) troubleshooting MCP server connectivity or tool execution issues, (8) building MCP Apps for interactive UI experiences, (9) deploying Apollo MCP Server to production. license: MIT compatibility: Works with Claude Code, Claude Desktop, Cursor. metadata: author: apollographql version: "1.3.0" allowed-tools: Bash(rover:*) Bash(npx:*) Read Write Edit Glob Grep
Apollo MCP Server exposes GraphQL operations as MCP tools, enabling AI agents to interact with GraphQL APIs through the Model Context Protocol.
# Linux / MacOS curl -sSL https://mcp.apollo.dev/download/nix/latest | sh # Windows iwr 'https://mcp.apollo.dev/download/win/latest' | iex
Create `config.yaml` in your project root:
transport:
type: streamable_http
schema:
source: local
path: ./schema.graphql
operations:
source: local
paths:
- ./operations/
introspection:
introspect:
enabled: true
search:
enabled: true
validate:
enabled: true
execute:
enabled: trueStart the server:
apollo-mcp-server ./config.yaml
The MCP endpoint is available at `http://127.0.0.1:8000/mcp` (streamable_http defaults: address `127.0.0.1`, port `8000`). The GraphQL endpoint defaults to `http://localhost:4000/` — override with the `endpoint` key if your API runs elsewhere.
The server watches the config file for changes and automatically restarts with updated configuration.
Add to your MCP client configuration:
**Streamable HTTP (recommended):**
Claude Desktop (`claude_desktop_config.json`):
{
"mcpServers": {
"graphql-api": {
"command": "npx",
"args": ["mcp-remote", "http://127.0.0.1:8000/mcp"]
}
}
}Claude Code:
claude mcp add graphql-api -- npx mcp-remote http://127.0.0.1:8000/mcp
**Stdio (client launches the server directly):**
{
"mcpServers": {
"graphql-api": {
"command": "./apollo-mcp-server",
"args": ["./config.yaml"]
}
}
}| Tool | Purpose | When to Use | |------|---------|-------------| | `introspect` | Explore schema types in detail | Need type definitions, fields, relationships | | `search` | Find types in schema | Looking for specific types or fields | | `validate` | Check operation validity | Before executing operations | | `execute` | Run ad-hoc GraphQL operations | Testing or one-off queries | | `explorer` | Open operation in Apollo Explorer | Generate Explorer URLs (requires GraphOS graph ref) |
MCP tools are created from GraphQL operations:
operations:
source: local
paths:
- ./operations/operations: source: collection id: your-collection-id
operations: source: manifest path: ./persisted-query-manifest.json
operations: source: introspect
operations: source: uplink
> **Security: Sensitive operations.** Configure authentication before exposing to AI agents. Use `headers` for API keys, OAuth for user-scoped access.
# Static header
headers:
Authorization: "Bearer ${env.API_TOKEN}"
# Dynamic header forwarding
forward_headers:
- x-tenant-id
# OAuth (streamable_http transport)
transport:
type: streamable_http
auth:
servers:
- https://auth.example.com
audiences:
- https://api.example.com
scopes:
- read
scope_mode: require_all# Local file schema: source: local path: ./schema.graphql # Federated graphs (uplink) schema: source: uplink # Non-federated graphs (graphos) schema: source: graphos
Control mutation behavior via `overrides.mutation_mode`:
| Mode | Predefined mutations | Ad hoc mutations (`execute`) | |------|---------------------|------------------------------| | `none` | Skipped | Rejected | | `explicit` | Exposed | Rejected | | `all` | Exposed | Allowed |
Build interactive UI experiences inside MCP Apps-compatible hosts (e.g., ChatGPT). Define tools wit
A collection of skills for AI coding agents working with Apollo GraphQL tools and technologies. Apollo Skills follow the Agent Skills format and are available on skills.sh.
Guide for building React applications with Apollo Client 4.x. Use this skill when: (1) setting up Apollo Client in a React…
DEPRECATED: superseded by the graphos-factory skill (npx skills add apollographql/skills@graphos-factory), which builds and…
Guide for authoring Apollo Federation subgraph schemas. Use this skill when: (1) creating new subgraph schemas for a federated…
Guide for building Apple-platform applications with Apollo iOS, the strongly-typed GraphQL client for Swift. Use this skill when:…
Guide for building applications with Apollo Kotlin, the GraphQL client library for Android and Kotlin. Use this skill when: (1)…
Guide for writing Apollo Router native Rust plugins. Use this skill when: (1) users want to create a new router plugin, (2) users…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.