MCP Hub
Back to servers

gql-to-mcp

Turn any GraphQL API into an MCP server. Point it at your schema and operations, get a fully working Model Context Protocol server with zero boilerplate.

npm197/wk
Updated
Apr 5, 2026

Quick Install

npx -y gql-to-mcp

GraphQL MCP Monorepo

This monorepo contains a GraphQL-to-MCP framework , managed with Lerna.

📦 Packages

packages/gql-mcp

Core library that converts GraphQL operations into MCP tools with support for custom multi-step tools.

examples

Example implementations and usage patterns for gql-mcp.

🚀 Quick Start

# Install dependencies
npm install

# Build all packages
npm run build

# Run both servers in parallel

🛠️ Common Commands

Build Commands

npm run build              # Build all packages
npm run build:packages     # Build only gql-to-mcp
npm run build:servers      # Build only servers

Utility Commands

npm run clean              # Clean all build artifacts
npm run lint               # Lint all packages
npm run format             # Format all code
npm run type-check         # Type check all packages

📁 Repository Structure

example-mcp/
├── packages/
│   └── gql-mcp/           # Core MCP framework library
├── examples/              # Example implementations
├── lerna.json             # Lerna configuration
└── package.json           # Root workspace configuration

📚 Documentation

🔧 Requirements

  • Node.js >= 18.19.0 or >= 20.6.0 (Node 20.x recommended)
  • npm >= 9.0.0

License

MIT

Reviews

No reviews yet

Sign in to write a review