mcps
G

Recipe

PR review with Claude + GitHub MCP

Stop context-switching between your editor and GitHub. Claude reads diffs, spots bugs, and suggests fixes in the same chat.

for Developers who don't want to context-switch between editor and GitHub for every diff

Hand-checked recipe · curated by Ilya Gindin

10 minutes

to run

beginner

difficulty

1

connector

What you'll need

This recipe runs in 4 steps

  1. 1

    Install GitHub MCP

    Say to your AI

    Add GitHub MCP to Claude Desktop using your GitHub personal access token.

    You'll get: Claude confirms GitHub MCP is installed and authenticated. You can list repos.

  2. 2

    Point Claude at the PR

    Say to your AI

    Review PR #142 in my-org/api-service — look for security issues and suggest improvements.

    You'll get: Claude pulls the diff, the description, and the changed file context, then returns a structured review.

  3. 3

    Get an AI-powered review

    Say to your AI

    Give me the top 3 risks in this PR, ordered by severity, with the exact lines they apply to.

    You'll get: A short ranked list with file:line references and an explanation per item.

  4. 4

    Ask follow-up questions

    Say to your AI

    Why might the authentication change in this PR cause issues with our existing token refresh logic?

    You'll get: Claude reads the surrounding files (not just the diff) and explains the interaction.

You're done when

Faster, more thorough code reviews without leaving your AI assistant — typically a 10-minute pass instead of a 30-minute scroll.

Why this workflow exists

Most code review time is spent loading context: opening the PR, scrolling the diff, jumping to related files, scanning the description. The actual judgment — is this change safe? — takes a few minutes. GitHub MCP collapses the loading time so you can spend the budget on judgment.

What success looks like

You paste a PR reference into Claude. You read a structured review with the top risks called out. You ask one or two follow-ups. You leave a comment on the PR. Total: ~10 minutes per review.