GraphQL Schema
About
Enables AI models to explore and understand GraphQL schemas through specialized tools for querying operations, looking up type definitions, pattern matching, and retrieving simplified field information.
Details
- Author
- hannesj
- Repository
- hannesj/mcp-graphql-schema
- GitHub stars
- 12
- Downloads
- 170
- License
- MIT License
- Categories
- Developer Tools, Design, File Management, AI, Search, API, Knowledge Base, Infrastructure, Frontend
Jump to
- 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
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
GraphQL SchemaCommand (node, npx, python, etc.)npxArguments-
Argument 1
-y -
Argument 2
mcp-graphql-schema -
Argument 3
/ABSOLUTE/PATH/TO/schema.graphqls
Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
-
Argument 1
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
To install GraphQL Schema for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @hannesj/mcp-graphql-schema --client claude
claude mcp list
list-query-fields
Lists all available root-level fields for GraphQL queries.
get-query-field
Gets detailed definition for a specific query field in SDL format.
list-mutation-fields
Lists all available root-level fields for GraphQL mutations.
get-mutation-field
Gets detailed definition for a specific mutation field in SDL format.
list-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 format.
get-type-fields
Gets a simplified list of fields with their types for a specific GraphQL object type.
search-schema
Searches for types or fields in the schema by name pattern (case-insensitive regex).
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"graphql schema": {
"cwd": "~/Library/Application Support/Claude",
"env": {},
"args": [
"-y",
"mcp-graphql-schema",
"/ABSOLUTE/PATH/TO/schema.graphqls"
],
"shell": false,
"command": "npx"
}
}
}
Linux
{
"cwd": "~/Library/Application Support/Claude",
"env": [],
"args": [
"-y",
"mcp-graphql-schema",
"/ABSOLUTE/PATH/TO/schema.graphqls"
],
"shell": false,
"command": "npx"
}
Macos
{
"cwd": "~/Library/Application Support/Claude",
"env": [],
"args": [
"-y",
"mcp-graphql-schema",
"/ABSOLUTE/PATH/TO/schema.graphqls"
],
"shell": false,
"command": "npx"
}
Windows
{
"cwd": "$$env:AppData\\Claude",
"env": [],
"args": [
"/c",
"npx",
"-y",
"mcp-graphql-schema",
"/ABSOLUTE/PATH/TO/schema.graphqls"
],
"shell": true,
"command": "cmd"
}
GraphQL Schema Model Context Protocol Server
- 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
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
To install GraphQL Schema for Claude Desktop automatically viaSmithery:
npx -y @smithery/cli install @hannesj/mcp-graphql-schema --client claude
To use this MCP server with Claude Desktop, edit yourclaude_desktop_config.jsonconfiguration file:
{ "mcpServers": { "GraphQL Schema": { "command": "npx", "args": ["-y", "mcp-graphql-schema", "/ABSOLUTE/PATH/TO/schema.graphqls"] } } }
- macOS/Linux:~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:$env:AppData\Claude\claude_desktop_config.json
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
# List all configured servers claude mcp list # Get details for your GraphQL schema server claude mcp get graphql-schema
Once configured, you can invoke the tool in your Claude Code session by asking questions about the GraphQL schema.
- 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)
The server provides the following tools for LLMs to interact with GraphQL schemas:
- list-query-fields: Lists all available root-level fields for GraphQL queries
- get-query-field: Gets detailed definition for a specific query field in SDL format
- list-mutation-fields: Lists all available root-level fields for GraphQL mutations
- get-mutation-field: Gets detailed definition for a specific mutation field in SDL format
- list-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 format
- get-type-fields: Gets a simplified list of fields with their types for a specific GraphQL object type
- search-schema: Searches for types or fields in the schema by name pattern (case-insensitive regex)
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".
This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.
Create crafted UI components inspired by the best 21st.dev design engineers.
Bring agent evaluations, observability, and synthetic test set generation directly into your IDE for free with Galileo's new MCP server
An MCP server to help AI assistants to answer questions and generate AccelByte Extend SDK code more effectively .
MCP server for AI Diagram Maker — generate beautiful software engineering diagrams directly inside Cursor, Claude Desktop, Claude Code, or any MCP-compatible AI agent
ALAPI MCP Tools,Call hundreds of API interfaces via MCP
AI-powered SVG animation generator that transforms static files into animated SVG components using the Allyson platform
MCP server that gives AI assistants on-demand access to 1,500+ amCharts docs, ~300 code examples, and 1000+ class API references.
APIMatic MCP Server is used to validate OpenAPI specifications using APIMatic. The server processes OpenAPI files and returns validation summaries by leveraging APIMatic’s API.
One shared context layer for AI agents and humans — live API specs, DB schemas, and versioned contracts across repos so every agent and teammate works from the same source of truth.
Build and deploy full-stack Next.js apps with 98 tools for React, AWS, and MongoDB
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





