GraphQL MCP Server

Enables Large Language Models to interact with GraphQL APIs through schema introspection and query execution.

Local serverstdio★ 3

What is the GraphQL MCP Server?

Enables Large Language Models to interact with GraphQL APIs through schema introspection and query execution.

The short version

A Model Context Protocol server that enables LLMs to interact with GraphQL APIs. This implementation provides schema introspection and query execution capabilities, allowing models to discover and use GraphQL APIs dynamically.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the GraphQL MCP Server

{
  "mcpServers": {
    "graphql-2": {
      "command": "npx",
      "args": ["-y", "mcp-graphql"]
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Example prompts to try

  • “Use GraphQL to Examples.”

Frequently asked questions

GraphQL enables Large Language Models to interact with GraphQL APIs. It uses schema introspection to allow LLMs to discover API structure and execute queries for data retrieval. Mutations are also supported but disabled by default for security.