@knip/mcp

License
ISC
Install Size
984.3 kB(28.7 MB)
Vulns
0
Published

Get started

$npm install @knip/mcp
# Run locally
$npx knip-mcp

Readme

Knip MCP Server

Knip

The Knip MCP Server is powered by Knip: Find unused files, dependencies, and exports in your JavaScript/TypeScript projects.

VS Code Extension

Install the Knip VS Code Extension or Knip Open VSX Extension — it comes with the MCP Server included.

MCP Server

Add to your MCP configuration:

{
  // or "mcpServers"
  "servers": {
    "knip": {
      "command": "npx",
      "args": ["-y", "@knip/mcp"],
    },
  },
}

Prompts

  • knip-configure — Guided workflow to set up and optimize Knip configuration

Tools

  • knip-run — Run Knip, returns configuration hints and issues
  • knip-docs — Get Knip documentation by topic

Resources

All pages of the Knip documentation are available as MCP resources (knip://docs/{topic}).