github-pr-reviewer
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@github-pr-reviewer Review pull request #23 for bugs and security, then save to Notion."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
GitHub PR Reviewer MCP Server
A lightweight Model Context Protocol (MCP) server that connects Codex with GitHub and Notion. It allows Codex to fetch pull request changes, review code, and save approved reviews to Notion.
Architecture Diagram

Related MCP server: GitHub Code Review Assistant
Features
Fetch pull request details and changed files from GitHub
Analyse code using Codex
Identify bugs, security risks, performance issues, and maintainability concerns
Provide severity levels and recommended fixes
Save approved reviews to Notion
Integrate with Codex through FastMCP
Tech Stack
Python
FastMCP
Codex CLI
GitHub API
Notion API
uv
python-dotenv
Setup
Create a .env file in the project root:
GITHUB_TOKEN=your_github_token
NOTION_API_KEY=your_notion_api_key
NOTION_PAGE_ID=your_notion_page_idInstall the project dependencies:
uv syncAdd the MCP server to Codex:
codex mcp add github-pr-reviewer -- uv --directory "C:\path\to\pr_reviewer" run python "src\pr_reviewer\pr_analyzer.py"Verify the MCP server:
codex mcp listUsage
Start Codex:
codexThen provide a GitHub pull request URL:
Use the github-pr-reviewer MCP server to review this pull request:
https://github.com/OWNER/REPOSITORY/pull/PR_NUMBER
Fetch the pull request changes and review the code for bugs, security issues,
performance problems, and maintainability concerns. Do not save the review
to Notion until I approve it.After reviewing the result:
I approve this review. Save the complete review to Notion using the
github-pr-reviewer MCP server.Security
Never commit API tokens or the .env file.
Add the following entries to .gitignore:
.env
.venv/
__pycache__/Author
Badar Rasheed Butt
AI Engineer
Available Tools
2 toolscreate_notion_pageC
Create a Notion page with PR analysis.
Inputs: title (required), content (required). Returns: result
fetch_prC
Fetch changes from a GitHub pull request.
Inputs: pr_number (required), repo_name (required), repo_owner (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
fetch_pr and create_notion_page have completely distinct purposes: one retrieves PR data, the other creates a Notion page. There is no overlap, making selection unambiguous.
Both tools use a consistent verb_noun snake_case pattern (fetch_pr, create_notion_page), which is predictable and readable.
With only 2 tools, the server feels minimal, but the scope is narrowly defined. It is slightly under the typical range, but not excessive.
The workflow of fetching a PR and creating a Notion page is directly supported, but there are missing auxiliary operations like listing PRs or updating pages. Minor gaps exist.
Maintenance
Related MCP Connectors
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Operate GitHub from your AI assistant: repos, PRs, issues, Actions. Previews and read-only mode.
Screens public GitHub repos and PRs to generate risk maps, findings, and merge-readiness signals.
AI code review, auto-fixes and stacked PRs for GitHub: Vortex reviews, Cyclone patches, auto land.
1
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA tool that integrates with GitHub and Notion to analyze and review pull requests, enabling automated code reviews and documentation in Notion.-
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to perform comprehensive GitHub pull request code reviews, including analysis of code patterns, complexity, and security issues, while managing review comments and ensuring compliance with team coding standards.2MIT
- FlicenseNot gradedqualityDmaintenanceEnables the analysis of GitHub Pull Requests to extract metadata, commits, and code changes for structured AI insights. It also supports the optional creation of Notion pages to store and organize the resulting analysis.-
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to autonomously review GitHub Pull Requests by listing PRs, retrieving diffs, and submitting structured reviews.ISC