Transform natural language queries into GraphQL queries using an MCP (Model Context Protocol) server that integrates seamlessly with AI assistants
Text To Graphql MCP becomes available to MCP clients through the text to graphql mcp mcp server. Transform natural language queries into GraphQL queries using an MCP (Model Context Protocol) server that integrates seamlessly with AI assistants like Claude Desktop and Cursor.
Transform natural language queries into GraphQL queries using an MCP (Model Context Protocol) server that integrates seamlessly with AI assistants like Claude Desktop and Cursor.
Once connected, the assistant can call these 5 tools directly:
generate_graphql_query — The generate_graphql_query tool exposed by this servervalidate_graphql_query — The validate_graphql_query tool exposed by this serverexecute_graphql_query — The execute_graphql_query tool exposed by this serverget_query_history — The get_query_history tool exposed by this serverget_query_examples — Get example queries to understand the system's capabilitiesThe server is distributed via PyPI as text-to-graphql-mcp, so most clients can run it without a manual build step. Add it to your MCP client's configuration and restart the client to pick it up — the copy-paste configs for Claude Desktop, Claude Code and Cursor are on this page.
Before the server will start you need to supply 4 environment variables: OPENAI_API_KEY, GRAPHQL_ENDPOINT, GRAPHQL_API_KEY, GRAPHQL_AUTH_TYPE. Keep credentials in your client's env block or a secrets manager rather than committing them.
UV is a fast Python package installer and resolver. Install it first: macOS/Linux: Windows: Find your UV installation path: ```bash
Developer-tool servers are usually the first ones people connect, because they turn "help me with this code" into an assistant that can actually read the repo and act on it. Text To Graphql MCP sits in that group, and the shape of its toolset — generate_graphql_query, validate_graphql_query, execute_graphql_query among others — tells you what it is really for. Worth comparing against the other developer tools servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.
| Tool | What it does |
|---|---|
| generate_graphql_query | The generate_graphql_query tool exposed by this server. |
| validate_graphql_query | The validate_graphql_query tool exposed by this server. |
| execute_graphql_query | The execute_graphql_query tool exposed by this server. |
| get_query_history | The get_query_history tool exposed by this server. |
| get_query_examples | Get example queries to understand the system's capabilities. |
{
"mcpServers": {
"text-to-graphql": {
"command": "uv",
"args": [
"--directory",
"/path/to/text-to-graphql-mcp",
"run",
"text-to-graphql-mcp"
],
"env": {
"PATH": "/path/to/uv/bin:/usr/bin:/bin",
"OPENAI_API_KEY": "your_openai_api_key_here",
"GRAPHQL_ENDPOINT": "https://your-graphql-api.com/graphql",
"GRAPHQL_API_KEY": "your_api_key_here",
"GRAPHQL_AUTH_TYPE": "bearer"
}
}
}
}Configuration as documented by the project. Restart the client after saving.
UV is a fast Python package installer and resolver. Install it first: macOS/Linux: Windows: Find your UV installation path: ```bash
| Variable | Description | Required |
|---|---|---|
| OPENAI_API_KEY | Credential the server authenticates with. | Yes |
| GRAPHQL_ENDPOINT | Configuration value read at startup. | Optional |
| GRAPHQL_API_KEY | Credential the server authenticates with. | Yes |
| GRAPHQL_AUTH_TYPE | Configuration value read at startup. | Optional |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.