Code Review MCP Server
Uses the OpenAI API to power AI-driven code review, security vulnerability analysis, and code quality improvement suggestions.
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., "@Code Review MCP Serverreview this pull request for security vulnerabilities and code quality"
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.
Code Review MCP Server
AI-powered code review MCP server for automated pull request analysis.
Features
Code Review: Automated PR review with actionable feedback
Security Analysis: Identify security vulnerabilities in code
Improvement Suggestions: Get code quality improvement recommendations
MCP Compatible: Works with any MCP client (Claude, Cursor, etc.)
Related MCP server: code-review-mcp-server
Installation
npm install -g code-review-mcpSetup
Set your OpenAI API key:
export OPENAI_API_KEY="your-api-key-here"Configure in your MCP client:
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"code-review": {
"command": "node",
"args": ["/path/to/code-review-mcp/index.js"],
"env": {
"OPENAI_API_KEY": "your-api-key-here"
}
}
}
}Cursor
Add to .cursor/mcp.json:
{
"mcpServers": {
"code-review": {
"command": "node",
"args": ["/path/to/code-review-mcp/index.js"],
"env": {
"OPENAI_API_KEY": "your-api-key-here"
}
}
}
}Available Tools
1. review_code
Review code changes and provide feedback.
Parameters:
diff(required): The code diff to reviewcontext(optional): Additional context about the changes
Example:
{
"diff": "--- a/file.js\n+++ b/file.js\n@@ -1,3 +1,5 @@\n+// New function\n+function add(a, b) {\n+ return a + b;\n+}",
"context": "Added new utility function for arithmetic operations"
}2. analyze_security
Analyze code for security vulnerabilities.
Parameters:
code(required): The code to analyzelanguage(optional): Programming language
Example:
{
"code": "const query = `SELECT * FROM users WHERE id = ${userId}`;",
"language": "javascript"
}3. suggest_improvements
Suggest code quality improvements.
Parameters:
code(required): The code to analyzefocus(optional): Focus area (performance, readability, best_practices, all)
Example:
{
"code": "function processData(data) { return data.filter(x => x).map(x => x * 2); }",
"focus": "performance"
}Usage with AI Agents
This MCP server can be used by AI agents to automatically review code:
// Example: AI agent using the MCP server
const review = await mcpClient.callTool({
name: "review_code",
arguments: {
diff: prDiff,
context: "Feature: user authentication"
}
});
console.log(review.content[0].text);Enterprise Features
For enterprise use cases, contact us for:
Custom review rules and guidelines
Integration with CI/CD pipelines
Team-specific coding standards
Priority support
On-premise deployment
License
MIT
Author
ContentForge Press
Support
GitHub Issues: https://github.com/contentforge-press/code-review-mcp/issues
Email: support@contentforge.press
This server cannot be deployed
Maintenance
Related MCP Connectors
A Model Context Protocol (MCP) application for automated GitHub PR analysis and issue management.…
AI-native git hosting — repos, PRs, issues, CI gates, and AI code review over MCP (60 tools).
Screens public GitHub repos and PRs to generate risk maps, findings, and merge-readiness signals.
Scan any public GitHub MCP-server repo for security issues. 37 MCP-specific L1 rules, 8 languages.
Related MCP Servers
- AlicenseBqualityCmaintenanceEnables code review operations on GitHub and GitLab, including fetching pull/merge requests, viewing diffs, adding comments, analyzing code quality, and creating merge requests directly from your MCP client.1527 npm4MIT
- AlicenseNot gradedqualityBmaintenanceEnables automated code review and GitHub PR commenting through MCP integration.1,212 npm9MIT
- FlicenseNot gradedqualityDmaintenanceEnables automated AI-powered code review for pull requests across GitHub, GitLab, Bitbucket, and Azure DevOps via webhooks, and manual code review through MCP tools using Groq, Claude, or GPT-4.1-
- FlicenseNot gradedqualityBmaintenanceEnables automated semantic analysis of Git pull request diffs to detect breaking REST/GraphQL API schema changes, integrating with MCP-compatible clients for AI-driven code review.8-