CodeBase Optimizer
About
Analyzes, optimizes, and detects duplicates in codebases for Claude Code.
Details
- Author
- liadgez
- Categories
- Developer Tools, Other, AI
Jump to
Setup
Install CodeBase Optimizer in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/liadgez/codebase-optimizer-mcp
Follow the installation instructions in the repository README, then restart your MCP client.
Analyzes, optimizes, and detects duplicates in codebases for Claude Code.
A sophisticated Model Context Protocol (MCP) server that provides comprehensive codebase analysis, optimization, and duplicate detection capabilities for Claude Code.
- Project structure and architecture detection
- Cross-language code duplication detection
- Microservices architecture validation
- Configuration optimization analysis
- Security and performance insights
- Pattern recognition that improves with each use
- Project-specific recommendations
- Historical analysis tracking
- Custom rule learning
- Integrates directly with Claude Code
- No additional installations needed
- Works with any programming language
- Portable across all projects
- analyze_project_structure- Analyze project organization and architecture
- detect_code_duplicates- Find duplicate code across multiple languages
- validate_microservices_architecture- Validate microservices patterns
- optimize_configurations- Analyze configuration management
- generate_improvement_report- Generate comprehensive actionable report
- run_complete_project_analysis- 🎯ONE-COMMAND COMPLETE ANALYSIS
- Runs all analyses in optimal order
- Provides prioritized action plan
- Generates health score and improvement roadmap
Add this to your Claude Code MCP configuration:
{ "mcpServers": { "codebase-optimizer": { "command": "python", "args": ["/Users/liadgez/Documents/codebase-optimizer-mcp/server.py"], "env": { "PYTHONPATH": "/Users/liadgez/Documents/codebase-optimizer-mcp" } } } }
The tool will be automatically available in all Claude Code sessions.
Use run_complete_project_analysis with path "/path/to/your/project"
Use detect_code_duplicates with path "/path/to/project" and languages ["python", "javascript"]
Use validate_microservices_architecture with path "/path/to/microservices/project"
Use generate_improvement_report with path "/path/to/project"
Health Score: 87/100 - Organization Score: 0.9/1.0 - Duplication: 3.2% - Security Score: 0.95/1.0
🔴 HIGH: Address security issues in configuration files 🟡 MEDIUM: Consolidate 12 duplicate functions into shared modules 🟢 LOW: Standardize naming conventions across directories
Phase 1: Critical Issues (1-2 days) - Fix environment variable exposure - Remove hardcoded secrets Phase 2: Improvements (3-5 days) - Refactor duplicate code blocks - Standardize API error handling
- Python (.py)
- JavaScript (.js)
- TypeScript (.ts)
- Java (.java)
- Go (.go)
- Rust (.rs)
- C/C++ (.c, .cpp)
- PHP (.php)
- Ruby (.rb)
- Learns patterns from each project analyzed
- Builds knowledge database of common issues
- Improves recommendations based on past successes
- Adapts to your specific coding patterns
- Verify MCP configuration path is correct
- Restart Claude Code after adding configuration
- Check Python dependencies are installed
- Ensure project path exists and is accessible
- Check that Python can read the project directory
- Verify no permission issues on the project folder
- Large projects (>10k files) may take longer to analyze
- Use "quick" depth for faster analysis on huge codebases
- Pattern database improves performance over time
- Engine: Sophisticated analysis engine with ML pattern recognition
- Database: SQLite for pattern learning and improvement tracking
- MCP Server: Standards-compliant Model Context Protocol implementation
- Extensibility: Plugin system for custom analyzers
- Pattern database stored incodebase_patterns.db
- No sensitive data stored - only patterns and metrics
- Database grows smarter with each project analyzed
- Add new analyzers tocodebase_optimizer_engine.py
- Expose new functions inserver.py
- Update tool schema for new parameters
- Test with various project types
MIT License - Feel free to use and modify for your projects.
Made with ❤️ for better codebases everywhere
This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.
next-devtools-mcp is a MCP server that provides Next.js development tools and utilities for AI coding assistants like Claude and Cursor.
A demonstration server for ActionKit, providing access to Slack actions via Claude Desktop.
MCP server that lets Claude Code agents delegate tasks to agents in other project directories, with parallel dispatch, sessions, and async jobs.
Anchor Browser (https://anchorbrowser.io) is secure infrastructure for computer-use agents — stealth cloud browsers, authentication, captcha bypass, and a hosted MCP server for Cursor, Claude, and Windsurf.
Open-source Claude Code plugin replacing Read/Grep/Edit/Bash with token-efficient versions. Independently benchmarked at 57% token reduction on real codebases. 40 MCP tools.
Connects Blender to Claude AI via the Model Context Protocol (MCP), enabling direct interaction and control for prompt-assisted 3D modeling, scene creation, and manipulation.
Context-optimized security plugin for Claude Code that builds architecture maps and redacts secrets.
Charon gives AI clients scoped, auditable access to Lethe memory. connect to Chatgpt or Claude to store memories locally.
Score CLAUDE.md/AGENTS.md, validate clarx-manifest.json, generate CI workflows, and pull repo scan findings into Cursor, Claude, or Grok.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





