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

@knip/mcp

Knip MCP Server

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

What it does

Knip identifies unused dependencies, exports, and files in JavaScript and TypeScript projects through static analysis. The MCP server wraps Knip's capabilities, letting you audit your codebase directly from Claude conversations. Reducing unused code and dependencies improves performance, reduces maintenance burden, and simplifies refactoring.

Who it's for

JavaScript and TypeScript developers and engineering teams managing projects of any size who want to understand their dependency footprint and eliminate dead code. Particularly useful during refactoring cycles, version upgrades, or when modernizing inherited codebases.

Common use cases

  • Identify unused npm dependencies that can be safely removed
  • Find unreferenced exports and dead code within modules
  • Analyze dependency health before a major version upgrade
  • Scan inherited codebases to understand maintenance burden
  • Generate reports on code bloat for code review discussions

Setup pitfalls

  • Filesystem access: Knip reads your entire project structure and can apply fixes; requires read and write permissions on your source tree
  • Network connectivity: Needs npm registry access for dependency graph resolution
  • Monorepo configuration: Complex monorepos may require explicit Knip configuration for accurate cross-workspace analysis
  • Breaking changes: Auto-fixing can remove imports and exports; review all changes before committing
▣ 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"
      ]
    }
  }
}
📈 Score historylast 30 snapshots
4/30/20266/6/2026 · 30 snapshots
⚙ 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 updated6h 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