AI Code Review MCP Server

AI Code Review MCP Server

Integrates GitHub repository management and local file system access to enable AI agents to perform code reviews and manage pull requests. It provides tools for listing repositories, retrieving PR diffs, and searching or reading files within a specified workspace.

Category
Visit Server

README

AI Code Review MCP Server

Simple MCP server for GitHub and FileSystem integration with AI agents (Copilot, Claude, etc.)

🚀 Quick Start

1. Install Dependencies

npm install

2. Test MCP Server

node src/index.js

3. Use with Copilot

  1. Restart VS Code (close and reopen)
  2. Open Copilot Chat and ask:
    • "List my GitHub repositories"
    • "Show pull requests in owner/repo"
    • "Read README.md file"
    • "List files in current directory"

🛠️ Available Tools

GitHub Tools

  • github_list_repos - List your repositories
  • github_list_prs - List pull requests
  • github_get_pr - Get PR details
  • github_get_pr_diff - Get PR diff for review

FileSystem Tools

  • fs_read_file - Read file contents
  • fs_list_files - List directory contents
  • fs_search_files - Search files by pattern

⚙️ Configuration

Edit .mcp/config.json:

{
  "mcpServers": {
    "ai-code-review": {
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "your_token_here",
        "WORKSPACE_PATH": "/path/to/workspace"
      }
    }
  }
}

📝 Usage Examples

With Copilot Chat:

  • "List my GitHub repositories"
  • "Show me PR #123 in owner/repo"
  • "Read the package.json file"

With Other Agents:

The MCP server implements Model Context Protocol, compatible with:

  • GitHub Copilot
  • Claude Desktop
  • Any MCP-compatible AI agent

🔒 Security

  • GitHub token stored in config (add .mcp/ to .gitignore)
  • FileSystem access restricted to workspace path
  • Path traversal protection built-in

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
Kagi MCP Server

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.

Official
Featured
Python
graphlit-mcp-server

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.

Official
Featured
TypeScript
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured