# mcp-graphql-enhanced [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/letoribo/mcp-graphql-enhanced  
**GitHub Stars:** 7  
**npm Downloads (last month):** 277506  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcp-graphql-enhanced

## Description
GraphQL gateway for LLMs. Handles huge GitHub GraphQL & @neo4j/graphql schemas without crashing

## Tools
Capabilities this server exposes over MCP:

- **introspect-schema** — Retrieves the GraphQL schema or a subset. Use this first to understand the graph structure.
- **query-graphql** — Execute GraphQL queries against the endpoint. By default, mutations are disabled unless `ALLOW_MUTATIONS` is set to `true`.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "mcp-graphql-enhanced": {
    "command": "npx",
    "args": ["-y","@letoribo/mcp-graphql-enhanced"],
    "env": {
      "ENDPOINT": "",
      "ALLOW_MUTATIONS": "",
      "ENABLE_HTTP": ""
    }
  }
}
```

**Requires environment variables:** `ENDPOINT`, `ALLOW_MUTATIONS`, `ENABLE_HTTP` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What mcp-graphql-enhanced does

mcp-graphql-enhanced exposes GraphQL operations through MCP for AI agents and other MCP clients. It is aimed at APIs whose schemas are too large for an unrestricted introspection response, including GitHub's GraphQL API and GraphQL services built with @neo4j/graphql.

The server provides two core tools. `introspect-schema` retrieves the full schema or a selected portion of it. Callers can narrow the result with type names and control recursive traversal with a type-depth setting. `query-graphql` sends GraphQL queries to the configured endpoint. Mutations are blocked by default and require explicit enablement.

## How it works

A single endpoint can be configured with `ENDPOINT`. Multiple comma-separated URLs turn the server into a federated gateway: introspection scans the targets, queries are broadcast, and returned objects are merged with deep deduplication. Structural differences between matching type names are kept distinct rather than silently treated as identical.

The `endpoint` argument on either MCP tool can change the target during an active session. Switching endpoints clears the relevant internal caches while preserving the MCP connection. Tool arguments can also carry request headers such as authorization or API-key values, avoiding a server restart when credentials or targets change.

The server supports STDIO for local MCP clients and HTTP/JSON-RPC for external or browser-based clients. With HTTP enabled, it serves a GraphiQL interface at the root path and at `/graphql` or `/graphiql`. Environment-configured headers are made available in GraphiQL for testing.

## Setup and configuration

Set `ENDPOINT` to a GraphQL URL. For federation, provide several URLs separated by commas. Set `ENABLE_HTTP=true` when HTTP/JSON-RPC access or the browser-based GraphiQL interface is needed; otherwise, the STDIO transport is the relevant connection mode for local MCP clients.

Mutations remain disabled unless `ALLOW_MUTATIONS=true` is set. This default is useful when agents should inspect or read graph data without being granted write operations. Runtime requests may provide headers such as `Authorization` or `X-API-Key` through the tool arguments.

## Tools and capabilities

- `introspect-schema`: Retrieves all or part of a GraphQL schema.
- Scoped introspection: Filters schema exploration by `typeNames` and recursive `typeDepth` values.
- `query-graphql`: Executes GraphQL queries and supports runtime endpoint and header arguments.
- Federated querying: Combines results from multiple configured GraphQL endpoints with object-level deduplication.
- GraphiQL access: Provides a browser IDE when HTTP mode is enabled.
- Cypher visibility: Extracts and cleans `extensions.cypher` output from GraphQL responses when the upstream server includes debug information.

## Limitations and notes

Schema filtering reduces response size but does not make an arbitrarily large request unlimited; choosing broad types or deep traversal can still produce large results. Cypher extraction depends on the GraphQL service returning execution details in response extensions, as supported by implementations such as @neo4j/graphql.

Federation is based on comma-separated endpoint URLs and result aggregation. When identical type names differ across nodes, the server reports them separately to preserve their structural distinctions. Dynamic endpoint changes are session-level tool operations rather than a replacement for configuring reachable GraphQL services.

_Full upstream README: https://allmcps.com/mcp/mcp-graphql-enhanced/readme_

