
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A minimal MCP server that lets MCP-compatible clients create, update, list, view, and comment on GitHub pull requests, with dual authentication via Personal Access Token or GitHub CLI.
MCP server for managing GitHub pull requests is cataloged as an MCP server attributed to y-hirakaw. A minimal MCP server that lets MCP-compatible clients create, update, list, view, and comment on GitHub pull requests, with dual authentication via Personal Access Token or GitHub CLI. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for MCP server for managing GitHub pull requests are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It supports Personal Access Token authentication and GitHub CLI authentication, preferring a configured PAT and falling back to GitHub CLI if the PAT fails or is invalid.
Yes, version 1.4.0 added an optional draft parameter to the create_pull_request tool for creating draft pull requests.
Comments added with the add_pr_comment tool are automatically prefixed with an AI-generated identifier.
README.md · ec8795bbd965 · Fetched 2026-11-13 12:20:19 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
A minimal MCP (Model Context Protocol) server for interacting with GitHub pull requests with dual authentication support.
This tool allows you to create, list, view details and diffs, request reviewers, and comment on pull requests in GitHub repositories via MCP. It supports both Personal Access Token (PAT) and GitHub CLI authentication methods.
Latest Version: 1.4.0 - Added draft PR creation support with draft parameter.
create_pull_requestCreates a new pull request in a GitHub repository.
draft: true 🆕 v1.4.0update_pull_requestUpdates an existing pull request in a GitHub repository.
list_open_pull_requestsLists all open pull requests in a repository.
get_pull_request 🆕 v1.3.0Gets detailed information about a specific pull request.
gh pr view {pr_number} --repo {owner/repository} --json title,bodyget_pull_request_diffRetrieves the unified diff for a pull request.
request_reviewersAdds reviewers to an existing pull request.
add_pr_commentAdds a general comment to a pull request conversation.
add_review_commentAdds a code review comment to a specific line (or the diff position) in a changed file.
line (preferred): the file line number, plus optional side (LEFT/RIGHT, default RIGHT), and start_line/start_side for multi-line commentsposition (deprecated): the offset within the diff — kept for backward compatibilitysubject_type: "file": for a file-level comment when the target line falls outside the diff hunk (omits line/position)get_pr_commentsRetrieves all comments from a pull request.
get_pr_changes_for_commentingGets file changes with positions available for adding review comments.
gh CLI authenticationThis tool runs as an MCP server in your local environment. You can use it with tools like Copilot Agent or any MCP-compatible client.
gh auth login # One-time setup
npx mcp-gh-pr-mini # Works immediately
Set the environment variable GITHUB_PERSONAL_ACCESS_TOKEN if you prefer PAT authentication.
Required PAT Permissions:
| Permission | Access Level |
|---|---|
| Pull requests | Read & Write |
| Issues | Read & Write |
| Metadata | Read (automatic) |
settings.json"mcp": {
"servers": {
"mcp-gh-pr-mini": {
"command": "npx",
"args": ["mcp-gh-pr-mini"]
}
}
}
"mcp": {
"servers": {
"mcp-gh-pr-mini": {
"command": "npx",
"args": ["mcp-gh-pr-mini"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "{Your Fine-Grained GitHub Token}"
}
}
}
}
This MCP server features an intelligent dual authentication system that automatically detects and uses the best available authentication method:
gh auth login// 1. Create a pull request
create_pull_request({
owner: "username",
repo: "repository",
title: "Add new feature",
body: "Description of the changes",
head: "feature-branch",
base: "main"
})
// 1a. Create a draft pull request (NEW in v1.4.0)
create_pull_request({
owner: "username",
repo: "repository",
title: "WIP: Add new feature",
body: "Work in progress - not ready for review yet",
head: "feature-branch",
base: "main",
draft: true // Creates as draft PR
})
// 1.5. Get PR details to review information
get_pull_request({
owner: "username",
repo: "repository",
pr_number: 1
})
// 1.6. Update the pull request if needed
update_pull_request({
owner: "username",
repo: "repository",
pr_number: 1,
title: "Add new feature (updated)",
body: "Updated description with more details"
})
// 2. Get the diff to review changes
get_pull_request_diff({
owner: "username",
repo: "repository",
pr_number: 1
})
// 3. Add a general comment
add_pr_comment({
owner: "username",
repo: "repository",
pr_number: 1,
body: "This looks great! Just a few small suggestions."
})
// 4. Add a specific code review comment (line is preferred over position)
add_review_comment({
owner: "username",
repo: "repository",
pr_number: 1,
body: "Consider using const instead of let here for immutability.",
path: "src/index.ts",
line: 42
})
// 5. Request reviewers
request_reviewers({
owner: "username",
repo: "repository",
pr_number: 1,
reviewers: ["reviewer1", "reviewer2"]
})
// Get all comments to review feedback
get_pr_comments({
owner: "username",
repo: "repository",
pr_number: 1
})
// Get file changes to find reviewable positions
get_pr_changes_for_commenting({
owner: "username",
repo: "repository",
pr_number: 1
})
// Returns positions where you can add review comments
// List all open PRs to get an overview
list_open_pull_requests({
owner: "username",
repo: "repository",
limit: 5
})
gh auth login once and forget about tokensgh auth status before using the toolsline (the actual file line number) over the deprecated position (a diff offset) — it avoids having to re-count diff hunkssubject_type: "file" for a file-level comment insteadThis project provides a minimal, focused implementation for essential pull request tasks via MCP. It's designed to be simple and easy to understand, making it a good reference for building MCP servers.
gh auth status to verify authenticationgh auth login to refresh credentialsgh pr list in a GitHub repository to verify CLI accessThe server uses this fallback order:
GITHUB_PERSONAL_ACCESS_TOKEN is set)gh auth status succeeds)line (or position) is likely outside the diff hunk range — only modified or added lines (plus a few lines of surrounding context) can receive line-level review commentssubject_type: "file" for a file-level comment insteadget_pr_changes_for_commenting can still be used to inspect the patch and find valid diff positions if you need the deprecated position parameternpx mcp-gh-pr-mini --version to test"DEBUG": "true" to environment variablesEnable detailed logging by adding debug environment variable:
"mcp": {
"servers": {
"mcp-gh-pr-mini": {
"command": "npx",
"args": ["mcp-gh-pr-mini"],
"env": {}
}
}
}
This will show detailed authentication flow and API calls in the MCP server logs.
If you encounter issues:
gh auth status and token permissionsdraft parameterget_pull_request tool to retrieve detailed PR information (title, body, state, author, branches)gh pr view --json title,bodyupdate_pull_request tool for modifying existing PRsI'm still new to building MCP servers, so there may be areas that can be improved. Feedback, suggestions, and contributions are always welcome!
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MCP server for managing GitHub pull requests from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mcp-gh-pr-mini)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.