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.
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
- Restart VS Code (close and reopen)
- 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 repositoriesgithub_list_prs- List pull requestsgithub_get_pr- Get PR detailsgithub_get_pr_diff- Get PR diff for review
FileSystem Tools
fs_read_file- Read file contentsfs_list_files- List directory contentsfs_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
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.
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.
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
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.
E2B
Using MCP to run code via e2b.