GraphQL Forge
MCP that can proxy any GraphQL API and expose graphql operations as mcp tools.
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
Maintainer
Works with
Installation
NPM
npx -y @toolprint/mcp-graphql-forgeManual Installation
npx -y @toolprint/mcp-graphql-forgeConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
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
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-forgeSet 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"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 introspectAdd 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"
}
}
}
}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.
GraphQL Forge Alternatives — Similar APIs Servers
Looking for alternatives to GraphQL Forge? Here are other popular apis servers you can use with Claude, Cursor, and VS Code.
Kong
★ 43.4k🦍 The API and AI Gateway
API Mega List
★ 5.4kThis GitHub repo is a powerhouse collection of APIs you can start using immediately to build everything from simple automations to full-scale applications. One of the most valuable API lists on GitHub—period. 💪
Fetch
★ 5.4kFetch web content and convert to markdown for AI consumption
Fusio
★ 2.1kSelf-Hosted API Management for Builders
Korean Law
★ 1.8k국가법령정보MCP v4.0 | 법제처 41개 API → 17개 MCP 도구. 법령·판례·조례 검색 + LLM 환각 방지 인용검증 + 조문 영향 그래프(impact_map) + 시점 비교 자동 diff(time_travel) + 시민 5단계 실행 가이드(action_plan) | 41 Korean legal APIs → 17 MCP tools
RuleGo
★ 1.5k⛓️RuleGo is a lightweight, high-performance, embedded, next-generation component orchestration rule engine framework for Go.
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.
Set Up GraphQL Forge in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
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.