Apollo MCP Server
Apollo MCP Server allows you to expose your existing GraphQL APIs as tools for AI assistants, enabling them to query real-time data. It integrates seamlessly with AI clients like Claude Desktop, transforming GraphQL operations into AI-accessible functions.
What it does
This server acts as a bridge, allowing large language models (LLMs) to understand and execute GraphQL queries. It takes your GraphQL schema and defined operations, and presents them to an MCP client as a set of callable tools. For example, you can expose an operation to fetch astronaut data, and an AI assistant can then use this "tool" to answer questions like "Who are the astronauts currently in space?".
How to use
- Clone the repository:
git clone https://github.com/apollographql/apollo-mcp-server.gitcd apollo-mcp-server - Install Rover CLI: Ensure you have Apollo Rover CLI v0.35 or later.
- Run the server: Use the
rover devcommand with your supergraph and MCP configuration files.
This command starts a local graph and an MCP Server, typically onrover dev --supergraph-config ./graphql/TheSpaceDevs/supergraph.yaml \ --mcp ./graphql/TheSpaceDevs/config.yamlhttp://127.0.0.1:5000/mcpusing Streamable HTTP transport. - Connect an MCP Client: Configure your AI assistant (e.g., Claude Desktop) to connect to the running MCP Server. For Claude, you would add a configuration like this to its
claude_desktop_config.json:{ "mcpServers": { "thespacedevs": { "command": "npx", "args": [ "mcp-remote", "http://127.0.0.1:5000/mcp" ] } } } - Test: Ask your AI assistant questions that leverage the exposed GraphQL tools, such as "Who are the astronauts currently in space?".
Implementation Details
Apollo MCP Server leverages GraphQL Federation to combine multiple subgraphs into a single supergraph. It then exposes pre-built GraphQL operations from this supergraph as MCP tools. It supports Streamable HTTP and STDIO transports.
Recommend MCP Servers 💡
@offorte/mcp-server
MCP server for the Offorte API - Create & send proposals using AI
science-museum-mcp
A Python MCP server enabling LLMs to fetch data from the UK Science Museum Group API
substrate-mcp-rs
A Model Context Protocol (MCP) server for Substrate blockchains, written in Rust and interfacing the subxt crate.
yandex-maps-mcp
An MCP server that integrates with Yandex Maps API for map rendering and geocoding functionalities.
mcp-search-console
A Model Context Protocol (MCP) server for managing Google Search Console properties, sitemaps, and search analytics via its API
mcp-go-colly
A web crawling framework that integrates the Model Context Protocol (MCP) with the Colly web scraping library for extracting web content for LLM applications.