Skip to main content

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:

  1. One powerful tool — exposes GraphQL instead of atomized endpoints. LLMs already understand GraphQL.
  2. YAML output by default — makes nested data and file content readable without escaping.
  3. Clean abstractions — handles authentication and low-level details. LLMs know how to use --jq 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 gh CLI to be installed and authenticated. Please follow the instructions at cli.github.com to set it up. And then you can login via gh auth login. Check that gh auth status works before using this MCP server.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gh_mcp-0.2.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file gh_mcp-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: gh_mcp-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gh_mcp-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3dee23a2e25fa169f18366e3428f15894ff57c346a9d91b6dffab72a06687e5b
MD5 6f09d42fffc735380f53923ee3e20068
BLAKE2b-256 f9ba5ebbdf8f3f8c99f1da3e817c5e9f74cda376c3bf08dc2bfa6cac46c4f6c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for gh_mcp-0.2.0-py3-none-any.whl:

Publisher: ci.yml on promplate/refined-mcp-servers

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page