GitHub PR Reviewer
Allows reviewing GitHub Pull Requests: list PRs, get context, post comments, approve, or request changes.
Click on "Install 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 ReviewerReview octocat/Hello-World#1"
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.
ChatGPT GitHub PR Reviewer
A ChatGPT app that helps you review GitHub Pull Requests directly from within ChatGPT conversations. Built using OpenAI's Apps SDK with the Model Context Protocol (MCP).
Features
Connect GitHub - OAuth login to connect your GitHub account
List Pull Requests - View PRs you authored, need to review, or are involved in
Get PR Context - Full PR details including files changed, diffs, and metadata
Post Comments - Add general comments or inline comments on specific files/lines
Approve PRs - Approve pull requests with optional comment
Request Changes - Request changes with feedback
Idempotency Protection - Prevents duplicate comments on retries
OAuth 2.1 Compliant - Full MCP authorization spec with PKCE and discovery endpoints
Related MCP server: GitHub Code Review Assistant
MCP Tools
1. check_github_auth_status
Connect and check GitHub authentication status.
Input: None
Output (not authenticated):
{
"authenticated": false,
"authUrl": "https://github.com/login/oauth/authorize?..."
}Output (authenticated):
{
"authenticated": true,
"user": { "login": "username", "name": "Full Name" }
}2. list_pull_requests
List pull requests with priority cascade.
Input:
{
"username": "octocat" // Optional: filter by author
}Default behavior (no username):
First shows PRs where YOU are the author
If none, shows PRs where you are a reviewer
If none, shows PRs where you are involved
Output:
{
"pullRequests": [...],
"searchType": "authored" | "reviewing" | "involved" | "user_authored",
"totalCount": 5
}3. get_pr_context
Get full context for a PR including files changed and diffs.
Input:
{
"pr_name": "owner/repo#123"
}Output:
{
"pr": { "number": 123, "title": "...", "author": "..." },
"description": "PR description...",
"files": [
{ "filename": "src/index.ts", "status": "modified", "additions": 10, "deletions": 5, "patch": "..." }
],
"commits": 3,
"additions": 50,
"deletions": 20
}4. post_review_comments
Post review comments to a PR. Supports general and inline comments.
Input:
{
"pr_name": "owner/repo#123",
"comments": [
{ "body": "Looks good!" },
{ "body": "Use async here", "path": "src/index.ts", "line": 42 }
],
"event": "COMMENT" | "APPROVE" | "REQUEST_CHANGES",
"idempotency_key": "unique-key-123"
}Comment Types:
General comment: Only
body- appears in PR conversationInline comment:
body+path+line- appears on specific line
Output:
{
"success": true,
"reviewId": 12345,
"prUrl": "https://github.com/owner/repo/pull/123",
"commentsPosted": 2
}Example Prompts
1. Connect GitHub
Prompt | Output |
"Connect my GitHub" | Shows GitHub OAuth login button |
"Login to GitHub" | Shows GitHub OAuth login button |
2. List Pull Requests
Prompt | Output |
"List my PRs" | Lists your PRs in priority: authored → reviewing → involved |
"Show my PRs for review" | Lists PRs where you are a reviewer |
"List m-musaz PRs" | Lists all open PRs by m-musaz |
3. Get PR Context
Prompt | Output |
"Review owner/repo#123" | Returns full PR details: title, description, files, diffs |
"Get context for PR 123" | Returns full PR details with code changes |
4. Post Review Comments
Prompt | Output |
"Add comment: 'Looks good!'" | Posts general comment on PR |
"Comment on line 42 of src/index.ts: 'Use async here'" | Posts inline comment |
"Approve this PR" | Approves the PR |
"Request changes: 'Please add tests'" | Requests changes with feedback |
Project Structure
chatgpt-github-pr-reviewer/
├── package.json # Root package with npm workspaces
├── server/
│ └── src/
│ ├── index.ts # Express server with OAuth endpoints
│ ├── mcp-server.ts # MCP protocol handler
│ ├── mcp-oauth.ts # OAuth 2.1 implementation
│ ├── github-auth.ts # GitHub OAuth logic
│ ├── github-api.ts # GitHub API integration
│ ├── idempotency-service.ts # Duplicate prevention
│ ├── token-store.ts # GitHub token storage
│ └── types.ts # TypeScript types
└── widget/
└── src/
├── GitHubWidget.tsx # Main widget component
└── components/ # UI componentsEnvironment Variables
# GitHub OAuth (from GitHub Developer Settings)
GITHUB_CLIENT_ID=your_github_client_id
GITHUB_CLIENT_SECRET=your_github_client_secret
GITHUB_REDIRECT_URI=http://localhost:3000/github/callback
# Server
PORT=3000
NODE_ENV=development
# MCP OAuth (for ChatGPT authentication)
MCP_OAUTH_CLIENT_ID=chatgpt-mcp-client
MCP_OAUTH_CLIENT_SECRET=chatgpt-mcp-secret-key-2024
# Widget Base URL
WIDGET_BASE_URL=https://your-app.railway.appGitHub OAuth App Setup
Step 1: Create GitHub OAuth App
Click "OAuth Apps" → "New OAuth App"
Fill in:
Application name: ChatGPT PR Reviewer
Homepage URL:
https://your-app.railway.appAuthorization callback URL:
https://your-app.railway.app/github/callback
Copy Client ID and Client Secret to
.env
Step 2: Required Scopes
Scope | Purpose |
| Read user profile |
| Read organization/team membership |
| Full repository access (required for posting reviews) |
Local Development
# Install dependencies
npm install
# Create .env file
cp .env.example .env
# Edit .env with your GitHub OAuth credentials
# Start development server
npm run devDeployment
Railway
Connect your GitHub repo to Railway
Add environment variables:
GITHUB_CLIENT_ID=your_client_id GITHUB_CLIENT_SECRET=your_client_secret GITHUB_REDIRECT_URI=https://your-app.railway.app/github/callback PORT=3000 NODE_ENV=production WIDGET_BASE_URL=https://your-app.railway.app
ChatGPT Integration
Create a new ChatGPT App
Configure MCP:
Discovery URL:
https://your-app.railway.app/.well-known/oauth-authorization-server
Test with: "Connect my GitHub" or "List my PRs"
Credits
Built with:
Happy PR Reviewing!
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceEnables automated GitHub Pull Request reviews using local Ollama, Cursor CLI, or Gemini CLI as AI providers. Supports customizable review prompts, comprehensive PR analysis, and optional auto-posting of reviews to GitHub.Last updated325MIT
- Alicense-qualityDmaintenanceEnables 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.Last updated2MIT
- AlicenseBqualityCmaintenanceEnables management of GitHub pull request review threads through natural language, allowing users to list, reply to, and resolve PR review comments using GitHub's GraphQL API.Last updated4MIT
- Alicense-qualityDmaintenanceConnects Claude to GitHub Pull Requests to fetch and filter code diffs for AI-assisted reviews. It enables listing open PRs and analyzing changes while automatically excluding binary and asset files to focus on relevant code.Last updated21MIT
Related MCP Connectors
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
A Model Context Protocol (MCP) application for automated GitHub PR analysis and issue management.…
Pull change requests from your Amendor board into your coding agent to build and open PRs.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/m-musaz/GPT-Apps-Github-PR-Review-Connector'
If you have feedback or need assistance with the MCP directory API, please join our Discord server