Practical overview
When it fits
Use it when an MCP-compatible client needs schema information and query access to a GraphQL endpoint, with configuration options for headers, supplied schemas and mutation access.
Who it is for
- Developers connecting an MCP-compatible client to a GraphQL API.
- Teams that want clients to use a local or hosted schema when introspection is unavailable or undesired.
- API operators configuring request headers and deciding whether clients may run mutations.
Documented uses
- Expose a GraphQL schema to an MCP client through introspection or a supplied schema file.
- Let a compatible client issue GraphQL queries to a configured endpoint.
- Configure request headers for endpoint access.
- Enable mutation operations explicitly when write access is needed.
Requirements & limits
- The endpoint is configured with ENDPOINT; request headers can be supplied through HEADERS.
- Schema discovery can use endpoint introspection or a local or URL-hosted schema specified by SCHEMA.
- Mutations are disabled by default and enabled with ALLOW_MUTATIONS=true.
- The README describes a generic server and recommends a custom MCP implementation when access should be restricted to specific query fields or variables.
- The repository specifies the MIT license and TypeScript as its primary language.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Configure the server for a GraphQL endpoint
Set the endpoint and optional request headers or schema source before running mcp-graphql.
Before you start
- A GraphQL endpoint URL.
- The mcp-graphql package run through npx.
- If needed, request headers represented as a JSON string, or a local schema file path or schema URL.
Steps
Set ENDPOINT to the GraphQL endpoint URL.
If the endpoint requires headers, set HEADERS to a JSON string containing them.
If using a supplied schema instead of introspection, set SCHEMA to a local file path or schema URL.
Run the command below.
npx mcp-graphql
Expected outcome
The MCP server is configured to expose schema information and GraphQL query execution to a compatible client.
Guide limitations
- The source documents configuration and invocation, not a verified successful connection to a particular endpoint.
- Mutations are disabled by default and require ALLOW_MUTATIONS=true.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 15 November 2026
- Original website title
- blurrah/mcp-graphql · Official homepage title · retained in its source language

