npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

github-pro-mcp

v0.0.2

Published

MCP server providing GitHub API access with hybrid REST + GraphQL support

Readme

GitHub Pro MCP

npm version Docker image

An MCP (Model Context Protocol) server providing comprehensive GitHub API access via hybrid REST + GraphQL — 34 tools across 8 domains.

Features

  • 34 Tools — issues, pull requests, repositories, projects v2, labels, organizations, file operations, server info
  • Hybrid API — REST for CRUD/search, GraphQL for cursor pagination and composite queries
  • Resilient by Default — automatic retry with exponential backoff + jitter, circuit breaker for API outages, proactive rate limit management
  • Structured Logging — multi-level (error/warn/info/debug) stderr output
  • Owner/Repo Pinning — lock the server to a specific owner or repository as a safety guardrail

Installation

npm

# Install globally
npm install -g github-pro-mcp

# Or run directly without installing
npx github-pro-mcp

Docker

Multi-arch images for linux/amd64 and linux/arm64:

docker pull anantanandgupta/github-pro-mcp

Quick Start

Set your GitHub token and run:

export GITHUB_PERSONAL_ACCESS_TOKEN=ghp_your_token_here
github-pro-mcp

Or with Docker:

docker run -i --rm \
  -e GITHUB_PERSONAL_ACCESS_TOKEN=ghp_your_token_here \
  anantanandgupta/github-pro-mcp

Configuration

Required

| Variable | Description | |----------|-------------| | GITHUB_PERSONAL_ACCESS_TOKEN | GitHub PAT with appropriate scopes |

Optional

| Variable | Default | Description | |----------|---------|-------------| | GITHUB_HOST | — | For GHES: https://{hostname}/api/v3 | | GITHUB_OWNER | — | Pin server to a single owner (rejects mismatched calls) | | GITHUB_REPO | — | Pin server to a single repository (rejects mismatched calls) | | GITHUB_RETRY_MAX_ATTEMPTS | 3 | Max retries for transient errors | | GITHUB_RETRY_BACKOFF_MS | 1000 | Initial retry backoff (ms) | | GITHUB_CIRCUIT_BREAKER_THRESHOLD | 5 | Failures before circuit opens | | GITHUB_CIRCUIT_BREAKER_RESET_MS | 30000 | Circuit recovery timeout (ms) | | GITHUB_RETRY_BACKOFF_FACTOR | 2 | Exponential backoff multiplier | | GITHUB_OWNER_TYPE_CACHE_MS | 300000 | Cache TTL for owner type lookups (5 min) | | GITHUB_THROTTLE_ON_RATE_LIMIT | retry | Primary rate limit strategy: retry or queue | | GITHUB_THROTTLE_ON_SECONDARY_RATE_LIMIT | retry | Secondary rate limit strategy: retry or queue | | GITHUB_LOG_LEVEL | error | Log level: error, warn, info, debug |

Usage with opencode

Add to your opencode.json:

{
  "mcp": {
    "github_pro": {
      "type": "local",
      "command": ["node", "path/to/github-pro-mcp/dist/index.js"],
      "environment": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "{env:GITHUB_TOKEN}"
      }
    }
  }
}

For Docker-based usage:

{
  "mcp": {
    "github_pro": {
      "type": "local",
      "command": ["docker", "run", "-i", "--rm", "-e", "GITHUB_PERSONAL_ACCESS_TOKEN", "anantanandgupta/github-pro-mcp"],
      "environment": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "{env:GITHUB_TOKEN}"
      }
    }
  }
}

Tool Reference

| Domain | Tools | Count | |--------|-------|-------| | User & Repos | auth_get_current_login, file_get_content, profile_get, owner_list_repository, file_create_update, file_delete, code_search, repository_search | 8 | | Issues | issue_read, issue_list, issue_search, issue_add_comment, sub_issue_write, issue_create, issue_close, issue_reopen, issue_update, issue_add_label, issue_remove_label | 11 | | Issue Fields | owner_list_issue_field, issue_get_field_value, issue_set_field_value | 3 | | Pull Requests | pull_request_read, pull_request_create, pull_request_merge | 3 | | Organizations | organization_search, owner_list_issue_type, owner_list_organization | 3 | | Projects v2 | owner_list_project, projects_get, projects_write | 3 | | Labels | label_list, label_write | 2 | | Server Info | server_info | 1 | | Total | | 34 |

FAQ / Troubleshooting

| Error | Likely Cause | |-------|-------------| | 401 | Token expired or invalid | | 403 | Missing OAuth scopes or SSO | | 404 | Resource doesn't exist or no access | | 429 | Rate limited — wait and retry | | Circuit breaker open | GitHub API returning repeated errors — auto-recovers in 30s |

License

ISC