mcp-graphql-schema

mcp-graphql-schema

26

This is a Model Context Protocol server designed to expose and facilitate interaction with GraphQL schema data, particularly for use with Large Language Models such as Claude. It offers command line tools and Claude integration capabilities to explore, manage, and query schema information effectively.

Overview

A Model Context Protocol (MCP) server that exposes GraphQL schema information to Large Language Models (LLMs) like Claude. It allows LLMs to explore and understand GraphQL schemas through specialized tools.

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.
  • Filter out internal GraphQL types for cleaner results.

Usage

Run the MCP server using a command line with specific schema files. Install and integrate with Claude Desktop via Smithery or direct configuration file edits. Use with Claude Code CLI by adding and managing servers through terminal commands.

MCP Tools

Provides tools like list-query-fields, get-query-field, and search-schema for LLMs to interact with GraphQL schemas.