This project is a Node.js/TypeScript server that implements the Model Context Protocol (MCP). It acts as a bridge, allowing MCP clients (like Cursor)
If you already use Mcp4gql, the mcp4gql mcp server is the piece that lets your assistant work with it directly. This project is a Node.js/TypeScript server that implements the Model Context Protocol (MCP). It acts as a bridge, allowing MCP clients (like Cursor) to interact with a target GraphQL API.
The toolset is worth reading before you wire it up, because it tells you what the integration is really for:
introspectGraphQLSchema — Fetches the target GraphQL API schema using introspectionexecuteGraphQLOperation — Executes arbitrary GraphQL queries or mutations against the target API, taking query, optional variables, and optional operationName as inputGRAPHQL_ENDPOINT — The URL of the target GraphQL APIAUTH_TOKEN — A bearer token for an optional Authorization: Bearer header for authenticating with the GraphQL APICursor — 1. Go to Cursor MCP Settings (Cursor > Settings > Cursor Settings > MCP) 2. Go to + Add new global MCP server 3. Add the following to your Cursor MCPSetup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.
Configuration is passed through the environment: GRAPHQL_ENDPOINT, AUTH_TOKEN, YOUR_GRAPHQL_ENDPOINT_URL, YOUR_OPTIONAL_AUTH_TOKEN. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.
Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Mcp4gql's toolset — introspectGraphQLSchema, executeGraphQLOperation, GRAPHQL_ENDPOINT and 2 more — is a fair guide to whether it matches your workflow. It is maintained by jorgeraad; worth a glance at recent repository activity before you build anything load-bearing on it.
We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.
| Tool | What it does |
|---|---|
| introspectGraphQLSchema | Fetches the target GraphQL API schema using introspection. |
| executeGraphQLOperation | Executes arbitrary GraphQL queries or mutations against the target API, taking query, optional variables, and optional operationName as input. |
| GRAPHQL_ENDPOINT | The URL of the target GraphQL API. |
| AUTH_TOKEN | A bearer token for an optional Authorization: Bearer <token> header for authenticating with the GraphQL API. |
| Cursor | 1. Go to Cursor MCP Settings (Cursor > Settings > Cursor Settings > MCP) 2. Go to + Add new global MCP server 3. Add the following to your Cursor MCP configuration: |
{
"mcpServers": {
"mcp4gql": {
"command": "npx",
"type": "stdio",
"args": ["-y", "mcp4gql"],
"env": {
"GRAPHQL_ENDPOINT": "YOUR_GRAPHQL_ENDPOINT_URL",
"AUTH_TOKEN": "YOUR_OPTIONAL_AUTH_TOKEN"
}
}
}
}Configuration as documented by the project. Restart the client after saving.
| Variable | Description | Required |
|---|---|---|
| GRAPHQL_ENDPOINT | Configuration value read at startup. | Optional |
| AUTH_TOKEN | Credential the server authenticates with. | Yes |
| YOUR_GRAPHQL_ENDPOINT_URL | Endpoint or connection string the server talks to. | Yes |
| YOUR_OPTIONAL_AUTH_TOKEN | Credential the server authenticates with. | Yes |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.