- Knip Mcp Server
Knip Mcp Server
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?
- Cleaning up code after feature implementation
- Auditing dependencies for unused packages
- 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 agoUpdated At
a year agoAuthor Name
gtriasStar
-Language
-License
-Category
developer-tools
Recommend Servers
View AllPortugal Payments Mcp
@junter1989k-ai
11 days ago
mcp-server-flomo MCP Server
@chatmcp
Write notes to Flomo
JavaScript
a year ago
Austria Payments Mcp
@junter1989k-ai
11 days ago
Slovakia Payments Mcp
@junter1989k-ai
11 days ago
Italy Payments Mcp
@junter1989k-ai
11 days ago
Egypt Payments Mcp
@junter1989k-ai
11 days ago
Pakistan Payments Mcp
@junter1989k-ai
11 days ago
Belgium Payments Mcp
@junter1989k-ai
12 days ago
South Africa Payments Mcp
@junter1989k-ai
12 days ago
Nepal Payments Mcp
@junter1989k-ai
11 days ago
Playwright Mcp
@microsoft
Playwright MCP server
TypeScript
a year ago
Ghana Payments Mcp
@junter1989k-ai
12 days ago
Bangladesh Payments Mcp
@junter1989k-ai
11 days ago
Bulgaria Payments Mcp
@junter1989k-ai
11 days ago
Bahrain Payments Mcp
@junter1989k-ai
11 days ago
Israel Payments Mcp
@junter1989k-ai
11 days ago