# GitHub PR Context

> GitHub PR Context is an open-source MCP server for developer tools. MCP server that turns a repo's PR review history into rules for AI coding assistants. It is available on CLI and Self-hosted.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/paarths-collab/github-pr-context-mcp
- **MCP Registry name:** io.github.paarths-collab/github-pr-context-mcp
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-18

## About

The README says the project, now called Pitfall and formerly GitHub PR Context, reads a repository's closed pull requests and CI failures to find recurring reviewer feedback. It groups those findings into short rules that link back to the PR they came from. Rules only move up a level after the same kind of mistake appears in separate PRs, or after a revert, and reviewer-only preferences are labelled as such.

Before a coding session, the assistant asks for the rules that apply to the files and mistake types in its change, and afterwards it re-checks its own diff against them. If a known mistake reappears, the tool raises an alert. Rules are stored locally under a home-directory folder and can be exported into CLAUDE.md or AGENTS.md.

This suits teams that already run GitHub reviews and want their AI assistant to stop repeating the same review comments. It depends on GitHub's official MCP server being connected alongside it, and the README notes that GitHub search can miss history.

## Features

- **PR history learning:** Reads closed pull requests and reverts to extract reviewer-raised mistakes as candidate rules.
- **Evidence-based rule levels:** Promotes patterns to rules only after they recur across different PRs or are reverted.
- **Pre-change rule lookup:** Returns up to eight relevant rules with links to their source PRs before code is written.
- **Self-check before finishing:** Has the assistant re-read its own diff against applicable rules and report fixes.
- **Repeated mistake alerts:** Flags when a previously learned kind of mistake happens again.
- **Export to agent config files:** Writes rules into a marked section of CLAUDE.md or AGENTS.md.

## Good for

- Stop an AI assistant from repeating mistakes that reviewers already flagged
- Give coding agents repo-specific guidance drawn from past pull requests
- Review how often a recurring mistake type has come up in a codebase
- Share team review lessons with every AI tool through a CLAUDE.md or AGENTS.md file

## FAQ

### Where are the learned rules stored?

The README says rules are stored locally in a folder under the home directory and nothing leaves the machine beyond what the AI client already sends.

### Does GitHub PR Context need another MCP server?

Yes. The README says it reads PR history through GitHub's official MCP server, which should be connected in the same client with read-only access.

### How is a rule created?

A pattern becomes a rule when it appears in two different PRs or was reverted once. Single sightings stay as candidates and are not shown to the assistant.

### Can GitHub PR Context install with pip?

The README gives the install command as pipx install from the project's GitHub repository.

### Is GitHub PR Context free?

Yes. GitHub PR Context is open source, so you can use and self-host it for free.

### What are the best alternatives to GitHub PR Context?

The closest alternatives to GitHub PR Context are Tently, repo-interview, GitInProgress, GitHub and grasp.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.

## Alternatives

- [Tently](https://ai-powered.com/mcp/tently): Tently is a freemium MCP server for developer tools.
- [repo-interview](https://ai-powered.com/mcp/repo-interview): repo-interview is an open-source MCP server for developer tools.
- [GitInProgress](https://ai-powered.com/mcp/gitinprogress): GitInProgress is a free MCP server for generative code.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [grasp](https://ai-powered.com/mcp/grasp): grasp is an open-source MCP server for developer tools.
- [Review Assist MCP](https://ai-powered.com/mcp/review-assist-mcp): Review Assist MCP is an open-source MCP server for developer tools.
- [Groundrule](https://ai-powered.com/mcp/groundrule): Groundrule is an open-source MCP server for developer tools.
- [Deltaprobe](https://ai-powered.com/mcp/deltaprobe): Deltaprobe is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/github-pr-context
