Open Source

GraphQL MCP Server Tools

Auto-generate MCP tools from any GraphQL schema

The Problem

Manually wiring AI tools is tedious

Every time you want an AI assistant to interact with your GraphQL API, you have to manually define tool schemas, write validation logic, and handle field selections. For large APIs, this becomes a maintenance nightmare.

The Solution

Point. Generate. Done.

Point this tool at any GraphQL endpoint and it automatically discovers every operation, generates properly typed MCP tools, and serves them — ready for any AI assistant to use immediately.

From Schema to AI-Ready in Seconds

01

Schema Input

Reads your GraphQL schema from file, string, object, or introspection

02

Operation Extraction

Parses every Query and Mutation into typed operations

03

Tool Generation

Converts GraphQL types to JSON Schema for MCP tool validation

04

Field Selection

Auto-generates nested field selections with depth control

05

MCP Server

Serves tools via JSON-RPC 2.0 over stdio or HTTP transport

What it Brings to the Table

01

Schema Introspection

Reads GraphQL schemas from files, strings, objects, or via live introspection queries

02

Auto Tool Generation

Extracts every Query and Mutation as a separate MCP tool with proper input validation

03

Relay Support

Auto-generates field selections with built-in Relay connection pattern support

04

Dual Transport

Serves tools over both stdio and HTTP transports for maximum client compatibility

05

Dynamic Auth

Supports static headers and async token functions for OAuth/JWT workflows

06

Operation Filtering

Selectively expose operations with custom filter functions — queries only, mutations only, or any custom logic

One command. That's it.

terminal
$ npx graphql-mcp-server-tools --schema ./schema.graphql --endpoint http://localhost:4000/graphql
TypeScriptGraphQLMCPNode.jsAI Tools

Built for Developers

Open source, zero config required. Give it a schema, get MCP tools back.