Skip to main content
Glama

GitHub PR Review Server

by heruujoko

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

VariableDescriptionDefault
GITHUB_TOKENGitHub Personal Access Token (required)-
MAX_PATCH_SIZEMaximum diff patch size (chars)2000
MAX_FILES_TO_REVIEWMaximum files processed per PR50
REQUEST_TIMEOUTHTTP request timeout (ms)30000
LOG_LEVELLogging level (debug, info, …)info
ENABLE_DEBUGVerbose logging (true/false)false

🛠️ Available Tools

Core PR utilities plus advanced analysis modules:

  • get_review_prompts ⭐ (call this first!)
  • get_pr_details
  • get_pr_files
  • get_pr_commits
  • get_file_content
  • post_pr_review
  • get_repo_info

Advanced analysis (🚀):

  • analyze_code_quality
  • analyze_diff_impact
  • detect_security_issues
  • detect_code_patterns
  • analyze_dependencies
  • analyze_test_coverage
  • generate_suggestions

For detailed usage examples, see the original README history or the inline JSDoc in src/tools/.

-
security - not tested
F
license - not found
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

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.

  1. 🔧 Quick Start (Local)
    1. 🖥️ Using from an MCP Client
      1. Cursor IDE
      2. Generic MCP Client
    2. 🐳 Docker (Hosted)
      1. ⚙️ Environment Variables
        1. 🛠️ Available Tools

          Related MCP Servers

          • -
            security
            F
            license
            -
            quality
            An MCP service that enables creating GitHub Pull Requests and adding code review comments using GitHub CLI, eliminating the need to manually handle authentication and permissions.
            Last updated -
            • Apple
            • Linux
          • -
            security
            F
            license
            -
            quality
            A server that integrates with Cursor IDE to provide code review functionality for Azure repositories, enabling AI-powered pull request analysis and feedback.
            Last updated -
            2
          • -
            security
            F
            license
            -
            quality
            A tool that integrates with GitHub and Notion to analyze and review pull requests, enabling automated code reviews and documentation in Notion.
            Last updated -
            • Apple
            • Linux
          • -
            security
            F
            license
            -
            quality
            An intelligent assistant for Pull Request analysis that integrates GitHub with Notion for automated review documentation through an MCP (Model-Controller-Provider) server architecture.
            Last updated -
            1

          View all related MCP servers

          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