AI Code Review MCP Server
Provides tools for interacting with GitHub repositories, enabling AI agents to list repositories, retrieve pull request details, and access PR diffs for automated code reviews.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@AI Code Review MCP Server Review the code changes in PR #42 of owner/repo."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 install2. Test MCP Server
node src/index.js3. 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"
Related MCP server: GitHub MCP Server
π οΈ 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
Available Tools
7 toolsfs_list_filesC
List files in a directory
Inputs: path.
fs_read_fileC
Read file contents from workspace
Inputs: path (required).
fs_search_filesC
Search for files by pattern (e.g., *.js, *.py)
Inputs: pattern (required), path.
github_get_prC
Get pull request details
Inputs: owner (required), repo (required), pr_number (required).
github_get_pr_diffC
Get pull request diff for code review
Inputs: owner (required), repo (required), pr_number (required).
github_list_prsC
List pull requests in a repository
Inputs: owner (required), repo (required), state.
github_list_reposC
List GitHub repositories for authenticated user
Inputs: per_page.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 7 tools
The tools are mostly distinct with clear purposes, but there is some potential overlap between fs_list_files and fs_search_files, as both involve listing files, which could cause minor confusion. However, their descriptions clarify that one lists all files while the other searches by pattern, helping to mitigate ambiguity.
The naming is mixed, with fs_* tools using a prefix and github_* tools using a different prefix, but within each group, the verb_noun pattern is consistent (e.g., fs_list_files, github_get_pr). This mixed convention reduces overall consistency, though it remains readable and functional.
With 7 tools, the count is reasonable for an AI code review server, covering file system operations and GitHub PR interactions. It is slightly lean but well-scoped, as each tool serves a specific purpose without obvious bloat or redundancy.
The tool surface has notable gaps for a code review domain, such as missing tools for creating or updating PRs, commenting on code, or analyzing code quality directly. While it covers basic file and PR retrieval, it lacks full lifecycle coverage, which could limit agent effectiveness in comprehensive code review workflows.
Maintenance
Related MCP Connectors
Operate GitHub from your AI assistant: repos, PRs, issues, Actions. Previews and read-only mode.
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Access the GitHub API, enabling file operations, repository management, search functionality, andβ¦
GitHub repo search, stats, language breakdown and comparison as agent tools.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceEnables AI assistants to interact with local Git repositories for operations like status, commits, branching, and diffs, plus GitHub API integration for managing pull requests when authenticated.-
- AlicenseAqualityNot gradedmaintenanceEnables AI agents to interact with GitHub repositories through the GitHub REST API for managing files, issues, and repository metadata. It supports both read operations like searching code and write operations such as creating repositories and updating issue comments.9-
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with GitHub repositories, issues, pull requests, code, and more through a comprehensive set of tools.-
- AlicenseBqualityDmaintenanceEnables AI assistants to inspect local Git repositories and interact with the GitHub API for reading commits, diffs, files, issues, comments, pull requests, and project boards.10133 npmISC