Gemini-powered MCP server for code analysis.
Gemini-powered MCP server for code analysis.
Gemini-powered MCP server for automated code review, analysis, and documentation.
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.
GEMINI_API_KEY or GOOGLE_API_KEY)Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.
Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.
| 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 |
{
"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 |
Retrieve public web pages as readable Markdown with the reference Fetch MCP server, including pagination for longer responses.
Use Firecrawl MCP to retrieve website content and extract information for research through Firecrawl’s API-backed web tools.
The original Chromium automation reference server — simple, screenshot-driven browser control.
Puppeteer-powered browser control that drives pages from the accessibility tree instead of pixels.
Automates browsers and APIs, enabling Large Language Models (LLMs) to interact with web pages for tasks like screenshot capture and JavaScript
Search built for AI, not humans — semantic web search that returns model-ready content, plus code context.