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 the JSON block into your client's configuration file under mcpServers, then restart the application.
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
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
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>