GraphQL Schema

GraphQL Schema

Allow LLMs to explore large GraphQL schemas without bloating the context.

42
Stars
9
Forks
0
Releases

Overview

This MCP server exposes GraphQL schema information to Large Language Models (LLMs) such as Claude, enabling them to explore and understand schemas without loading the entire SDL into context. It provides a set of specialized tools that let an LLM interrogate a loaded GraphQL schema: list and inspect root fields for queries, mutations, and subscriptions; look up detailed type definitions; and retrieve simplified field information—including types and arguments. The server supports loading any GraphQL schema file supplied via the command line, and it offers pattern-based search to find relevant types and fields. Internal GraphQL types can be filtered out for cleaner results, helping the LLM focus on user-defined schema content. The MCP tools available include listing and getting details for query, mutation, and subscription fields, fetching types, retrieving type fields, and searching the schema by name patterns. The README also describes integration options with Claude Desktop and Claude Code, showing how users can configure and run the MCP server from CLI, and manage multiple schema configurations.

Details

Owner
hannesj
Language
JavaScript
License
MIT License
Updated
2025-12-07

Features

Load GraphQL schema from file

Loads any GraphQL schema file specified via the command line argument.

Explore root query, mutation, and subscription fields

Browse available root-level fields for GraphQL queries, mutations, and subscriptions.

Get detailed type definitions

Retrieve complete type definitions for GraphQL types.

Get SDL-formatted field/type definitions

Fetch detailed field or type definitions in SDL format.

Search for types and fields by pattern

Pattern-based search to find relevant schema elements by name.

Get simplified field information

Provide compact field summaries including types and arguments.

Filter internal GraphQL types

Exclude internal types for cleaner, more focused results.

Claude Desktop/Claude Code integration

Supports integration paths to Claude Desktop and Claude Code via CLI configuration.

Audience

LLMsExpose GraphQL schema information to LLMs for exploration and reasoning
Claude DesktopEnable Claude Desktop and Claude Code to explore schemas via MCP tools

Tags

GraphQLMCPschema explorationLLMClaudeCLItype definitionsinternal type filteringpattern searchSDL