home / mcp / github code review assistant mcp server

GitHub Code Review Assistant MCP Server

Created an MCP Server to review PRs and give suggestions for vulnerabilities

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "sanjanaspanda-mcp-server": {
      "command": "python",
      "args": [
        "github_code_review_mcp.py"
      ]
    }
  }
}

You have a dedicated MCP server that provides intelligent tooling for GitHub pull request code reviews. It analyzes PRs, suggests improvements, checks for team standards, and integrates into your reviewer workflow to help you review faster and more consistently.

How to use

Connect to the server with an MCP client and start leveraging automated PR analysis, smart suggestions, and standards checks. You can list PRs, fetch details and diffs, analyze code for patterns and quality issues, generate review comments, and submit formal reviews.

Typical usage workflow includes: listing open PRs in a repository, inspecting a specific PR, analyzing it for quality and standards conformance, getting AI-driven review ideas, and finally submitting a review with inline comments. Use the client’s commands to navigate PRs and invoke the server’s analysis and suggestion features.

How to install

Prerequisites you need before starting are Python 3.8 or higher, and a GitHub Personal Access Token with repo scope. You should also have an MCP-compatible client to connect to the server.

pip install mcp httpx pydantic

Set up your GitHub token with the required permissions so the MCP server can access repository data for PR reviews.

# Example: start the MCP server locally
python github_code_review_mcp.py

Configure your MCP client (example for Claude Desktop) to connect to the local server. The following snippet shows how the client can launch the local server process.

{
  "mcpServers": {
    "github_code_review": {
      "command": "python",
      "args": ["github_code_review_mcp.py"]
    }
  }
}

Configuration and runtime notes

The server is intended to run as a local process that you start with Python. If you prefer to point an MCP client at a remote host, you can do so by running the same server script on that host and using the remote URL configuration in your client as applicable.

Available tools

github_list_pull_requests

Lists pull requests for a repository with filtering options such as state, sort, and pagination.

github_get_pr_details

Fetches comprehensive details for a specific pull request, including reviews and status checks.

github_get_pr_files

Retrieves all files changed in a pull request along with change statistics.

github_get_pr_diff

Gets the unified diff for a pull request, with optional file and context filters.

github_analyze_pr

Performs a deep analysis of a PR for code quality, patterns, complexity, and security checks.

github_get_pr_comments

Retrieves all comments on a pull request, including reviews and issues.

github_create_review_comment

Creates a comment on a pull request, either inline or general.

github_create_pr_review

Submits a formal review on a pull request with optional inline comments.

github_get_review_suggestions

Generates AI-powered review suggestions focused on performance, security, readability, and tests.

github_check_team_standards

Checks a PR against the team's coding standards as defined in a standards file.

GitHub Code Review Assistant MCP Server - sanjanaspanda/mcp-server