Claude Code Guardian MCP Server

AI-powered code refactor engine for large repositories, built on Claude Code + MCP.

Remote serverstreamable-http

What is the Claude Code Guardian MCP server?

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.

The short version

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.

  • 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

The tools it exposes

The server publishes 11 tools. What each one is for:

  • 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

Getting it running

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

How it compares

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.

Things to watch

  • Your data travels to the provider's service, so the usual questions apply about what you send and what they retain.
  • With 11 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Claude Code Guardian.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
code_scan_repositoryMap your entire codebase
code_metricsCalculate complexity, nesting, branch scores
code_hotspotsFind files that need attention
code_refactor_planGenerate step-by-step refactor plans
code_record_optimizationLog optimization sessions
code_generate_reportCreate Markdown reports
code_quick_analysisScan + metrics + hotspots in one call
code_optimizer_statusCheck module status
macOSThe macOS tool exposed by this server.
WindowsThe Windows tool exposed by this server.
TroubleshootingThe Troubleshooting tool exposed by this server.

How to install the Claude Code Guardian MCP server

{
  "mcpServers": {
    "claude-code-guardian": {
      "command": "npx",
      "args": ["-y", "codeguardian-studio"]
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Example prompts to try

  • Use Claude Code Guardian to code scan repository.
  • Use Claude Code Guardian to code metrics.
  • Use Claude Code Guardian to code hotspots.

Frequently asked questions

It connects Claude Code Guardian to MCP-compatible AI assistants such as Claude and Cursor, exposing 11 tools (code_scan_repository, code_metrics, code_hotspots, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Claude Code Guardian directly.