Skip to content

Integrations

The official VS Code extension provides a rich integration with the Knip Language Server:

  • Diagnostics: Inline warnings for unused dependencies, exports and files
  • Hover Information: Hover over exports to see import and usage locations
  • Imports Tree View: Direct links to implementations
  • Exports Tree View: Direct links to import and usage locations
  • Contention Detection: Warnings for circular dependencies, conflicts and branched import chains
  • Built-in MCP Server: Automated configuration support for coding agents

Find Knip on the VS Code Marketplace and find Knip in the Open VSX Registry.

See below for screenshots.

A community plugin is available for JetBrains IDEs including WebStorm, IntelliJ IDEA, and others. The plugin is powered by the Knip Language Server and provides diagnostics. Find Knip on the JetBrains Marketplace.

The standalone MCP Server enables coding agents to configure Knip automatically. Tell your agent to “configure knip” and it will use the available tools to create, analyze and optimize your knip.json configuration.

The Knip MCP Server is available separately and built into the Knip VS Code Extension.

Start:

Terminal window
npx @knip/mcp

Note: The VS Code extension has this MCP Server built-in.

The IDE integrations are powered by the Knip Language Server. It builds the full module graph of your project and provides a session with a graph explorer. See the Knip Language Server documentation for more details and information on integrating Knip.

Lint Findings

Hover over imports and exports

The IDE extension shows extra issues in the tree views like circular dependencies.

Circular Dependencies

Conflicts

Branching

VS Code Extension Settings

ISC License © 2024 Lars Kappert