code-guardian
Code Guardian Studio – AI-powered code refactor engine for large repositories, built on Claude Code + MCP.
claude mcp add --transport stdio phuongrealmax-code-guardian npx -y codeguardian-studio
How to use
Code Guardian Studio (CCG) is an MCP server that acts as an intelligent refactoring assistant for Claude Code-based workflows. It provides a large suite of MCP tools (113+ capabilities) including code analysis, hotspot detection, refactor planning, memory persistence, workflow management, guard rules, and latent chain reasoning, all in a single server. You can run analyses, generate reports, manage sessions across conversations, and track real-time progress through a unified dashboard. The quickstart flow lets you install the package globally, initialize CCG in your project, and run an end-to-end analysis that scans your codebase, computes complexity and hotspots, and outputs a detailed markdown report for immediate action. For more advanced usage, you can tailor analyses, generate custom reports, and leverage modules like Memory, Guard, and Workflow to fit your development process.
How to install
Prerequisites:
- Node.js (recommended current LTS) and npm installed on your system
- Internet access to install the MCP package
Option A: Install and run via npx (no permanent install required)
- Ensure Node.js is installed:
- macOS/Linux: node -v && npm -v
- Windows: node -v && npm -v
- Run Code Guardian Studio via npx (the MCP server): npm init -y npx -y codeguardian-studio
Option B: Install globally for repeated use
- Ensure Node.js is installed: node -v npm -v
- Install the package globally: npm install -g codeguardian-studio
- Initialize in your project (example): ccg init
- Run an analysis with custom options (example): ccg code-optimize --report
Notes:
- The package is named codeguardian-studio and is the MCP server wrapper around Code Guardian Studio.
- If you prefer to run locally from a project, follow the Manual Setup steps in the documentation after installation.
Additional notes
Tips and caveats:
- Ensure build tools are available if you need native modules (better-sqlite3) depending on your platform. See the Installation Requirements in the README for OS-specific details.
- ARM64 (Apple Silicon) is supported, but some environments may require rebuilding native bindings: npm rebuild better-sqlite3
- If you run into environment-related build errors, install the required system packages for your OS (build-essential on Linux, Xcode CLI tools on macOS, and Visual Studio Build Tools on Windows).
- The Dev/Team/Enterprise licensing impacts feature access; verify license status if you plan to use advanced MCP tools or the full feature set.
- For containerized deployments, consider using the Docker snippet in the README to ensure build dependencies are present in the image.
Related MCP Servers
cc-session-search
MCP server for searching and analyzing Claude Code conversation history
claude-code-memory
A Claude Code plugin that gives Claude fully automatic, per-project cognitive memory with hybrid search, session lifecycle hooks, and local embeddings.
mcpman
The package manager for MCP servers — install, manage & monitor across Claude Desktop, Cursor, VS Code, Windsurf
passwd
MCP server + CLI for passwd.team password manager — give your AI assistant access to passwords, TOTP codes, secrets, and sharing
hive-memory
Cross-project memory for AI coding agents. MCP server that maintains context, decisions, and knowledge across workspaces. Fully local.
localdata
A dynamic MCP server for local databases and text files with enhanced security and query buffering capabilities