Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

AI-powered code refactor engine with 80+ MCP tools for code analysis, hotspot detection, complexity metrics, persistent memory, and automated refactoring plans.

README.md

Code Guardian Studio

![npm version](https://www.npmjs.com/package/codeguardian-studio) ![npm downloads](https://www.npmjs.com/package/codeguardian-studio) ![license](https://github.com/phuongrealmax/code-guardian/blob/main/LICENSE) ![node](https://nodejs.org) ![MCP Tools](https://codeguardian.studio) ![MCP Server](https://mcp.so/server/code-guardian) ![GitHub stars](https://github.com/phuongrealmax/code-guardian) ![GitHub Discussions](https://github.com/phuongrealmax/code-guardian/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

---

Why CCG?

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:

  • All-in-one: Guard + Metrics + Workflow + Memory in a single server
  • 113+ MCP tools: The most comprehensive toolset available
  • Session management: Resume work across conversations
  • Real-time progress: Track refactoring progress with live dashboard
  • Latent Chain: Multi-phase reasoning for complex tasks

Want detailed comparisons? See CCG vs Competitors

---

What is Code Guardian Studio?

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.

Key Stats (from dogfooding CCG on itself)

| Metric | Value | |--------|-------| | Lines Analyzed | 68,000 | | Files Scanned | 212 | | Hotspots Found | 20 | | Analysis Time | < 1 minute |

3-Minute Quickstart

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:

  • Initialize CCG in your project
  • Scan your codebase
  • Analyze code complexity and hotspots
  • Generate a detailed markdown report

Open the generated report and start fixing hotspots (highest score first).

Want more control? See Manual Setup or read the full Quickstart Guide.

Features

Code Optimizer (8 tools)

  • 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

Additional Modules

  • Memory - Persistent storage across sessions
  • Guard - Block dangerous patterns (fake tests, empty catches, etc.)
  • Workflow - Task management and tracking
  • Latent Chain - Multi-phase reasoning for complex tasks
  • Agents - Specialized agent coordination
  • Thinking - Structured reasoning models
  • Documents - Documentation management
  • Testing - Test runner integration

Pricing

| 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.

Links

  • Website: https://codeguardian.studio
  • Case Study: https://codeguardian.studio/case-study
  • Partners: https://codeguardian.studio/partners
  • GitHub: https://github.com/phuongrealmax/code-guardian
  • MCP Directory: https://mcp.so/server/code-guardian
  • GitHub Action: ccg-action - CI/CD integration for PR analysis

Manual Setup

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.

Installation Requirements

CCG uses better-sqlite3 (native SQLite bindings) which requires build tools on your system:

Linux (Ubuntu/Debian)

sudo apt-get update
sudo apt-get install build-essential python3
npm install -g codeguardian-studio

macOS

# Install Xcode Command Line Tools
xcode-select --install

npm install -g codeguardian-studio

Windows

# Install Visual Studio Build Tools
# Download from: https://visualstudio.microsoft.com/downloads/

npm install -g codeguardian-studio

Docker

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

Troubleshooting

Error: gyp ERR! stack Error: not found: make

  • Solution: Install build tools (see above for your OS)

Error: Module did not self-register

  • Solution: Node.js version mismatch. Rebuild with:
  npm rebuild better-sqlite3

ARM64 compatibility:

  • ✅ Supported on Apple Silicon (M1/M2/M3)
  • ✅ Supported on Ubuntu ARM64
  • May require build from source on some platforms

Documentation

Community & Support

Have questions or ideas? We'd love to hear from you!

License

MIT (open-core). See LICENSE for details.

---

Built with Claude. Protected by Guardian.

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Vector & Memory servers.