- 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 AllAmap Maps
@amap
高德地图官方 MCP Server
a year ago
Traveltype Mcp Server
31 minutes ago
Filesystem
@modelcontextprotocol
2 months ago
Serper MCP Server
@garymengcom
A Serper MCP Server
Python
a year ago
Pet And Veterinary Products Recall
@agentprolabs
22 minutes ago
Airtreks Mcp
@SEKeener
18 hours ago