Skip to content
MCP server

GitHub PR Context

MCP server that turns a repo's PR review history into rules for AI coding assistants

GitHub PR Context is an open-source MCP server for developer tools. It is available on CLI and Self-hosted.

Pricing
Open source
Platforms
CLI, Self-hosted
Version
0.3.3
Listing updated

Similar MCP servers

About GitHub PR Context

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.

What it does

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

Pricing

Open source

MIT licensed; no paid plan mentioned.

More servers for the same service

GitHub PR Context 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.

How AIPoweredBot checks servers