Text-to-GraphQL

Text-to-GraphQL

Transform natural language queries into GraphQL queries using an AI agent. Provides schema management, query validation, execution, and history tracking.

623

0

5 Tools

Signed
Built by Docker
Requires Secrets
Add to Docker Desktop

Version 4.43 or later needs to be installed to add the server automatically

About

Text-to-GraphQL MCP Server

Transform natural language queries into GraphQL queries using an AI agent. Provides schema management, query validation, execution, and history tracking.

What is an MCP Server?

Characteristics

AttributeDetails
Docker Imagemcp/text-to-graphql
AuthorArize-ai
Repositoryhttps://github.com/Arize-ai/text-to-graphql-mcp
Dockerfilehttps://github.com/Arize-ai/text-to-graphql-mcp/blob/main/Dockerfile
Docker Image built byDocker Inc.
Docker Scout Health ScoreDocker Scout Health Score
Verify SignatureCOSIGN_REPOSITORY=mcp/signatures cosign verify mcp/text-to-graphql --key https://raw.githubusercontent.com/docker/keyring/refs/heads/main/public/mcp/latest.pub
LicenceOther

Available Tools (5)

Tools provided by this ServerShort Description
execute_graphql_queryExecute a GraphQL query and optionally visualize the results
generate_graphql_queryGenerate a GraphQL query from natural language description
get_query_examplesGet example queries to help users understand what they can ask for
get_query_historyRetrieve the history of all queries
validate_graphql_queryValidate and update a GraphQL query

Tools Details

Tool: execute_graphql_query

Execute a GraphQL query and optionally visualize the results

ParametersTypeDescription
graphql_querystringThe GraphQL query to execute
history_idstringoptionalOptional history ID to update
natural_language_querystringoptionalThe original natural language query for context
variablesstringoptionalOptional variables for the GraphQL query

Tool: generate_graphql_query

Generate a GraphQL query from natural language description

ParametersTypeDescription
querystringNatural language description of the desired GraphQL query
history_idstringoptionalOptional history ID to associate with this query

Tool: get_query_examples

Get example queries to help users understand what they can ask for

Returns: JSON string containing example queries

Tool: get_query_history

Retrieve the history of all queries

Returns: JSON string containing all query history

Tool: validate_graphql_query

Validate and update a GraphQL query

ParametersTypeDescription
graphql_querystringThe GraphQL query to validate
history_idstringoptionalOptional history ID to update
natural_language_querystringoptionalThe original natural language query for context

Use this MCP Server

{
  "mcpServers": {
    "text-to-graphql": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "OPENAI_API_KEY",
        "-e",
        "GRAPHQL_ENDPOINT",
        "-e",
        "GRAPHQL_API_KEY",
        "mcp/text-to-graphql"
      ],
      "env": {
        "OPENAI_API_KEY": "sk-proj-xxx",
        "GRAPHQL_ENDPOINT": "https://your-graphql-api.com/graphql",
        "GRAPHQL_API_KEY": "your_api_key_here"
      }
    }
  }
}

Why is it safer to run MCP Servers with Docker?

Manual installation

You can install the MCP server using:

Installation for

Related servers