AI-powered code refactor engine for large repositories, built on Claude Code + MCP.
AI-powered code refactor engine for large repositories, built on Claude Code + MCP. That is what the claude code guardian mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.
CCG stands out as the most comprehensive MCP server for Claude Code:
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.
The server publishes 11 tools. What each one is for:
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 statusmacOS — The macOS tool exposed by this serverWindows — The Windows tool exposed by this serverTroubleshooting — The Troubleshooting tool exposed by this serverBecause this one is hosted, setup is mostly authentication — you point your client at the endpoint and approve access. Nothing runs on your machine, so there is no runtime to keep patched.
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. Claude Code Guardian's toolset — code_scan_repository, code_metrics, code_hotspots and 8 more — is a fair guide to whether it matches your workflow. It is maintained by phuongrealmax; worth a glance at recent repository activity before you build anything load-bearing on it.
SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.
| Tool | What it does |
|---|---|
| code_scan_repository | Map your entire codebase |
| code_metrics | Calculate complexity, nesting, branch scores |
| code_hotspots | Find files that need attention |
| code_refactor_plan | Generate step-by-step refactor plans |
| code_record_optimization | Log optimization sessions |
| code_generate_report | Create Markdown reports |
| code_quick_analysis | Scan + metrics + hotspots in one call |
| code_optimizer_status | Check module status |
| macOS | The macOS tool exposed by this server. |
| Windows | The Windows tool exposed by this server. |
| Troubleshooting | The Troubleshooting tool exposed by this server. |
{
"mcpServers": {
"claude-code-guardian": {
"command": "npx",
"args": ["-y", "codeguardian-studio"]
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
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.