AI-driven JavaScript dead code elimination for Cursor (MCP server)
If you already use Codereaper, the codereaper mcp server is the piece that lets your assistant work with it directly. AI-driven JavaScript dead code elimination for Cursor (MCP server).
CodeReaper is an AI-driven MCP tool for Cursor that finds and removes dead JavaScript by exploring real UIs and capturing V8 coverage.
The toolset is worth reading before you wire it up, because it tells you what the integration is really for:
find_dead_code — Full pipeline: scan + analyze. Returns dead-code report with file paths, line numbers, risk scores, and removal recommendationsscan_website — Scan only (no analysis). Returns scan_id for later useanalyze_dead_code — Analyze a completed scan. Takes scan_idgenerate_patches — Generate unified diffs to remove dead code (conservative / balanced / aggressive)get_patch_diff — Retrieve the combined diff for a patchapply_patch — Apply a patch to source files (stores snapshots for rollback)verify_patch — Re-run the browser agent to check for regressions after patchingrollback_patch — Restore original files from pre-patch snapshotslist_scans — List recent scansget_scan_status — Get detailed status of a scanInstallation goes through your MCP client rather than a global install: point it at codereaper on PyPI and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.
Configuration is passed through the environment: GEMINI_API_KEY. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.
playwright install chromium) - A Gemini API key (or OpenAI / Anthropic if you change providers)Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Codereaper's toolset — find_dead_code, scan_website, analyze_dead_code and 7 more — is a fair guide to whether it matches your workflow. It is maintained by kaldonia-labs; 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.
| Tool | What it does |
|---|---|
| find_dead_code | Full pipeline: scan + analyze. Returns dead-code report with file paths, line numbers, risk scores, and removal recommendations. |
| scan_website | Scan only (no analysis). Returns scan_id for later use. |
| analyze_dead_code | Analyze a completed scan. Takes scan_id. |
| generate_patches | Generate unified diffs to remove dead code (conservative / balanced / aggressive). |
| get_patch_diff | Retrieve the combined diff for a patch. |
| apply_patch | Apply a patch to source files (stores snapshots for rollback). |
| verify_patch | Re-run the browser agent to check for regressions after patching. |
| rollback_patch | Restore original files from pre-patch snapshots. |
| list_scans | List recent scans. |
| get_scan_status | Get detailed status of a scan. |
{
"mcpServers": {
"codereaper": {
"command": "uvx",
"args": ["codereaper"],
"env": {
"GEMINI_API_KEY": "your-value"
}
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
playwright install chromium) - A Gemini API key (or OpenAI / Anthropic if you change providers)| Variable | Description | Required |
|---|---|---|
| GEMINI_API_KEY | Credential the server authenticates with. | Yes |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.