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 } } }
Install Server
A
license - permissive license
B
quality
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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 Servers

View all related MCP servers

Related MCP Connectors

  • Product Hunt MCP — wraps the Product Hunt GraphQL API v2 (api.producthunt.com)

  • Monday.com MCP — wraps the Monday.com GraphQL API (BYO API key)

  • Gateway between LLM agents and world data through eight tools and a bundled endpoint catalog.

View all MCP Connectors

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