mcp-graphql-schema

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.

34
0

Summary: GraphQL Schema Model Context Protocol Server

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.

Repository

HA
hannesj

hannesj/mcp-graphql-schema

Created

March 13, 2025

Updated

March 27, 2025

Language

JavaScript

Category

Developer Tools