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

@knip/mcp

Knip MCP Server

11k stars3k/wkupdated 4d agogithub ↗
90excellent
▣ Overview

What it does

Knip is a static analysis tool that identifies unused dependencies, exports, and files in JavaScript and TypeScript projects. When invoked through this MCP server, Claude can directly analyze your codebase to surface dead code—packages you can remove, exports no one imports, and files with no references. The tool reads your project's dependency graph and filesystem to build a complete picture of what's actually in use.

Who it's for

Frontend and backend developers performing code cleanup, refactoring, or dependency audits. Teams working on tech debt reduction, monorepo maintenance, or any codebase where dead code has accumulated over time and dependency size matters.

Common use cases

  • Audit npm dependencies and identify ones safe to remove
  • Find dead exports that are no longer imported anywhere in the codebase
  • Discover unreachable files or entire modules that serve no purpose
  • Validate a large refactoring actually removed all dead code
  • Clean up monorepo workspaces for reduced build and install time

Setup pitfalls

  • Requires read and write filesystem access to analyze your project structure
  • Node.js and npm required; Knip inspects package.json and may query npm registry for dependency metadata
  • Monorepo projects may need custom configuration to exclude build outputs and resolve internal dependencies correctly
  • False positives possible for dynamically imported code or string-based requires outside Knip's static analysis scope
▣ Score BreakdownMCPScore = Σ(raw × weight)
DimensionRawWeighted
Security
35%
100
35.0
Freshness
25%
100
25.0
Adoption
20%
81
16.3
Quality
10%
90
9.0
Trust
10%
50
5.0
Total
90.3
⚿ 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 33 snapshots
4/30/20266/11/2026 · 33 snapshots
⚙ Maintenance health
62/ 100 · is this project alive?
contributors (1y)90
top contributor share84%
releases (1y)100
last release7d ago
ci✓ passing
⛁ Raw data
weekly downloads3k
github stars11k
forks420
open issues21
license✓ present
readme length2753 chars
last publish0d ago
last commit4d ago
last updated1d ago
install verified✓ pass · 32d 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