prpeek-mcp
MCP server that returns GitHub PR feedback — review comments, resolved status, review summaries — in one normalized, token-efficient JSON call
An MCP server that returns all feedback on a GitHub pull request — review comments, review summaries, issue comments — as one normalized, token-efficient JSON payload instead of four stitched-together gh calls. Quick start · The tool · Connect your client · Troubleshooting Getting full reviewer feedback on a PR through the REST API means four separate calls — gh pr view, issue comments, reviews, and per-comment lookups by id — glued together by hand, with resolved/unresolved status missing entirely (it's a GraphQL-only field).
Summary extracted from the README.
PrPeek — GitHub PR feedback, one call, one shape
An MCP server that returns all feedback on a GitHub pull request — review
comments, review summaries, issue comments — as one normalized, token-efficient
JSON payload instead of four stitched-together gh calls.
Why
Getting full reviewer feedback on a PR through the REST API means four
separate calls — gh pr view, issue comments, reviews, and per-comment
lookups by id — glued together by hand, with resolved/unresolved status
missing entirely (it's a GraphQL-only field). PrPeek does it in one GraphQL
request: reviewThreads (resolved/outdated status, path, line, diff hunk),
reviews (summaries: approved / changes requested / commented), and
comments (top-level issue comments) — normalized into a single JSON object.
Quick start
Requirements
- An MCP client. Claude Code and Codex are documented below; any stdio MCP client works.
- The GitHub CLI authenticated (
gh auth login), or aGITHUB_TOKEN/GH_TOKENenvironment variable withreporead access.
No clone, Rust toolchain, or manual build is required.
macOS or Linux
curl -fsSL https://raw.githubusercontent.com/pioner92/prpeek-mcp/main/scripts/install.sh | sh
Windows (PowerShell)
irm https://raw.githubusercontent.com/pioner92/prpeek-mcp/main/scripts/install.ps1 | iex
Both installers download the right binary for your platform from the latest release, verify its checksum, and print the exact command to connect it to your client.
Prefer to build from source? See Building from source.
The get_pr_feedback tool
get_pr_feedback(owner, repo, number, unresolved_only?)
unresolved_only (default false) drops resolved threads, review summaries,
and issue comments — just the open items left to address.
Real response, unedited (get_pr_feedback("modelcontextprotocol", "rust-sdk", 1028)):
{
"title": "fix(auth): preserve OAuth discovery transport errors",
"url": "https://github.com/modelcontextprotocol/rust-sdk/pull/1028",
"unresolved_count": 2,
"comment_fields": [
"kind", "author", "is_bot", "path", "line",
"resolved", "outdated", "state", "body",
"diff_hunk", "anchor", "created_at"
],
"comments": [
[
"review_comment", "DaleSeo", false,
"crates/rmcp/src/transport/auth.rs", 2006,
false, false, null,
"Previously, if one candidate failed, the code moved on to the next well-known URL. Now it returns `Err`... Is this intended?",
"@@ -1984,13 +2000,10 @@ impl AuthorizationManager {\n...",
"#discussion_r3634809178",
"2026-07-23T00:28:38Z"
]
]
}
Field names are listed once, in comment_fields; each comment is a positional
array in that order rather than a repeated object — on a PR with a hundred
comments, that's a hundred fewer copies of "diff_hunk": in context.
| # | field | meaning |
|---|---|---|
| 0 | kind |
review_comment (inline on the diff) / review_summary (review-level verdict) / issue_comment (top-level PR comment) |
| 1 | author |
GitHub login |
| 2 | is_bot |
from GraphQL __typename == Bot, or a [bot]-suffixed login |
| 3 | path |
file path (null for summaries/issue comments) |
| 4 | line |
line number (falls back to originalLine if the thread is outdated) |
| 5 | resolved |
thread resolution status (null for summaries/issue comments) |
| 6 | outdated |
whether the diff has since moved under this comment |
| 7 | state |
review verdict — only set on review_summary rows |
| 8 | body |
comment text |
| 9 | diff_hunk |
the diff context the comment is anchored to |
| 10 | anchor |
the PR url fragment for this comment (e.g. #discussion_r123) — append it to the top-level url to get the full link; named anchor, not url, so it doesn't read as a broken link on its own |
| 11 | created_at |
ISO 8601 timestamp |
unresolved_count sits at the top level so a client doesn't have to count the
array to know how much is left to fix.
Connect your client
Claude Code
claude mcp add --transport stdio --scope user prpeek -- ~/.local/bin/prpeek-mcp
Codex
codex mcp add prpeek -- ~/.local/bin/prpeek-mcp
Restart the client after adding the server.
Optional: agent guidance. A short skill nudges the agent to reach for
get_pr_feedback instead of manual gh calls. Only run the command for the
client you use — same file, different folder:
Claude Code
mkdir -p ~/.claude/skills/prpeek && curl -fsSL https://raw.githubusercontent.com/pioner92/prpeek-mcp/main/skills/prpeek/SKILL.md -o ~/.claude/skills/prpeek/SKILL.md
Codex
mkdir -p ~/.codex/skills/prpeek && curl -fsSL https://raw.githubusercontent.com/pioner92/prpeek-mcp/main/skills/prpeek/SKILL.md -o ~/.codex/skills/prpeek/SKILL.md
Building from source
Requires a stable Rust toolchain.
git clone https://github.com/pioner92/prpeek-mcp.git
cd prpeek-mcp
sh scripts/build-release.sh
This builds target/release/prpeek-mcp and packages a release archive under
dist/.
Troubleshooting
"gh auth token failed" / auth errors — run gh auth login, or set
GITHUB_TOKEN/GH_TOKEN to a token with repo read access. GITHUB_TOKEN /
GH_TOKEN are checked first, so CI environments don't need gh installed.
"pull request not found" — check owner/repo/number; the token also
needs read access to the repository (private repos require it explicitly).