phuongrealmax/code-guardian

🧮 Data Science Tools
0 Views
0 Installs

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

Quick Install

One-Click IDE Configuration
claude_desktop_config.json
{
  "mcpServers": {
    "phuongrealmax-code-guardian": {
      "command": "npx",
      "args": [
        "-y",
        "phuongrealmax-code-guardian"
      ]
    }
  }
}
Or

Using an AI coding agent (Claude Code, Cursor, etc.)? Copy a ready-made prompt that tells it to fetch the setup instructions and install this server for you.

Documentation Overview

Code Guardian Studio

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


Why CCG?

CCG stands out as the most comprehensive MCP server for Claude Code:

CCGGuardrails AINeMoSemgrep MCP
MCP Tools113+--~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)

MetricValue
Lines Analyzed68,000
Files Scanned212
Hotspots Found20
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

PlanPriceBest For
DevFreeSolo devs, fully offline
Team$19/moProduct teams & agencies
EnterpriseCustomLarge 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

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.

Related MCP Servers

98lukehall/renoun-mcp

🐍 ☁️ - Structural observability for AI conversations. Detects loops, stuck states, breakthroughs, and convergence across 17 channels without analyzing content.

🧮 Data Science Tools0 views
abhiphile/fermat-mcp

🐍 🏠 🍎 🪟 🐧 - The ultimate math engine unifying SymPy, NumPy & Matplotlib in one powerful server. Perfect for developers & researchers needing symbolic algebra, numerical computing, and data visualization.

🧮 Data Science Tools0 views
Archerkattri/mathlas

🐍 🏠 - Airtight math for agents: 3.7M-theorem search, PSLQ constant ID, OEIS, real Lean kernel checks, applicability checklists. No LLM inside, no API key.

🧮 Data Science Tools0 views
arrismo/kaggle-mcp

🐍 ☁️ - Connects to Kaggle, ability to download and analyze datasets.

🧮 Data Science Tools0 views

Engagement

Views
0
Installs
0
Upvotes
0

Views and upvotes are unique per visitor network (hashed IP). Installs count copy actions.

Status

Health: Not checked yet

We have not completed a health check for this listing yet.

No check timestamp yet.

Unclaimed listing (imported or pending owner verification). Claim it →
★ Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to get the verified badge and attach your website.

Claim this listing

Promote this listing

Optional paid placement. Free listings stay free forever.

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.