Gemini-powered MCP server for code review analysis.
Code Review Analyst MCP server exists for a simple reason — assistants are far more useful when they can act on Code Review Analyst directly instead of describing what you should do. Gemini-powered MCP server for code review analysis.
Code Lens is a Model Context Protocol server that uses Google Gemini to analyze diffs, review pull requests, detect code smells, generate documentation, and verify logic. It exposes 13 tools, 7 resources, and 5 prompts over stdio transport.
Once Code Review Analyst is connected, these are the calls the assistant has available:
generate_diff — Capture git diff (unstaged/staged) and cache server-sideanalyze_pr_impact — Assess severity, categories, breaking changes, rollback complexitygenerate_review_summary — PR summary, risk rating, merge recommendationgenerate_test_plan — Prioritized test cases and coverage guidanceanalyze_time_space_complexity — Big-O complexity analysis and degradation detectiondetect_api_breaking_changes — Detect breaking API/interface changesload_file — Cache a source file for analysis toolsrefactor_code — Complexity, duplication, naming, grouping suggestionsdetect_code_smells — Structural code smells (Fowler taxonomy)generate_documentation — JSDoc/TSDoc/docstring stubs for public exportsask_about_code — Natural-language Q&A about a cached fileverify_logic — Verify algorithms via Gemini code execution sandboxYou will need 2 environment variables: GEMINI_API_KEY, GOOGLE_API_KEY. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
GEMINI_API_KEY or GOOGLE_API_KEY)@j0hanz/code-lens-mcp on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.
Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Code Review Analyst's toolset — generate_diff, analyze_pr_impact, generate_review_summary and 11 more — is a fair guide to whether it matches your workflow. It is maintained by j0hanz; worth a glance at recent repository activity before you build anything load-bearing on it.
We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.
| Tool | What it does |
|---|---|
| generate_diff | Capture git diff (unstaged/staged) and cache server-side |
| analyze_pr_impact | Assess severity, categories, breaking changes, rollback complexity |
| generate_review_summary | PR summary, risk rating, merge recommendation |
| generate_test_plan | Prioritized test cases and coverage guidance |
| analyze_time_space_complexity | Big-O complexity analysis and degradation detection |
| detect_api_breaking_changes | Detect breaking API/interface changes |
| load_file | Cache a source file for analysis tools |
| refactor_code | Complexity, duplication, naming, grouping suggestions |
| detect_code_smells | Structural code smells (Fowler taxonomy) |
| generate_documentation | JSDoc/TSDoc/docstring stubs for public exports |
| ask_about_code | Natural-language Q&A about a cached file |
| verify_logic | Verify algorithms via Gemini code execution sandbox |
| web_search | Google Search with Grounding |
| Research | The Research tool exposed by this server. |
{
"mcpServers": {
"code-lens": {
"command": "npx",
"args": ["-y", "@j0hanz/code-lens-mcp@latest"],
"env": {
"GEMINI_API_KEY": "your-api-key"
}
}
}
}Configuration as documented by the project. Restart the client after saving.
GEMINI_API_KEY or GOOGLE_API_KEY)| Variable | Description | Required |
|---|---|---|
| GEMINI_API_KEY | Credential the server authenticates with. | Yes |
| GOOGLE_API_KEY | Credential the server authenticates with. | Yes |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.