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

mcp-github-context

v1.0.0

Published

GitHub MCP server for contextualizing code work with PRs, reviews, commits, and more

Readme

MCP GitHub Context

npm version License: Apache-2.0 Node.js Version

A Model Context Protocol (MCP) server that provides GitHub context to AI assistants and editors.

✨ Features

  • 📥 Fetch pull request diffs
  • 📋 List and inspect pull requests, comments, and reviews
  • 📁 List files in PRs and inspect commits
  • 🔀 Compare branches
  • 🔍 Extract Git remote info from local repositories

📦 Installation

From npm

npm install -g mcp-github-context

From source

git clone https://github.com/junielton/mcp-github-context.git
cd mcp-github-context
npm install
npm run build

🚀 Usage

Environment Variables

| Variable | Required | Description | |----------|----------|-------------| | GITHUB_TOKEN | Recommended | GitHub Personal Access Token for private repos and higher rate limits (5000/hour vs 60/hour) |

Generate a token at: https://github.com/settings/tokens Required scopes: repo for private repos, or public_repo for public only.

Running the server

# Development
GITHUB_TOKEN=your_token npm run dev

# Production
GITHUB_TOKEN=your_token npm start

# If installed globally
GITHUB_TOKEN=your_token mcp-github-context

🔧 MCP Client Configuration

Add this to your MCP client configuration (e.g., Claude, Cursor, etc.):

Using npx (recommended)

{
  "mcpServers": {
    "github-context": {
      "command": "npx",
      "args": ["-y", "mcp-github-context"],
      "env": {
        "GITHUB_TOKEN": "your_github_token_here"
      }
    }
  }
}

Using global install

{
  "mcpServers": {
    "github-context": {
      "command": "mcp-github-context",
      "env": {
        "GITHUB_TOKEN": "your_github_token_here"
      }
    }
  }
}

Using local install

{
  "mcpServers": {
    "github-context": {
      "command": "node",
      "args": ["/path/to/mcp-github-context/dist/server.js"],
      "env": {
        "GITHUB_TOKEN": "your_github_token_here"
      }
    }
  }
}

🛠️ Available Tools

| Tool | Description | |------|-------------| | fetch_github_pr_diff | Fetch raw diff content from a PR | | list_pull_requests | List PRs with optional filters (state, limit) | | get_pr_details | Get complete PR details (title, body, labels, stats) | | get_pr_comments | Fetch all PR comments (general + review) | | get_pr_reviews | Get all PR reviews with status | | get_pr_files | List files changed in a PR with stats | | compare_branches | Compare two branches (commits, files) | | get_commit_details | Get commit info (author, message, files) | | get_git_remote_info | Extract owner/repo from local Git repository |

💡 Example Prompts

Once configured, you can use prompts like:

  • "List the open PRs in facebook/react"
  • "Get details of PR #123 from org/repo"
  • "Show me the diff for PR #456"
  • "Compare main and develop branches in org/repo"
  • "What files were changed in commit abc123?"

📄 License

Apache-2.0 — see LICENSE

👤 Author

junielton - GitHub

🙏 Acknowledgments