loading…
Search for a command to run...
loading…
AI-powered code refactor engine with 80+ MCP tools for code analysis, hotspot detection, complexity metrics, persistent memory, and automated refactoring plans.
AI-powered code refactor engine with 80+ MCP tools for code analysis, hotspot detection, complexity metrics, persistent memory, and automated refactoring plans.
npm version npm downloads license node MCP Tools MCP Server GitHub stars GitHub Discussions
AI-powered code refactor engine for large repositories, built on Claude Code + MCP.
Version: 4.1.0 | License: MIT (open-core)
Website & Docs: https://codeguardian.studio
CCG stands out as the most comprehensive MCP server for Claude Code:
| CCG | Guardrails AI | NeMo | Semgrep MCP | |
|---|---|---|---|---|
| MCP Tools | 113+ | - | - | ~10 |
| Code Analysis | ✅ | ❌ | ❌ | ✅ |
| Hotspot Detection | ✅ | ❌ | ❌ | ❌ |
| Workflow Management | ✅ | ❌ | ❌ | ❌ |
| Session Persistence | ✅ | ❌ | ❌ | ❌ |
| Memory System | ✅ | ❌ | ❌ | ❌ |
| Progress Dashboard | ✅ | ❌ | ❌ | ❌ |
| Latent Chain Reasoning | ✅ | ❌ | ❌ | ❌ |
| Guard Rules | ✅ | ✅ | ✅ | ✅ |
Key Differentiators:
Want detailed comparisons? See CCG vs Competitors
Code Guardian Studio (CCG) is an MCP server that transforms Claude Code into an intelligent refactoring assistant. It scans your codebase, finds hotspots, generates optimization reports, and helps you refactor safely.
| Metric | Value |
|---|---|
| Lines Analyzed | 68,000 |
| Files Scanned | 212 |
| Hotspots Found | 20 |
| Analysis Time | < 1 minute |
Get your first code analysis in one command:
# Install globally
npm install -g codeguardian-studio
# Run quickstart (auto-initializes + analyzes your code)
ccg quickstart
That's it! The quickstart command will:
Open the generated report and start fixing hotspots (highest score first).
Want more control? See Manual Setup or read the full Quickstart Guide.
code_scan_repository - Map your entire codebasecode_metrics - Calculate complexity, nesting, branch scorescode_hotspots - Find files that need attentioncode_refactor_plan - Generate step-by-step refactor planscode_record_optimization - Log optimization sessionscode_generate_report - Create Markdown reportscode_quick_analysis - Scan + metrics + hotspots in one callcode_optimizer_status - Check module status| Plan | Price | Best For |
|---|---|---|
| Dev | Free | Solo devs, fully offline |
| Team | $19/mo | Product teams & agencies |
| Enterprise | Custom | Large orgs & compliance |
Dev tier is 100% local and self-hostable. Team/Enterprise require license validation via api.codeguardian.studio.
See License Tiers for feature comparison.
If you prefer step-by-step control:
# 1. Install
npm install -g codeguardian-studio
# 2. Initialize CCG in your project
ccg init
# 3. Run analysis with custom options
ccg code-optimize --report
# 4. For advanced options
ccg code-optimize --help-advanced
See the User Guide for more details.
CCG uses better-sqlite3 (native SQLite bindings) which requires build tools on your system:
sudo apt-get update
sudo apt-get install build-essential python3
npm install -g codeguardian-studio
# Install Xcode Command Line Tools
xcode-select --install
npm install -g codeguardian-studio
# Install Visual Studio Build Tools
# Download from: https://visualstudio.microsoft.com/downloads/
npm install -g codeguardian-studio
FROM node:20-slim
# Install build dependencies
RUN apt-get update && apt-get install -y \
build-essential \
python3 \
&& rm -rf /var/lib/apt/lists/*
RUN npm install -g codeguardian-studio
Error: gyp ERR! stack Error: not found: make
Error: Module did not self-register
npm rebuild better-sqlite3
ARM64 compatibility:
Have questions or ideas? We'd love to hear from you!
MIT (open-core). See LICENSE for details.
Built with Claude. Protected by Guardian.
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"phuongrealmax-code-guardian": {
"command": "npx",
"args": []
}
}
}