Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Enables AI agents to connect to any GraphQL endpoint, introspect schemas, and execute queries or mutations through auto-generated tools.

README.md

GraphQL MCP Server

![npm](https://www.npmjs.com/package/@supernova123/graphql-mcp-server) ![License: MIT](https://opensource.org/licenses/MIT) ![Glama](https://glama.ai/mcp/servers/friendlygeorge/graphql-mcp-server)

MCP server for GraphQL — schema introspection, auto-generated tools, query/mutation execution for Claude, Cursor, and AI agents.

What It Does

Connects to any GraphQL endpoint and gives AI agents the ability to:

  • Introspect schemas — discover all types, queries, mutations, and subscriptions
  • Execute queries and mutations — raw GraphQL strings or typed field-based calls
  • Search and explore — find types, fields, and arguments across the schema
  • Manage connections — switch endpoints, configure auth, cache schemas

Quick Start

npx @supernova123/graphql-mcp-server

Set your endpoint via environment variable:

GRAPHQL_ENDPOINT=https://your-api.com/graphql npx @supernova123/graphql-mcp-server

Or configure at runtime with the connect_endpoint tool.

Tools (20)

Connection & Configuration

| Tool | Description | |------|-------------| | connect_endpoint | Set or change the active GraphQL endpoint | | set_auth_token | Configure Bearer token authentication | | set_basic_auth | Configure HTTP Basic authentication | | set_headers | Replace custom HTTP headers | | add_header | Add/update a single header | | remove_header | Remove a header | | get_connection_status | Show endpoint config, auth state, and schema cache |

Schema Introspection

| Tool | Description | |------|-------------| | introspect_schema | Fetch the full schema via introspection | | list_types | List all types (filter by kind or name) | | describe_type | Get full details of a single type | | list_queries | List all root query fields | | list_mutations | List all root mutation fields | | list_subscriptions | List all root subscription fields | | describe_field | Get full details of a field | | search_schema | Search types and fields by substring |

Execution

| Tool | Description | |------|-------------| | execute_query | Send a raw GraphQL query | | execute_mutation | Send a raw GraphQL mutation | | execute_typed_query | Execute a query by field name (auto-constructed) | | execute_typed_mutation | Execute a mutation by field name (auto-constructed) |

Cache Management

| Tool | Description | |------|-------------| | get_cached_schema | Return the cached introspection result | | clear_cache | Clear schema cache | | reload_schema | Force a fresh introspection |

Environment Variables

| Variable | Description | Default | |----------|-------------|---------| | GRAPHQL_ENDPOINT | GraphQL endpoint URL | (none — must configure at runtime) | | GRAPHQL_AUTH_TOKEN | Bearer token for Authorization header | (none) | | GRAPHQL_BASIC_USER | Basic auth username | (none) | | GRAPHQL_BASIC_PASS | Basic auth password | (none) | | GRAPHQL_TIMEOUT_MS | Request timeout in milliseconds | 30000 | | GRAPHQL_HEADER_* | Custom headers (e.g. GRAPHQL_HEADER_X_API_KEY=secret) | (none) |

Configuration (Claude Desktop)

{
  "mcpServers": {
    "graphql": {
      "command": "npx",
      "args": ["-y", "@supernova123/graphql-mcp-server"],
      "env": {
        "GRAPHQL_ENDPOINT": "https://your-api.com/graphql",
        "GRAPHQL_AUTH_TOKEN": "***"
      }
    }
  }
}

Features

  • No external GraphQL library — minimal dependency surface, works at the HTTP layer
  • Schema caching — introspect once, reuse across tool calls
  • Retry with backoff — transient errors (5xx, 429, timeouts) are retried automatically
  • Output sanitization — ANSI stripping and length capping prevent prompt injection
  • Type-safe — TypeScript with Zod validation on all tool inputs
  • Auth flexibility — Bearer tokens, Basic auth, or arbitrary HTTP headers

Development

npm install
npm run build
npm test

Blog Posts

Real data from building and running this server:

License

MIT

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use AI & ML servers.