GitHub PR MCP Server
Allows managing GitHub Pull Requests: listing PRs, retrieving PR details, listing PR comments, creating comments, creating reviews, and merging PRs.
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 MCP ServerList open pull requests in this repository"
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 MCP Server
Un servidor MCP (Model Context Protocol) mínimo para interactuar con Pull Requests de GitHub. Está pensado como ejemplo didáctico para entender cómo crear un MCP server desde cero.
Qué hace
Expone 6 herramientas:
list_pull_requests— Lista los PRs de un repositorio.get_pull_request— Muestra el detalle de un PR.list_pull_request_comments— Lista los comentarios de un PR.create_pull_request_comment— Publica un comentario en un PR.create_pull_request_review— Aprueba, pide cambios o comenta un PR.merge_pull_request— Mergea un PR.
Related MCP server: tai-mcp-github
Requisitos
Node.js 20 o superior
Un token de GitHub con permisos para leer/escribir PRs (repo o repo:read + repo:write según la operación)
Instalación
npm installConfiguración
Exporta tu token de GitHub:
export GITHUB_TOKEN="ghp_xxxxxxxxxxxxxxxxxxxx"Ejecución
npm run devImportante: el servidor usa
stdiocomo transporte MCP. No escribe nada astdoutexcepto el protocolo; los logs van astderr.
Probar con MCP Inspector
El inspector te permite probar las herramientas sin necesidad de un host como Claude o Cursor:
npm run inspectLuego abre la URL que indica, conecta el servidor y prueba las tools.
Configurar en un host MCP
Añade esto a tu cliente MCP (Claude Code, Cursor, VS Code, etc.):
{
"mcpServers": {
"github-pr": {
"command": "npx",
"args": ["tsx", "/ruta/al/proyecto/src/index.ts"],
"env": {
"GITHUB_TOKEN": "ghp_xxxxxxxxxxxxxxxxxxxx"
}
}
}
}Estructura del proyecto
.
├── src/
│ └── index.ts # Todo el servidor
├── package.json
├── tsconfig.json
└── README.mdNotas para un video tutorial
El archivo
src/index.tses autónomo: configura el cliente de GitHub, define los schemas con Zod, registra las tools y arranca el transporte stdio.El SDK de MCP valida los argumentos automáticamente con los schemas; si falla, la tool no se ejecuta.
Para demostraciones, usa un repo de prueba y un PR que no importe romper.
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
- Flicense-qualityCmaintenanceMCP server for the GitHub REST API that enables interaction with repositories, pull requests, issues, branches, commits, reviews, and code search, with configurable write and destructive operations.Last updated
- Flicense-qualityDmaintenanceA minimal MCP server that exposes a focused set of GitHub PR review tools to AI agents, enabling PR listing, detail retrieval, comment viewing, and thread management.Last updated
- Alicense-qualityBmaintenanceAn MCP server that enables checking GitHub and Codeberg PR reviews, change requests, and conversations.Last updatedMIT
- Alicense-qualityBmaintenanceAn MCP server for automated code review of GitHub pull requests. It checks security, quality, and license issues, and provides tools to list, inspect, and review PRs.Last updated23MIT
Related MCP Connectors
A MCP server built for developers enabling Git based project management with project and personal…
A Model Context Protocol (MCP) application for automated GitHub PR analysis and issue management.…
An MCP server that gives your AI access to the source code and docs of all public github repos
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/Pelado-Nerdworks/github-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server