Skip to main content
Glama
colofonbrigade

graphql-mcp

graphql-mcp

MCP server that exposes any GraphQL API as a single graphql tool. Works with Claude Code, Cursor, and any MCP client.

Setup

uv sync

Related MCP server: graphql-mcp-server

Configuration

All configuration is via environment variables:

Variable

Required

Description

GRAPHQL_API_URL

Yes

The GraphQL endpoint URL

GRAPHQL_API_KEY

Yes

API key or token for authentication

GRAPHQL_AUTH_HEADER

No

Header name for auth (default: Authorization)

GRAPHQL_TIMEOUT

No

Request timeout in seconds (default: 30)

Usage with Claude Code

claude --mcp-config mcp.json

Where mcp.json contains:

{
  "mcpServers": {
    "graphql": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/graphql-mcp", "python", "main.py"],
      "env": {
        "GRAPHQL_API_URL": "https://api.example.com/graphql",
        "GRAPHQL_API_KEY": "your-api-key"
      }
    }
  }
}

Tool

graphql

Execute any GraphQL query or mutation.

Parameters:

  • query (string, required) — A GraphQL query or mutation document

  • variables (object, optional) — GraphQL variables

Examples:

# Query
query { viewer { id name email } }

# Mutation with variables
mutation($id: String!, $body: String!) {
  commentCreate(input: { issueId: $id, body: $body }) {
    success
  }
}

# Introspection
query { __type(name: "Mutation") { fields { name } } }
Tool DescriptionsC

Average 2.9/5 across 1 of 1 tools scored.

Server CoherenceA
Disambiguation5/5

With only one tool, there is no possibility of confusion between tools. The tool's purpose is clear: execute GraphQL queries or mutations.

Naming Consistency4/5

The single tool name 'graphql' is not a verb_noun pattern, but there is no inconsistency to penalize. It is readable and directly reflects the tool's function.

Tool Count4/5

One tool feels thin compared to a typical MCP server, but for a generic GraphQL executor, a single tool can be sufficient. It is slightly under the standard range but reasonable.

Completeness5/5

The tool can execute any GraphQL query or mutation, including introspection, covering the full domain of GraphQL operations. There are no obvious gaps for the server's stated purpose.

Available Tools

1 tool
graphqlC

Execute a GraphQL query or mutation.

Args: query: A GraphQL query or mutation document. variables: Optional GraphQL variables object.

ParametersJSON Schema
NameRequiredDescriptionDefault
queryYes
variablesNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are present, so the description must fully disclose behavior. It mentions that mutations can be executed, implying potentially destructive operations, but it does not warn about side effects, permissions, error conditions, or reversibility. This is a substantial transparency gap for a mutation-capable tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is exceptionally concise, featuring a one-line summary followed by a structured Args block. Every word earns its place, with no redundancy or filler, making it easy to parse and understand.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Although the tool has an output schema to cover return values, the description misses critical context for a mutation-capable tool: it does not mention side effects, required permissions, or scenarios where mutations should be avoided. The lack of annotations amplifies this incompleteness, leaving the agent without sufficient safety information.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has zero description coverage, but the description explicitly explains both parameters: 'query' as a GraphQL query or mutation document, and 'variables' as an optional GraphQL variables object. This adds meaning beyond the schema's property titles, though it lacks deeper detail such as formatting, constraints, or examples.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool executes a GraphQL query or mutation, providing a specific verb (execute) and resource (GraphQL). It is unambiguous and easy to understand, though it does not differentiate from siblings because none are provided.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description offers no guidance on when to use this tool versus alternatives, nor any exclusions or prerequisites. It simply states what the tool does without providing usage context, so an agent receives no decision-making support.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

A
license - permissive license
B
quality
D
maintenance

Maintenance

0Releases (12mo)

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Tools

Related MCP Connectors

Related MCP Servers

View all related MCP servers

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/colofonbrigade/linear-graphql-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server