Codereaper MCP Server

AI-driven JavaScript dead code elimination for Cursor (MCP server)

Local serverstdioPython

What is the Codereaper MCP Server?

AI-driven JavaScript dead code elimination for Cursor (MCP server)

What the server does

CodeReaper is an AI-driven MCP tool for Cursor that finds and removes dead JavaScript by exploring real UIs and capturing V8 coverage.

  • Autonomous UI exploration via the Index browser agent
  • V8 precise coverage to identify zero-execution functions
  • Risk scoring and removal recommendations
  • Patch generation and optional verification replay
  • MCP integration for Cursor workflows

Credentials and setup notes

  • Python 3.11+ - Playwright Chromium (installed via playwright install chromium) - A Gemini API key (or OpenAI / Anthropic if you change providers)

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
find_dead_codeFull pipeline: scan + analyze. Returns dead-code report with file paths, line numbers, risk scores, and removal recommendations.
scan_websiteScan only (no analysis). Returns scan_id for later use.
analyze_dead_codeAnalyze a completed scan. Takes scan_id.
generate_patchesGenerate unified diffs to remove dead code (conservative / balanced / aggressive).
get_patch_diffRetrieve the combined diff for a patch.
apply_patchApply a patch to source files (stores snapshots for rollback).
verify_patchRe-run the browser agent to check for regressions after patching.
rollback_patchRestore original files from pre-patch snapshots.
list_scansList recent scans.
get_scan_statusGet detailed status of a scan.

How to install the Codereaper MCP Server

{
  "mcpServers": {
    "codereaper": {
      "command": "uvx",
      "args": ["codereaper"],
      "env": {
        "GEMINI_API_KEY": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

  • Python 3.11+ - Playwright Chromium (installed via playwright install chromium) - A Gemini API key (or OpenAI / Anthropic if you change providers)
VariableDescriptionRequired
GEMINI_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • “Use Codereaper to find dead code.”
  • “Use Codereaper to scan website.”
  • “Use Codereaper to analyze dead code.”

Frequently asked questions

AI-driven JavaScript dead code elimination for Cursor (MCP server) Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.