GraphQL Schema logo

GraphQL Schema

Free

让 LLM 在不增加上下文的情况下探索大型 GraphQL 模式。

FreeFree tier
Type
Open Source

About GraphQL Schema

A Model Context Protocol (MCP) server that exposes GraphQL schema information to Large Language Models (LLMs) like Claude. It allows an LLM to explore and understand GraphQL schemas through a set of specialized tools, reducing the need to send the entire schema in context. Users can load any GraphQL schema file, explore query, mutation, and subscription fields, look up detailed type definitions, search for types and fields using pattern matching, and get simplified field information including types and arguments. Internal GraphQL types can be filtered out for cleaner results.

Key Features

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
Provides MCP tools: list-query-fields, get-query-field, list-mutation-fields, get-mutation-field, list-subscription-fields, get-subscription-field, list-types, get-type, search-types, search-fields

Pros & Cons

Pros
  • Open source (MIT license) and free to use
  • Uses the Model Context Protocol standard for interoperability with LLM clients
  • Reduces token usage by only exposing the schema interactively
  • Provides structured tools for schema exploration instead of unstructured text
  • Filters out internal GraphQL types automatically
Cons
  • Requires local setup and a GraphQL schema file (SDL)
  • Only works with static schema files, not live GraphQL endpoints
  • Limited to schema exploration; does not support executing queries or mutations
  • Currently only supports schema files, not introspection from a live endpoint

Best For

Allow Claude or other LLMs to explore large GraphQL schemas without sending the entire schema in contextIntegrate with Claude Desktop to answer questions about GraphQL API schemasAssist in API documentation and schema understanding for developersAutomate schema analysis and discovery tasks within an MCP-compatible environment

FAQ

What is GraphQL Schema MCP Server?
It is a Model Context Protocol server that exposes GraphQL schema information to LLMs like Claude through specialized tools, allowing efficient exploration of large schemas.
How do I install and use it?
Run 'npx -y mcp-graphql-schema' with a schema file path. You can also install via Smithery using 'npx -y @smithery/cli install @hannesj/mcp-graphql-schema --client claude'. It integrates with Claude Desktop by editing claude_desktop_config.json.
What tools does it provide?
It provides tools to list and get query, mutation, and subscription fields, list and get types, and search for types and fields using pattern matching.
Can I use it with Claude Code CLI?
Yes, you can add the server using 'claude mcp add graphql-schema npx -y mcp-graphql-schema' and then query the schema within Claude Code.