graphql-mcp-server

Installation
SKILL.md

GraphQL MCP Server (graphql2mcp)

graphql2mcp turns every field on a GraphQL schema's Query type (and any Mutation fields you opt in to) into an MCP tool. When a tool is called, it runs the matching operation against the GraphQL endpoint and returns the JSON result.

Situation Use
An MCP client (Claude Code, Cursor, …) should talk to a GraphQL API CLI: npx -y graphql2mcp <source> [options]
You already have a TypeScript McpServer and want GraphQL tools @graphql2mcp/lib → registerGraphQLTools(server, options)
Several GraphQL APIs in one server, built in code createProxyServer from graphql2mcp, see references/library.md

Runtime: Node.js >= 22, Bun >= 1.2, or Deno >= 2.

CLI

# Live endpoint: the schema is introspected and queries go to the same URL
npx -y graphql2mcp https://api.example.com/graphql -H "Authorization: Bearer $TOKEN"
Installs
1
GitHub Stars
1
First Seen
9 days ago