Skip to main content
Glama

GitHub Code Review MCP Server

GitHub Code Review MCP Server

A Model Context Protocol (MCP) server for GitHub code review. This server provides read-only access to GitHub repositories, branches, commits, and pull requests, enabling AI assistants to perform code reviews without write permissions.

Features

  • List repositories, branches, commits, and pull requests
  • Access file contents from different branches and commits
  • View pull request comments and reviews
  • Search code across repositories
  • Access code scanning alerts

Prerequisites

  1. Python 3.8 or higher
  2. A GitHub Personal Access Token with appropriate read permissions

Installation

# Clone the repository git clone https://github.com/milind-kulshrestha/github-code-review-mcp-server.git cd github-code-review-mcp-server # Install dependencies pip install -e .

Usage

Environment Setup

# Set your GitHub Personal Access Token export GITHUB_PERSONAL_ACCESS_TOKEN=your_token_here

Running the Server

# Run the server with standard input/output python -m github_code_review

Configuration Options

  • GITHUB_PERSONAL_ACCESS_TOKEN: Your GitHub Personal Access Token (required)
  • GITHUB_HOST: GitHub host (defaults to github.com, can be set for GitHub Enterprise)

Implementation Details

This MCP server follows the structure of the original GitHub MCP Server but is implemented in Python and focuses exclusively on read-only functionality for code review purposes.

Available Tools

  • Repository tools: list_branches, list_commits, get_commit, get_file_contents
  • Pull request tools: get_pull_request, list_pull_requests, get_pull_request_comments
  • Code scanning tools: list_code_scanning_alerts, get_code_scanning_alert

License

MIT

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

A Model Context Protocol server that provides read-only access to GitHub repositories, enabling AI assistants to perform code reviews without write permissions.

  1. Features
    1. Prerequisites
      1. Installation
        1. Usage
          1. Environment Setup
          2. Running the Server
        2. Configuration Options
          1. Implementation Details
            1. Available Tools
          2. License

            Related MCP Servers

            • -
              security
              A
              license
              -
              quality
              A server that allows AI assistants to browse and read files from specified GitHub repositories, providing access to repository contents via the Model Context Protocol.
              Last updated -
              3
              JavaScript
              MIT License
              • Apple
            • -
              security
              A
              license
              -
              quality
              A Model Context Protocol server that enables AI agents to retrieve and understand entire codebases at once, providing tools to analyze local workspaces or remote GitHub repositories.
              Last updated -
              9
              TypeScript
              MIT License
              • Linux
              • Apple
            • A
              security
              F
              license
              A
              quality
              A Model Context Protocol server that enables AI models to interact with GitHub's API, allowing for repository creation and management with descriptions, topics, and website URLs through natural language commands.
              Last updated -
              1
              JavaScript
            • -
              security
              F
              license
              -
              quality
              A Model Context Protocol server that enables AI assistants like Claude to interact with GitHub repositories, issues, and pull requests.
              Last updated -
              129
              Python

            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/milind-kulshrestha/github-code-review-mcp-server'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server