Refined MCP server for GitHub GraphQL API
Project description
gh-mcp
Refined MCP server for GitHub GraphQL API.
If you haven't read the article The second wave of MCP: Building for LLMs, not developers by Vercel, I highly recommend checking it out to understand why we're building this project.
GitHub's official MCP Server exposes dozens of low-level tools that bloat token usage and are mostly impractical for LLMs. gh-mcp achieves the best of both worlds by providing a single, powerful interface: GitHub GraphQL, wrapped with smart abstractions.
This project does 3 things differently:
- One powerful tool — exposes GraphQL instead of atomized endpoints. LLMs already understand GraphQL.
- YAML output by default — makes nested data and file content readable without escaping.
- Clean abstractions — handles authentication and low-level details. LLMs know how to use
--jqto filter.
Swapping in gh-mcp delivers better performance at lower cost for any GitHub interactions.
Installation
with uv:
uvx mcp-hmr
MCP config:
{
"mcpServers": {
"gh": {
"command": "uvx",
"args": ["gh-mcp"]
}
}
}
If you prefer serving it via streamable-http:
uvx gh-mcp --http
This project requires
ghCLI to be installed and authenticated. Please follow the instructions at cli.github.com to set it up. And then you can login viagh auth login. Check thatgh auth statusworks before using this MCP server.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gh_mcp-0.2.2-py3-none-any.whl.
File metadata
- Download URL: gh_mcp-0.2.2-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2373065870e31bd152e21cb7b8f4f4bffbb87eaa2b07cc81230516d1192e66ac
|
|
| MD5 |
9b64c79e071be794f1477f35b118ff8c
|
|
| BLAKE2b-256 |
45b26359b75d0fac0fbf31d34c028d9cc9598d7788852fb0586196b61dd5da34
|
Provenance
The following attestation bundles were made for gh_mcp-0.2.2-py3-none-any.whl:
Publisher:
ci.yml on promplate/refined-mcp-servers
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gh_mcp-0.2.2-py3-none-any.whl -
Subject digest:
2373065870e31bd152e21cb7b8f4f4bffbb87eaa2b07cc81230516d1192e66ac - Sigstore transparency entry: 638009079
- Sigstore integration time:
-
Permalink:
promplate/refined-mcp-servers@61a94e2f315a572a1940f3edb8069c23e36e3f90 -
Branch / Tag:
refs/tags/gh-mcp/v0.2.2 - Owner: https://github.com/promplate
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@61a94e2f315a572a1940f3edb8069c23e36e3f90 -
Trigger Event:
push
-
Statement type: