MCP Catalogs
Home

mcp-graphql-forge

by toolprint·18·Score 40

MCP server that converts GraphQL APIs into MCP tools with automatic parameter validation and field selection caching.

developer-toolsai-llmother
7
Forks
2
Open issues
9 mo ago
Last commit
2d ago
Indexed

Overview

MCP GraphQL Forge is a specialized MCP server that bridges GraphQL APIs with AI tools by automatically generating MCP tools from GraphQL schema introspection. It features dual transport modes (stdio for AI integration, HTTP for development), comprehensive parameter validation to prevent GraphQL errors, and an intelligent field selection system that handles circular references and optimizes query structure. The server supports both pre-introspection and schema caching for consistent performance, along with experimental authentication support.

Try asking AI

After installing, here are 5 things you can ask your AI assistant:

you:Integrating GraphQL APIs like GitHub, Strapi, or Shopify into AI workflows
you:Converting internal GraphQL services to MCP tools for AI assistants
you:Automating API interactions without manual query construction
you:How does it handle GraphQL introspection?
you:Can it handle authentication?

When to choose this

Choose this server when working with GraphQL APIs and need AI tool integration without manual query building. Ideal for teams already using GraphQL who want to expose their APIs to AI assistants.

When NOT to choose this

Don't choose this if you primarily work with REST APIs or need complex query capabilities that go beyond simple introspection-based tool generation.

Tools this server exposes

12 tools extracted from the README
  • query_user

    Execute GraphQL query to retrieve a user by ID

  • query_articles

    Execute GraphQL query to retrieve articles with optional filters

  • mutation_createUser

    Execute GraphQL mutation to create a new user

  • query_posts

    Execute GraphQL query to retrieve blog posts with optional filters

  • query_post

    Execute GraphQL query to retrieve a single post by slug

  • query_authors

    Execute GraphQL query to retrieve all authors

  • mutation_createPost

    Execute GraphQL mutation to create a new blog post

  • mutation_publishPost

    Execute GraphQL mutation to publish a post by ID

  • query_products

    Execute GraphQL query to retrieve products with optional filters

  • mutation_productCreate

    Execute GraphQL mutation to create a new product

  • query_orders

    Execute GraphQL query to retrieve orders with optional filters

  • mutation_orderUpdate

    Execute GraphQL mutation to update an existing order

Comparable tools

mcp-rest-forgegraphqgraphql-request

Installation

Installation

Recommended Method (Smithery)

npx @smithery/cli install @toolprint/mcp-graphql-forge --client claude

Alternative Methods

# npm install
npm install -g @toolprint/mcp-graphql-forge

Claude Desktop Configuration

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "mcp-graphql-forge": {
      "command": "npx",
      "args": [
        "-y",
        "@toolprint/mcp-graphql-forge"
      ],
      "env": {
        "GRAPHQL_ENDPOINT": "https://your-api.com/graphql",
        "GRAPHQL_AUTH_HEADER": "Bearer YOUR_TOKEN"
      }
    }
  }
}

FAQ

How does it handle GraphQL introspection?
The server automatically introspects the GraphQL API to generate tools. You can pre-generate and cache schemas using the 'introspect' command for faster startup times.
Can it handle authentication?
Yes, it supports authentication through environment variables like GRAPHQL_AUTH_HEADER. Custom headers can be configured with GRAPHQL_HEADER_* prefixes.

Compare mcp-graphql-forge with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.