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.
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:
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 READMEquery_userExecute GraphQL query to retrieve a user by ID
query_articlesExecute GraphQL query to retrieve articles with optional filters
mutation_createUserExecute GraphQL mutation to create a new user
query_postsExecute GraphQL query to retrieve blog posts with optional filters
query_postExecute GraphQL query to retrieve a single post by slug
query_authorsExecute GraphQL query to retrieve all authors
mutation_createPostExecute GraphQL mutation to create a new blog post
mutation_publishPostExecute GraphQL mutation to publish a post by ID
query_productsExecute GraphQL query to retrieve products with optional filters
mutation_productCreateExecute GraphQL mutation to create a new product
query_ordersExecute GraphQL query to retrieve orders with optional filters
mutation_orderUpdateExecute GraphQL mutation to update an existing order
Comparable tools
Installation
Installation
Recommended Method (Smithery)
npx @smithery/cli install @toolprint/mcp-graphql-forge --client claudeAlternative Methods
# npm install
npm install -g @toolprint/mcp-graphql-forgeClaude 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
Last updated · Auto-generated from public README + GitHub signals.