code-review-mcp
Click on "Install 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-mcpFind bugs in this code: def foo(): pass"
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
Локальный MCP-сервер для Cursor: анализ кода, поиск багов, генерация тестов и документации через OpenRouter.
1. Prerequisites
Python 3.10+
Cursor IDE
OpenRouter API key: https://openrouter.ai/keys
Related MCP server: mcp_review_code_tool
2. Installation
git clone <repo>
cd <ABSOLUTE_PATH_TO_PROJECT>
python -m venv .venv
.venv\Scripts\activate # Windows
pip install -r requirements.txt
Copy-Item .env.example .env
# вписать OPENROUTER_API_KEY в .envЕсли вы используете не PowerShell, можно просто скопировать .env.example в .env любым удобным способом.
3. Cursor Integration
Подключить сервер можно двумя способами.
Способ A — через глобальный конфиг Cursor:
Файл конфигурации находится по пути %APPDATA%\Cursor\User\globalStorage\cursor.mcp\mcp.json.
Способ B — через .cursor/mcp.json в корне проекта (рекомендуемый):
{
"mcpServers": {
"code-review-mcp": {
"command": "<ABSOLUTE_PATH_TO_PROJECT>\\.venv\\Scripts\\python.exe",
"args": [
"<ABSOLUTE_PATH_TO_PROJECT>\\server.py"
],
"env": {
"OPENROUTER_API_KEY": "<YOUR_OPENROUTER_API_KEY>"
}
}
}
}Используйте только абсолютные пути. В Windows обратные слеши в JSON нужно писать как \\.
4. Verification
Откройте
Cursor Settings -> MCPи убедитесь, чтоcode-review-mcpвиден со статусомconnected.В чате Cursor отправьте:
Use review_bugs tool on this code: def foo(): passОжидаемый результат: структурированный Markdown-ответ в чате без падения сервера.
5. Available Tools
Tool | Description | Key params |
| Find logical bugs |
|
| Code readability & style |
|
| Security vulnerabilities |
|
| Performance bottlenecks |
|
| Generate unit/integration tests |
|
| Explain code |
|
| Suggest refactoring |
|
| Combined 4-section review | — |
| Generate docstrings |
|
Models
По умолчанию модель задаётся в config.py через DEFAULT_MODEL, FAST_MODEL и STRONG_MODEL.
Любой tool также принимает аргумент model, поэтому при вызове можно явно передать любую OpenRouter-совместимую модель, если нужен другой баланс цены, скорости и качества.
6. Troubleshooting
ValueError: OPENROUTER_API_KEY is required— проверьте.envили секциюenvвmcp.json.Cursor не видит сервер — проверьте, что в конфиге указаны абсолютные пути и они ведут к существующим файлам.
Ответ приходит слишком долго или упирается в таймаут — попробуйте более быструю или более доступную OpenRouter-модель через аргумент
modelу tool-вызова.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceAn MCP server that provides detailed information about your development environment to the Cursor code editor, enabling more context-aware assistance.Last updated7MIT
- Flicense-qualityFmaintenanceMCP server for code review using OpenRouter API. Supports local code review via MCP or web interface.Last updated12
- AlicenseAqualityDmaintenanceA lightweight MCP server that enables AI coding assistants to interact with OpenRouter API for direct queries, file analysis, and batch processing.Last updated3MIT
- Alicense-qualityBmaintenanceSelf-hosted MCP server using Ollama for local AI-powered code analysis, refactoring, and optimization. Integrates with VS Code via Continue or Roo.Last updatedMIT
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/812Diasp/code-review-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server