Github Graphql MCP Server logo

Github Graphql MCP Server

by QuentinCody

Runs arbitrary GitHub GraphQL queries and mutations through one MCP tool using a personal access token.

Install Github Graphql MCP Server

Pick your client, then add it in one click or paste the config.

No confirmed install command yet

We only publish a config when the install details come from the project itself — its README, its docs, or a verified owner. We haven’t found those for QuentinCody/github-graphql-mcp-server, and we’d rather show nothing than a guess you’d paste into your client.

Open setup steps on GitHub

Overview

QuentinCody/github-graphql-mcp-server MCP server exposes GitHub's GraphQL API through a single MCP tool for arbitrary queries and mutations. It accepts GraphQL variables, sends authenticated requests with a GitHub personal access token, and reports API or query errors. Use it when an agent needs flexible access to repository, issue, pull request, user, or other GitHub data without a fixed tool set. The project is a Python application requiring Python 3.10 or later and can be configured with Claude Desktop.

Use cases

  • Query repository metadata with custom GraphQL fields
  • Search GitHub repositories using GraphQL variables
  • Retrieve user profiles and repository information
  • Run GitHub GraphQL mutations from an MCP client

Key features

  • Arbitrary GitHub GraphQL queries
  • GitHub GraphQL mutations
  • GraphQL variable support
  • Error handling and reporting
  • Single MCP tool interface

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 2d ago

Recent health check succeeded.

8/12 checks healthy over the last 84d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars13Stargazers on the source repository.
Last commit1y agoMost recent push to the default branch.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Github Graphql MCP Server works

What QuentinCody/github-graphql-mcp-server MCP server does

QuentinCody/github-graphql-mcp-server MCP server gives an MCP-compatible client one tool for sending GraphQL operations to GitHub's API. The operation can be a query for reading data or a mutation for changing data. Because the tool accepts arbitrary GraphQL, the requested fields and resource types are determined by the operation rather than by a small collection of predefined commands.

The repository documentation demonstrates operations for reading repository details, searching repositories, and retrieving user information. The same approach can be used for other resources supported by GitHub's GraphQL schema, provided the token has the required permissions and the operation is valid.

How it works

The Python process reads the GitHub token from the GITHUB_TOKEN environment variable and uses it to authenticate requests to GitHub's GraphQL API. A client sends a GraphQL document through the MCP tool, optionally alongside a JSON object containing variables. The server forwards the operation and returns the API response, including error information when GitHub rejects the request or the GraphQL document is invalid.

This design leaves schema selection and query construction to the calling agent. For example, a repository query can accept owner and name variables, while a search query can accept a search expression and result count.

Setup and configuration

QuentinCody/github-graphql-mcp-server requires Python 3.10 or newer, a GitHub personal access token, and the dependencies listed in requirements.txt. The documented installation path is to clone the repository, create and activate a virtual environment, and run pip install -r requirements.txt.

Run the script with the token in its environment:

bash
GITHUB_TOKEN=your_github_token_here python github_graphql_mcp_server.py

For Claude Desktop, configure the server with the absolute path to the virtual environment's Python executable and the absolute path to github_graphql_mcp_server.py. The example configuration also sets the repository as the process working directory and supplies GITHUB_TOKEN in the server environment. Restart Claude Desktop after changing its configuration.

Tools and capabilities

The server exposes one MCP tool rather than separate tools for repositories, issues, pull requests, or users. That tool supports:

  • Arbitrary GitHub GraphQL queries
  • GraphQL mutations
  • Variables supplied separately from the operation
  • Error reporting for failed requests or invalid operations

This makes the server suitable when an agent needs fields or operations beyond a fixed, repository-specific tool catalog. Query validity, available fields, permissions, and mutation behavior depend on GitHub's current GraphQL schema and the supplied token.

Limitations and notes

A valid GitHub token is required for the documented setup. Tokens must have permissions appropriate to the requested operation. GitHub rate limits can restrict repeated requests, even when the MCP server itself is running correctly.

Common setup failures include using an incorrect Python path, skipping dependency installation, omitting GITHUB_TOKEN, or sending a query that does not match GitHub's schema. The README recommends checking server logs, confirming the virtual environment is active, using absolute paths in Claude Desktop, and verifying token permissions when troubleshooting. The project is licensed under MIT.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Github Graphql MCP Server

QuentinCody/github-graphql-mcp-server is an MCP server that connects MCP clients to GitHub's GraphQL API through one tool. It supports arbitrary GraphQL queries and mutations, accepts variables for operations, and reports API or query errors. A GitHub personal access token and Python 3.10 or newer are required for the documented setup.

Install it by cloning the repository, creating an optional Python virtual environment, activating it, and running `pip install -r requirements.txt`. The server requires Python 3.10 or newer. Set `GITHUB_TOKEN` before starting `github_graphql_mcp_server.py`.

Configure it by adding a server entry that points to the virtual environment's Python executable and `github_graphql_mcp_server.py`, then set `GITHUB_TOKEN` in the entry's environment. Use absolute paths and restart Claude Desktop after saving the configuration.

You can query any resource and fields supported by GitHub's GraphQL API, subject to token permissions and schema validity. The README demonstrates repository details, repository search, and user information, and the single tool also accepts GraphQL mutations.

It requires `GITHUB_TOKEN`, which supplies the GitHub personal access token used for API authentication. The token must have the permissions needed by the requested query or mutation.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGithub Graphql MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/quentincody-github-graphql-mcp-server?style=directory)](https://allmcps.com/mcp/quentincody-github-graphql-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/quentincody-github-graphql-mcp-server"><img src="https://allmcps.com/api/badge/quentincody-github-graphql-mcp-server?style=directory" alt="Github Graphql MCP Server on AllMCPs" /></a>