{"type":"mcp_server","name":"mcp-graphql-schema","description":"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.","category":"Developer Tools","language":"JavaScript","stars":47,"forks":0,"owner":"hannesj","github_url":"https://github.com/hannesj/mcp-graphql-schema","homepage":null,"setup":"## Setup\n\n**Command Line:**\n1.  Run the MCP server with `npx -y mcp-graphql-schema` (uses default schema.graphqls).\n2.  Specify a schema file with `npx -y mcp-graphql-schema ../schema.shopify.2025-01.graphqls` (relative path) or `npx -y mcp-graphql-schema /absolute/path/to/schema.graphqls` (absolute path).\n3.  Show help with `npx -y mcp-graphql-schema --help`.\n\n**Claude Desktop Integration:**\n1.  Edit `claude_desktop_config.json` (location varies by OS).\n2.  Add a \"GraphQL Schema\" entry under `mcpServers` with the command and arguments, including the absolute path to the schema file.\n\n**Claude Code Integration:**\n1.  Add the GraphQL Schema MCP server to Claude Code using `claude mcp add graphql-schema npx -y mcp-graphql-schema` or with a specific schema `claude mcp add shopify-graphql-schema npx -y mcp-graphql-schema  ~/Projects/work/schema.shopify.2025-01.graphqls`.\n2.  Verify the MCP server is registered using `claude mcp list` and `claude mcp get graphql-schema`.\n3.  Remove the server if needed using `claude mcp remove graphql-schema`.\n4.  Use the tool in Claude Code by asking questions about the GraphQL schema.","tools":"## Available Tools\n\n1.  Load any GraphQL schema file specified via command line argument.\n2.  Explore query, mutation, and subscription fields.\n3.  Look up detailed type definitions.\n4.  Search for types and fields using pattern matching.\n5.  Get simplified field information including types and arguments.\n6.  Filter out internal GraphQL types for cleaner results.\n7.  `list-query-fields`: Lists all available root-level fields for GraphQL queries.\n8.  `get-query-field`: Gets detailed definition for a specific query field in SDL format.\n9.  `list-mutation-fields`: Lists all available root-level fields for GraphQL mutations.\n10. `get-mutation-field`: Gets detailed definition for a specific mutation field in SDL format.\n11. `list-subscription-fields`: Lists all available root-level fields for GraphQL subscriptions (if present in schema).\n12. `get-subscription-field`: Gets detailed definition for a specific subscription field (if present in schema).\n13. `list-types`: Lists all types defined in the GraphQL schema (excluding internal types).\n14. `get-type`: Gets detailed definition for a specific GraphQL type in SDL format.\n15. `get-type-fields`: Gets a simplified list of fields with their types for a specific GraphQL object type.\n16. `search-schema`: Searches for types or fields in the schema by name pattern (case-insensitive regex).","faq":null,"created_at":"2025-03-13T10:04:43+00:00","updated_at":"2025-03-27T05:49:41+00:00","source_url":"https://model-context-protocol.com/servers/graphql-schema-model-context-protocol","related_articles":[]}