Refined MCP server for GitHub
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 powerful interfaces: GitHub GraphQL and Code Search, wrapped with smart abstractions.
This project does 3 things differently:
- Powerful interfaces — exposes GraphQL and Code Search instead of atomized endpoints. LLMs already understand these APIs.
- YAML output — makes nested data and file content readable without escaping.
- Clean abstractions —
ghhandles authentication and low-level details. And LLMs know how to use its--jqoption to 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.
Metadata
Release files for gh-mcp 0.3.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gh_mcp-0.3.8-py3-none-any.whl | Python 3 | none | any | Details |
Release files / gh_mcp-0.3.8-py3-none-any.whl
| Download URL | gh_mcp-0.3.8-py3-none-any.whl |
|---|---|
| Size | 9.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1b0de205c358e56a2464611d4a736e64810059044c3f6a0b8107b5bcb76f6b5d
|
|
BLAKE2b-256 checksum How to use checksums |
6fc6ddd6f1b12118ae0535f87d83b5c32e025ffdf2e4cfe95cf114736fb1852b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 28, 2026.
Transparency log