The mcp-graphql repository provides a Model Context Protocol server that enables LLMs to interact with GraphQL APIs by offering schema introspection and query execution capabilities, facilitating dynamic API usage.
A Model Context Protocol (MCP) server enabling LLMs to interact with GraphQL APIs. This implementation provides schema introspection and query execution, allowing models to dynamically discover and use GraphQL APIs.
Run mcp-graphql
with the correct endpoint; it will automatically introspect your queries. Command-line arguments include --endpoint
(GraphQL URL), --headers
(JSON string for request headers), --enable-mutations
(disabled by default), --name
(MCP server name), and --schema
(path to a local GraphQL schema file).
Install via Smithery or manually by configuring the mcpServers
section in your Claude setup.
Mutations are disabled by default.
For specific needs, create a custom MCP to restrict tool calling to specific query fields and variables.
blurrah/mcp-graphql
December 21, 2024
March 28, 2025
TypeScript