GitHub PR Review Server
Enables 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.
README
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 start
The 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-mcp
Attach the container to your MCP client using http://localhost:3000 (or the mapped port) as the command.
⚙️ Environment Variables
| Variable | Description | Default |
|---|---|---|
GITHUB_TOKEN |
GitHub Personal Access Token (required) | - |
MAX_PATCH_SIZE |
Maximum diff patch size (chars) | 2000 |
MAX_FILES_TO_REVIEW |
Maximum files processed per PR | 50 |
REQUEST_TIMEOUT |
HTTP request timeout (ms) | 30000 |
LOG_LEVEL |
Logging level (debug, info, …) |
info |
ENABLE_DEBUG |
Verbose logging (true/false) |
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/.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.