$ timeahead.in
/ servers/npm/@knip/mcp
npm

@knip/mcp

Knip MCP Server

11k stars3k/wkupdated 0d agogithub ↗
92excellent
▣ Overview

What it does

Knip analyzes JavaScript and TypeScript codebases to identify unused dependencies, exports, and files that can be safely removed. This analysis helps reduce bundle size, simplify maintenance, and make future refactorings easier. The MCP server integration lets Claude query your project's code analysis and provide recommendations for cleanup opportunities.

Who it's for

Frontend and backend engineers managing dependencies in production JavaScript or TypeScript codebases. Especially valuable for teams maintaining monorepos, planning major dependency upgrades, or conducting periodic code audits.

Common use cases

  • Identify unused npm dependencies before upgrading package versions
  • Find dead code exports and re-export chains across monorepo packages
  • Locate orphaned source files no longer imported anywhere in the project
  • Verify whether listed dependencies are actually used or can be removed
  • Plan removal of transitive dependencies ahead of major version bumps

Setup pitfalls

  • Requires filesystem read and write permissions; ensure appropriate sandboxing based on your security model
  • May report false positives for dynamic imports, computed require() calls, or plugin systems; manual review of findings is recommended
  • Analysis of large monorepos can be time-consuming; test on a subset of packages first
  • Requires valid Knip configuration (knip.config.ts or a knip field in package.json) for accurate results
▣ Score BreakdownMCPScore = Σ(raw × weight)
DimensionRawWeighted
Security
35%
100
35.0
Freshness
25%
100
25.0
Adoption
20%
82
16.5
Quality
10%
100
10.0
Trust
10%
50
5.0
Total
91.5
⚿ Capabilities & Risk Explainer
fs readfs writenetworkexecevalsecrets
◆ Risk level: high
fs read + fs write + network + exec + eval + secrets active — can execute code, access credentials, and make external network calls.
⚙ Install config
Claude Desktop · Cursor · Windsurf · VS Code (Copilot) · Claude Code
add to your MCP client config:
{
  "mcpServers": {
    "knipmcp": {
      "command": "npx",
      "args": [
        "-y",
        "@knip/mcp"
      ]
    }
  }
}
⚙ Maintenance health
62/ 100 · is this project alive?
contributors (1y)89
top contributor share84%
releases (1y)100
last release0d ago
ci✓ passing
⛁ Raw data
weekly downloads3k
github stars11k
forks416
open issues7
license✓ present
readme length2753 chars
last publish0d ago
last commit0d ago
last updated9h ago
install verified✓ pass · 23d ago
owner of this server? claim your listing to get a verified badgeclaim →
🔔 Score drop alerts
get notified by email when this server's score drops 5+ points