About
A Model Context Protocol server that lets large language models discover and execute queries against GraphQL endpoints. It supports schema introspection, optional mutation enabling, and can use local or remote schemas.
Capabilities
mcp‑graphql is a Model Context Protocol server that bridges large language models with GraphQL APIs. By exposing the full schema of a GraphQL endpoint and providing tools to execute queries, it lets an LLM dynamically discover the structure of a service, construct valid requests, and interpret responses—all without prior hard‑coding of API calls. This capability is especially valuable for developers building conversational agents that need to interact with complex data sources, as it removes the need to manually translate natural language into GraphQL syntax.
The server automatically performs schema introspection when it starts, unless a local or remote schema file is supplied. The exposed graphql‑schema resource allows client tools to retrieve the entire type system, including queries, mutations, and subscriptions. Two primary tools are available: introspect‑schema, which fetches the schema on demand, and query‑graphql, which sends arbitrary queries to the endpoint. By default mutations are disabled for safety, but can be enabled with a single environment variable—an important safeguard when the LLM could otherwise alter production data.
Developers can integrate mcp‑graphql into any MCP‑compatible workflow. For example, a Claude desktop assistant can first call introspect‑schema to understand the available fields, then generate a tailored query with query‑graphql, and finally parse the JSON response back into a natural language answer. In data‑analysis scenarios, an LLM can iterate over schema types to build dynamic dashboards or generate SQL‑like reports. In CI/CD pipelines, the server can be used to validate GraphQL contracts or automatically generate test cases based on the live schema.
What sets mcp‑graphql apart is its simplicity and flexibility. It requires only a single environment variable for the endpoint, supports custom headers for authenticated services, and allows developers to supply pre‑fetched schemas to avoid network overhead. The clear separation of schema discovery and query execution, combined with the default mutation guard, makes it a secure, plug‑and‑play solution for any project that needs AI agents to interact with GraphQL APIs in a reliable and introspective manner.
Related Servers
Netdata
Real‑time infrastructure monitoring for every metric, every second.
Awesome MCP Servers
Curated list of production-ready Model Context Protocol servers
JumpServer
Browser‑based, open‑source privileged access management
OpenTofu
Infrastructure as Code for secure, efficient cloud management
FastAPI-MCP
Expose FastAPI endpoints as MCP tools with built‑in auth
Pipedream MCP Server
Event‑driven integration platform for developers
Weekly Views
Server Health
Information
Explore More Servers
Playwright Wizard MCP Server
Guided Playwright test suite creation with best‑practice wizardry
MCP Server Email
Provide an email address for your AI assistant
LlamaCloud MCP Server
Connects Claude to your LlamaCloud knowledge base
Simple Notion MCP Server
Convert Notion pages to clean Markdown for AI assistants
Authorize Net MCP Server
Seamless payment integration via MCP tools
Weather MCP Server
Quick, Node.js weather data via Model Context Protocol