GraphQL Forge

v1.0.0APIsstable

MCP that can proxy any GraphQL API and expose graphql operations as mcp tools.

graphqlgraphql-servermcpmcp-servermcp-to-graphql
Share:
18
Stars
0
Downloads
0
Weekly
0/5

What is GraphQL Forge?

GraphQL Forge is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp that can proxy any graphql api and expose graphql operations as mcp tools.

MCP that can proxy any GraphQL API and expose graphql operations as mcp tools.

This server falls under the APIs and Developer Tools categories on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • MCP that can proxy any GraphQL API and expose graphql operat

Use Cases

Proxy GraphQL APIs dynamically
Expose GraphQL ops as MCP tools
toolprint

Maintainer

LicenseApache 2.0
Languagetypescript
Versionv1.0.0
UpdatedApr 15, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y @toolprint/mcp-graphql-forge

Manual Installation

npx -y @toolprint/mcp-graphql-forge

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use GraphQL Forge

MCP GraphQL Forge is an MCP server that acts as a dynamic proxy for any GraphQL API, automatically introspecting the schema and exposing every query and mutation as a named MCP tool that AI assistants can call directly. It handles circular references, generates parameter-validated tool definitions, and selects required fields automatically to prevent incomplete query errors. Developers use it to give Claude or other AI assistants full access to any GraphQL backend — including GitHub's API, internal services, or third-party platforms — without writing custom integration code.

Prerequisites

  • Node.js 18+ installed for running via npx
  • The URL of a GraphQL API endpoint that supports introspection
  • An authorization token or API key for the GraphQL API if it requires authentication
  • An MCP-compatible client such as Claude Desktop, Cursor, or Windsurf
1

Install via npm (optional) or use via npx

You can run MCP GraphQL Forge directly via npx without a global install, or install it globally for repeated use.

# Run directly via npx (no install required):
npx -y @toolprint/mcp-graphql-forge

# Or install globally:
npm install -g @toolprint/mcp-graphql-forge
2

Set your GraphQL endpoint and authentication

Export the GRAPHQL_ENDPOINT environment variable pointing to your API. For authenticated APIs, set GRAPHQL_AUTH_HEADER to the full Authorization header value. For custom headers, use the GRAPHQL_HEADER_* prefix pattern.

export GRAPHQL_ENDPOINT="https://api.github.com/graphql"
export GRAPHQL_AUTH_HEADER="Bearer YOUR_GITHUB_TOKEN"

# For custom headers:
export GRAPHQL_HEADER_X_API_KEY="your-api-key"
3

Test schema introspection

Run the introspect command to verify the server can reach your GraphQL endpoint and parse its schema. This outputs the discovered operations that will become MCP tools.

GRAPHQL_ENDPOINT="https://api.github.com/graphql" GRAPHQL_AUTH_HEADER="Bearer YOUR_TOKEN" npx -y @toolprint/mcp-graphql-forge introspect
4

Add the server to your MCP client configuration

Register MCP GraphQL Forge in your claude_desktop_config.json with the endpoint and auth header as environment variables. Each GraphQL operation becomes a tool named query_<fieldName> or mutation_<fieldName>.

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

Restart your MCP client and verify the generated tools

Restart your client. The tools list should include one entry per GraphQL operation in the schema (e.g. query_viewer, query_repository, mutation_createIssue for the GitHub API). Test with a simple query tool call.

GraphQL Forge Examples

Client configuration

Example claude_desktop_config.json entry for MCP GraphQL Forge proxying the GitHub GraphQL API.

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

Prompts to try

Example prompts for interacting with a GraphQL API through MCP GraphQL Forge connected to the GitHub API.

- "Query my GitHub viewer profile including login, name, and bio"
- "Fetch the 5 most recent issues from the facebook/react repository"
- "Get the pull request count and star count for the torvalds/linux repository"
- "Search GitHub repositories for 'mcp server' with more than 100 stars"
- "List the open pull requests in my organization's main repository"

Troubleshooting GraphQL Forge

Introspection fails with 'introspection is disabled' error

Some production GraphQL APIs disable schema introspection for security reasons. If you have access to the schema SDL file, use the SCHEMA_PATH environment variable to point to a local schema file and run with --no-introspection flag to skip live introspection.

Authentication errors when calling GraphQL operations

Verify the GRAPHQL_AUTH_HEADER value includes the full header value including the 'Bearer ' prefix if required. For APIs using API keys in custom headers (e.g. X-API-Key), use the GRAPHQL_HEADER_X_API_KEY pattern instead of GRAPHQL_AUTH_HEADER.

Generated tools are missing fields or return incomplete data

The forge uses intelligent field selection to avoid circular reference loops. For deeply nested types, the tool may select a minimal field set. Try specifying the exact fields you need in your prompt, or use the schema cache (SCHEMA_PATH) with a pre-generated schema that includes your preferred field selections.

Frequently Asked Questions about GraphQL Forge

What is GraphQL Forge?

GraphQL Forge is a Model Context Protocol (MCP) server that mcp that can proxy any graphql api and expose graphql operations as mcp tools. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install GraphQL Forge?

Install via npm with the command: npx -y @toolprint/mcp-graphql-forge. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with GraphQL Forge?

GraphQL Forge works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is GraphQL Forge free to use?

Yes, GraphQL Forge is open source and available under the Apache 2.0 license. You can use it freely in both personal and commercial projects.

Browse More APIs MCP Servers

Explore all apis servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "mcp-graphql-forge": { "command": "npx", "args": ["-y", "@toolprint/mcp-graphql-forge"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use GraphQL Forge?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides