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.
MCP Info
| Attribute | Details |
|---|---|
| Docker Image | mcp/text-to-graphql |
| Author | Arize-ai |
| Repository | https://github.com/Arize-ai/text-to-graphql-mcp |
Image Building Info
| Attribute | Details |
|---|---|
| Dockerfile | https://github.com/Arize-ai/text-to-graphql-mcp/blob/69669c1bc00b3f1a5c5af3ff0265778214b10486/Dockerfile |
| Commit | 69669c1bc00b3f1a5c5af3ff0265778214b10486 |
| Docker Image built by | Docker Inc. |
| Docker Scout Health Score | Docker Scout Health Score |
| Verify Signature | COSIGN_REPOSITORY=mcp/signatures cosign verify mcp/text-to-graphql --key https://raw.githubusercontent.com/docker/keyring/refs/heads/main/public/mcp/latest.pub |
| Licence | Other |
Available Tools (5)
| Tools provided by this Server | Short Description |
|---|---|
execute_graphql_query |
Execute a GraphQL query and optionally visualize the results |
generate_graphql_query |
Generate a GraphQL query from natural language description |
get_query_examples |
Get example queries to help users understand what they can ask for |
get_query_history |
Retrieve the history of all queries |
validate_graphql_query |
Validate and update a GraphQL query |
Tools Details
Tool: execute_graphql_query
Execute a GraphQL query and optionally visualize the results
| Parameters | Type | Description |
|---|---|---|
graphql_query |
string |
The GraphQL query to execute |
history_id |
string optional |
Optional history ID to update |
natural_language_query |
string optional |
The original natural language query for context |
variables |
string optional |
Optional variables for the GraphQL query |
Tool: generate_graphql_query
Generate a GraphQL query from natural language description
| Parameters | Type | Description |
|---|---|---|
query |
string |
Natural language description of the desired GraphQL query |
history_id |
string optional |
Optional 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
| Parameters | Type | Description |
|---|---|---|
graphql_query |
string |
The GraphQL query to validate |
history_id |
string optional |
Optional history ID to update |
natural_language_query |
string optional |
The 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"
}
}
}
}