GitHub PR Review Server
GitHub MCP Server
Minimal Model Context Protocol (MCP) server that exposes GitHub-focused tools for AI assistants.
🔧 Quick Start (Local)
# 1. Clone & install
git clone <repo-url>
cd github-review-mcp
pnpm install
# 2. Add credentials
echo "GITHUB_TOKEN=ghp_your_token_here" > .env
# 3. Run the server
pnpm startThe server listens on the port specified by your MCP client (default 3000).
🖥️ Using from an MCP Client
Cursor IDE
Add this to Settings → Extensions → MCP (or your mcp-servers.json):
{
"mcpServers": {
"github-review-server": {
"command": "node",
"args": ["/absolute/path/github-review-mcp/src/index.js"],
"env": { "GITHUB_TOKEN": "ghp_your_token_here" }
}
}
}Generic MCP Client
Point the client to node /absolute/path/github-review-mcp/src/index.js and pass GITHUB_TOKEN in the environment.
🐳 Docker (Hosted)
A Dockerfile mirroring the hosted image is included.
# Build
docker build -t gh-mcp .
# Run
docker run -e GITHUB_TOKEN=ghp_your_token_here -p 3000:3000 gh-mcpAttach the container to your MCP client using http://localhost:3000 (or the mapped port) as the command.
⚙️ Environment Variables
Variable | Description | Default |
| GitHub Personal Access Token (required) | - |
| Maximum diff patch size (chars) | 2000 |
| Maximum files processed per PR | 50 |
| HTTP request timeout (ms) | 30000 |
| Logging level ( | info |
| Verbose logging ( | false |
🛠️ Available Tools
Core PR utilities plus advanced analysis modules:
get_review_prompts⭐ (call this first!)get_pr_detailsget_pr_filesget_pr_commitsget_file_contentpost_pr_reviewget_repo_info
Advanced analysis (🚀):
analyze_code_qualityanalyze_diff_impactdetect_security_issuesdetect_code_patternsanalyze_dependenciesanalyze_test_coveragegenerate_suggestions
For detailed usage examples, see the original README history or the inline JSDoc in src/tools/.
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/heruujoko/github-review-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server