This repository hosts a Model Context Protocol (MCP) server that exposes GraphQL schema information to Large Language Models, enabling them to explore schemas and understand type definitions through specialized tools.
This repository hosts a Model Context Protocol (MCP) server designed to expose GraphQL schema information to Large Language Models (LLMs) like Claude, enabling them to understand and interact with GraphQL schemas effectively.
Features: The server loads GraphQL schema files, allows exploration of query, mutation, and subscription fields, provides detailed type definitions, supports schema searching via pattern matching, offers simplified field information, and filters out internal GraphQL types.
Usage: The server can be run via the command line, specifying the schema file path. It integrates with Claude Desktop by configuring the claude_desktop_config.json
file and with Claude Code CLI using claude mcp add
command.
MCP Tools: The server provides tools like list-query-fields
, get-query-field
, list-mutation-fields
, get-type
, get-type-fields
, and search-schema
for LLMs to query and understand the GraphQL schema. Example queries are provided to demonstrate the server's capabilities.
hannesj/mcp-graphql-schema
March 13, 2025
March 27, 2025
JavaScript