Turn any GraphQL API into MCP tools. Zero config, zero code.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag โ we're steadily working through the catalog.
๐ก Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
Turn any GraphQL API into MCP tools โ zero config, zero code.
Point graphql-to-mcp at a GraphQL endpoint and it auto-generates one MCP tool per query/mutation via introspection. Works with Claude Desktop, Cursor, Windsurf, and any MCP client.
Try it now โ no install needed:
Or add to Claude Desktop / Cursor config:
That's it. Claude can now query countries, continents, and languages.
input objects are flattened for better LLM accuracy--schema-cache for faster startupdelete*, remove*, etc.) and warn or block themInputObject types are flattened into simple key-value parameters (e.g., input.name โ input_name)LLMs are significantly better at filling flat key-value parameters than deeply nested JSON objects. By flattening InputObject types, we get:
| Option | Description | Default |
|---|---|---|
--bearer <token> | Bearer token auth | โ |
--api-key <name:value:in> | API key auth | โ |
-H, --header <name:value> | Custom header (repeatable) | โ |
--include <pattern> | Include only matching operations | all |
--exclude <pattern> | Exclude matching operations | none |
--prefix <name> | Tool name prefix | โ |
--timeout <ms> | Request timeout | 30000 |
--max-retries <n> | Retry on 429/5xx | 3 |
--transport <stdio|sse> | MCP transport | stdio |
--schema-cache <path> | Save/load introspection cache | โ |
--force-refresh | Ignore cache, re-introspect | false |
--mutation-safety <mode> | warn | safe | unrestricted | warn |
GraphQL APIs can return large payloads that overwhelm LLM context windows. graphql-to-mcp automatically:
Introspection queries can be slow on large schemas. Use --schema-cache to save the introspection result locally:
The cache file stores the endpoint URL and timestamp. If you point at a different endpoint, it automatically re-introspects.
By default, graphql-to-mcp detects destructive mutations and adds warnings to their descriptions. This helps LLMs understand the risk before executing them.
Detected patterns: delete*, remove*, drop*, clear*, truncate*, destroy*, purge*, reset* (case-insensitive).
| Mode | Behavior |
|---|---|
warn (default) | Adds "DESTRUCTIVE:" prefix to dangerous mutation descriptions |
safe | Completely excludes dangerous mutations from the tool list |
unrestricted | No filtering or warnings (previous behavior) |
Pair with mcp-openapi to give Claude access to both REST and GraphQL APIs:
MIT
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/graphql)<a href="https://allmcps.com/mcp/graphql"><img src="https://allmcps.com/api/badge/graphql?style=directory" alt="Graphql on AllMCPs" /></a>