GraphQL Schema
Exposes GraphQL schema information to LLMs, allowing them to explore and understand the schema using specialized tools.
GraphQL Schema Model Context Protocol Server
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.
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
Usage
Command Line
Run the MCP server with a specific schema file:
# Use the default schema.graphqls in current directory
npx -y mcp-graphql-schema
# Use a specific schema file (relative path)
npx -y mcp-graphql-schema ../schema.shopify.2025-01.graphqls
# Use a specific schema file (absolute path)
npx -y mcp-graphql-schema /absolute/path/to/schema.graphqls
# Show help
npx -y mcp-graphql-schema --help
Installing via Smithery
To install GraphQL Schema for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @hannesj/mcp-graphql-schema --client claude
Claude Desktop Integration
To use this MCP server with Claude Desktop, edit your claude_desktop_config.json configuration file:
{
"mcpServers": {
"GraphQL Schema": {
"command": "npx",
"args": ["-y", "mcp-graphql-schema", "/ABSOLUTE/PATH/TO/schema.graphqls"]
}
}
}
Location of the configuration file:
- macOS/Linux:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
$env:AppData\Claude\claude_desktop_config.json
Claude Code Integration
To use this MCP server with Claude Code CLI, follow these steps:
-
Add the GraphQL Schema MCP server to Claude Code
# Basic syntax claude mcp add graphql-schema npx -y mcp-graphql-schema # Example with specific schema claude mcp add shopify-graphql-schema npx -y mcp-graphql-schema ~/Projects/work/schema.shopify.2025-01.graphqls -
Verify the MCP server is registered
# List all configured servers claude mcp list # Get details for your GraphQL schema server claude mcp get graphql-schema -
Remove the server if needed
claude mcp remove graphql-schema -
Use the tool in Claude Code
Once configured, you can invoke the tool in your Claude Code session by asking questions about the GraphQL schema.
Tips:
- Use the
-sor--scopeflag withproject(default) orglobalto specify where the configuration is stored - Add multiple MCP servers for different schemas with different names (e.g., main API schema, Shopify schema)
MCP Tools
The server provides the following tools for LLMs to interact with GraphQL schemas:
list-query-fields: Lists all available root-level fields for GraphQL queriesget-query-field: Gets detailed definition for a specific query field in SDL formatlist-mutation-fields: Lists all available root-level fields for GraphQL mutationsget-mutation-field: Gets detailed definition for a specific mutation field in SDL formatlist-subscription-fields: Lists all available root-level fields for GraphQL subscriptions (if present in schema)get-subscription-field: Gets detailed definition for a specific subscription field (if present in schema)list-types: Lists all types defined in the GraphQL schema (excluding internal types)get-type: Gets detailed definition for a specific GraphQL type in SDL formatget-type-fields: Gets a simplified list of fields with their types for a specific GraphQL object typesearch-schema: Searches for types or fields in the schema by name pattern (case-insensitive regex)
Examples
Example queries to try:
What query fields are available in this GraphQL schema?
Show me the details of the "user" query field.
What mutation operations can I perform in this schema?
List all types defined in this schema.
Show me the definition of the "Product" type.
List all fields of the "Order" type.
Search for types and fields related to "customer".
関連サーバー
Scout Monitoring MCP
スポンサーPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
スポンサーAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
Raysurfer Code Caching
MCP server for LLM output caching and reuse. Caches and retrieves code from prior AI agent executions, delivering cached outputs up to 30x faster.
Victron ModBus TCP
Server that connects to Victron Energy GX devices on local network.
Langfuse Prompt Management
Open-source tool for collaborative editing, versioning, evaluating, and releasing prompts.
DHTMLX MCP Server
The DHTMLX MCP server provides real-time access to official docs and a smart RAG.
vLEI.wiki MCP
Turns the Agent into a vLEI/KERI protocol expert
R.A.P.I.D.
A local MCP server providing powerful code analysis and search capabilities for software projects.
Deephaven MCP
MCP servers for Deephaven to orchestrate data workers and power documentation Q&A with LLMs, enabling AI-driven data workflows.
NestJS MCP Server Module
A NestJS module for building MCP servers to expose tools and resources for AI, with support for multiple transport types.
Xcode
Tools for Xcode project management, building, testing, archiving, code signing, and iOS development utilities.
MCP Proxy
A thin proxy that allows clients to connect to MCP servers over HTTP without streaming transport.