MCP Graphql Schema MCP Server

Model Context Protocol server for GraphQL schemas

Local serverstdio

What is the MCP Graphql Schema MCP Server?

Model Context Protocol server for GraphQL schemas

What it actually does

A Model Context Protocol (MCP) server that exposes GraphQL schema information to Large Language Models (LLMs) like Claude. This server allows an LLM to explore and understand GraphQL schemas through a set of specialized tools.

  • Load any GraphQL schema file specified via command line argument
  • Explore query, mutation, and subscription fields
  • Look up detailed type definitions
  • Search for types and fields using pattern matching
  • Get simplified field information including types and arguments
  • Filter out internal GraphQL types for cleaner results

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.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
list-query-fieldsLists all available root-level fields for GraphQL queries
get-query-fieldGets detailed definition for a specific query field in SDL format
list-mutation-fieldsLists all available root-level fields for GraphQL mutations
get-mutation-fieldGets detailed definition for a specific mutation field in SDL format
list-subscription-fieldsLists all available root-level fields for GraphQL subscriptions (if present in schema)
get-subscription-fieldGets detailed definition for a specific subscription field (if present in schema)
list-typesLists all types defined in the GraphQL schema (excluding internal types)
get-typeGets detailed definition for a specific GraphQL type in SDL format
get-type-fieldsGets a simplified list of fields with their types for a specific GraphQL object type
search-schemaSearches for types or fields in the schema by name pattern (case-insensitive regex)

How to install the MCP Graphql Schema MCP Server

{
  "mcpServers": {
    "GraphQL Schema": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-graphql-schema",
        "/ABSOLUTE/PATH/TO/schema.graphqls"
      ]
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Example prompts to try

  • “Use MCP Graphql Schema to list-query-fields.”
  • “Use MCP Graphql Schema to get-query-field.”
  • “Use MCP Graphql Schema to list-mutation-fields.”

Frequently asked questions

Model Context Protocol server for GraphQL schemas Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.