Text To Graphql MCP Server

Transform natural language queries into GraphQL queries using an MCP (Model Context Protocol) server that integrates seamlessly with AI assistants

Local serverstdioPython

What is the Text To Graphql MCP MCP server?

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.

What Text To Graphql MCP does

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.

Tools it exposes

Once connected, the assistant can call these 5 tools directly:

  • 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

Installing the text to graphql mcp mcp server

The 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.

Configuration

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.

Requirements

UV is a fast Python package installer and resolver. Install it first: macOS/Linux: Windows: Find your UV installation path: ```bash

Where it fits

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.

Practical notes

  • This server runs locally, so it operates with whatever access your machine and its credentials already have. Scope that deliberately rather than by default.
  • It will not start until its required credentials are present, so set those before wondering why the tools never appear.
  • Maintained by Arize-ai, written in Python.
  • MCP clients ask for confirmation before each tool call by default. Keep that on while you learn what the text to graphql mcp mcp server actually does with your data.
  • Every entry in this directory is reviewed by hand before it goes live, and details are checked against the project's own documentation.

Available tools

ToolWhat it does
generate_graphql_queryThe generate_graphql_query tool exposed by this server.
validate_graphql_queryThe validate_graphql_query tool exposed by this server.
execute_graphql_queryThe execute_graphql_query tool exposed by this server.
get_query_historyThe get_query_history tool exposed by this server.
get_query_examplesGet example queries to understand the system's capabilities.

How to install the Text To Graphql MCP MCP server

{
  "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.

Configuration

UV is a fast Python package installer and resolver. Install it first: macOS/Linux: Windows: Find your UV installation path: ```bash

VariableDescriptionRequired
OPENAI_API_KEYCredential the server authenticates with.Yes
GRAPHQL_ENDPOINTConfiguration value read at startup.Optional
GRAPHQL_API_KEYCredential the server authenticates with.Yes
GRAPHQL_AUTH_TYPEConfiguration value read at startup.Optional

Example prompts to try

  • Use Text To Graphql MCP to generate graphql query.
  • Use Text To Graphql MCP to validate graphql query.
  • Use Text To Graphql MCP to execute graphql query.

Frequently asked questions

It connects Text To Graphql MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 5 tools (generate_graphql_query, validate_graphql_query, execute_graphql_query, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Text To Graphql MCP directly.