mcp-graphql-schema
If you are the rightful owner of mcp-graphql-schema and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A Model Context Protocol (MCP) server that exposes GraphQL schema information to Large Language Models (LLMs) like Claude.
The GraphQL Schema Model Context Protocol Server is designed to facilitate the interaction between Large Language Models (LLMs) and GraphQL schemas. By exposing schema information, this server allows LLMs to explore and understand the structure and capabilities of GraphQL APIs. It provides a set of tools that enable LLMs to load, explore, and query GraphQL schemas, making it easier to integrate and utilize these schemas in various applications. The server supports operations such as loading schema files, exploring query, mutation, and subscription fields, and searching for types and fields using pattern matching. It also offers simplified field information and filters out internal GraphQL types for cleaner results.
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
Tools
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)