OlympHill
M

mcp-graphqlThis server connects AI assistants to your GraphQL web services so they can read the layout and run safe lookup queries. You set the web address, add security codes, and decide if the AI can change yo

(0)
Daniel NikulshynReviewed by Daniel Nikulshyn·Updated July 2026

Overview

mcp-graphql is a Model Context Protocol server that enables large language models (LLMs) to interact with GraphQL APIs. It provides schema introspection and query execution capabilities, allowing models to discover and use GraphQL APIs dynamically. The server can be configured with environment variables such as ENDPOINT, HEADERS, ALLOW_MUTATIONS, NAME, and SCHEMA. It supports basic usage with a local GraphQL server, custom headers, mutation operations, and using a local schema file or a schema file hosted at a URL. The server exposes the GraphQL schema as a resource and provides tools for introspecting the schema and executing GraphQL queries.

Key features

  • Schema introspection
  • Query execution
  • Custom headers support
  • Mutation operations (optional)
  • Local schema file or schema file hosted at a URL support

Pricing

Model
Free
Category
MCP Servers
Rating
No reviews yet

Use cases

Integrating LLMs with GraphQL APIs

mcp-graphql enables LLMs to interact with GraphQL APIs, allowing them to discover and use GraphQL APIs dynamically.

Securing GraphQL APIs for LLMs

mcp-graphql provides a secure way to expose GraphQL APIs to LLMs, with features like disabled mutations by default and support for custom headers.

Pros & Cons

Pros

  • Enables LLMs to interact with GraphQL APIs dynamically
  • Provides schema introspection and query execution capabilities
  • Supports custom headers and mutation operations
  • Can be used with a local schema file or a schema file hosted at a URL

Cons

  • Mutations are disabled by default as a security measure
  • Requires careful consideration before enabling mutations in production environments

Reviews

Sign in to leave a review.

No reviews yet. Be the first!

Q&A

What tools are provided by the server?

The server provides two main tools: introspect schema and query graphql. The introspect schema tool retrieves the GraphQL schema, and the query graphql tool executes GraphQL queries against the endpoint.

Asked by Fernando Rojas · Apr 4, 2026

How do I configure the server?

The server can be configured with environment variables such as ENDPOINT, HEADERS, ALLOW_MUTATIONS, NAME, and SCHEMA. You can set these variables to customize the server's behavior.

Asked by Femi Adebayo · Mar 28, 2026

Can I enable mutation operations?

Yes, mutation operations are supported, but they are disabled by default as a security measure. You can enable them by setting the ALLOW_MUTATIONS environment variable to true.

Asked by Kwabena Asante · Feb 27, 2026

What is mcp-graphql?

mcp-graphql is a Model Context Protocol server that enables large language models to interact with GraphQL APIs. It provides schema introspection and query execution capabilities.

Asked by Malik Rasheed · Feb 1, 2026

Ask a question

MCP Servers alternatives