Knip Mcp Server

Created By
gtriasa year ago
This MCP server provides AI agents with powerful code cleanup capabilities through knip.dev integration. It's designed to work seamlessly with Cursor AI and other MCP-compatible tools to maintain clean, efficient codebases.
Overview

What is Knip MCP Server?

Knip MCP Server is a Model Control Protocol (MCP) server that integrates with knip.dev to assist AI agents in identifying and cleaning up unused files, imports, exports, and dependencies in JavaScript/TypeScript projects.

How to use Knip MCP Server?

To use Knip MCP Server, install it via npm and run the server directly or through npx. Configure it using environment variables to set project paths and logging levels.

Key features of Knip MCP Server?

  • Comprehensive code analysis to find unused code
  • Detection of unused files and imports/exports
  • Management of unused npm dependencies
  • Built-in safety checks and backup mechanisms
  • Full support for monorepo and workspace setups
  • Dry run mode to preview changes before applying them

Use cases of Knip MCP Server?

  1. Cleaning up code after feature implementation
  2. Auditing dependencies for unused packages
  3. Conducting health checks on codebases

FAQ from Knip MCP Server?

  • Can Knip MCP Server clean up all types of projects?

Yes! It is designed for JavaScript and TypeScript projects.

  • Is Knip MCP Server free to use?

Yes! It is open-source and free for everyone.

  • How does the dry run mode work?

The dry run mode allows you to preview changes without making any modifications, ensuring safety during cleanup operations.

Server Config

{
  "mcpServers": {
    "knip": {
      "command": "npx",
      "args": [
        "@genar/knip-mcp-server"
      ],
      "env": {
        "KNIP_PROJECT_ROOT": ".",
        "KNIP_LOG_LEVEL": "info",
        "KNIP_SAFE_MODE": "true"
      }
    }
  }
}
Project Info
Created At
a year ago
Updated At
a year ago
Author Name
gtrias
Star
-
Language
-
License
-

Recommend Servers

View All
Ghl Command
@Elite DCs LLC

GoHighLevel MCP server for Claude. 212 tools across 43 modules, including the only programmatic GHL workflow builder (private API, reverse-engineered), funnel + page editor, form builder, pipeline builder, pre-deploy validator, multi-sub-account switching, bulk operations, and full account export. $97 one-time, lifetime updates. GHL Command gives Claude full programmatic control of GoHighLevel through 212 tools across 43 modules. Built for GoHighLevel agency operators who manage many client sub-accounts and want to onboard new clients in minutes instead of days. Exclusive capabilities (none of the free GHL MCPs have these): - Programmatic workflow builder. Create, edit, clone, publish, and validate complete GHL workflows from a single prompt. GHL's public API has no workflow write endpoints; this uses their internal API (the same one their UI calls). - Funnel + page editor and form builder (also private API). - Pipeline builder, goal event builder, full 57-native-trigger registry. - Pre-deploy validator that catches GHL's silent invalid-ID failure (a common workflow-breaking bug GHL never warns you about). - Multi-sub-account token registry. Switch between any client account mid-conversation; API keys swap automatically. - Bulk operations: tag, update, enroll, delete hundreds of contacts in one command. - Full account export and side-by-side location diff for audit or migration. Works with Claude Desktop App, Claude Code (terminal), and headless on a Linux server or droplet. $97 one-time, 3 machines, no subscription, lifetime updates. 30-day time-back guarantee: save 5+ hours on one real client build or full refund.

2 days ago