TrimBot
MCP server that surfaces dead code, unused exports, and stray deps as structured data your AI agent can act on
npx -y github:Isco0819/trim-botEver run into this?
like knip which has 7k+ GitHub stars and is the go-to dead code finder in JS/TS — but its CLI text output is opaque to AI agents. Every refactor session, Claude Code has no structured way to ask 'what is unused in this codebase?' and get machine-readable results it can immediately act on. Dead code accumulates silently across every AI-assisted refactor.
The fix
TrimBot wraps knip as an MCP server, exposing unused files, dead exports, and unlisted dependencies as queryable MCP resources so your agent can find and clean dead code without leaving the chat.
What it does
- MCP resource endpoints for unused files, dead exports, and stray dependencies returned as structured JSON
- MCP tool to run targeted knip analysis scoped to any file or directory path
- zero-config npx startup — auto-detects JS/TS projects via package.json, no knip install required