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-bot

Ever 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

npx -y github:Isco0819/trim-bot