- 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 AllHong Kong Payments Mcp
@junter1989k-ai
11 days ago
Filesystem
@modelcontextprotocol
3 months ago
Uae Payments Mcp
@junter1989k-ai
11 days ago
Oman Payments Mcp
@junter1989k-ai
10 days ago
Playwright Mcp
@microsoft
Playwright MCP server
TypeScript
a year ago
Slovakia Payments Mcp
@junter1989k-ai
10 days ago
Kuwait Payments Mcp
@junter1989k-ai
10 days ago
Latvia Payments Mcp
@junter1989k-ai
10 days ago
Greece Payments Mcp
@junter1989k-ai
10 days ago
Jordan Payments Mcp
@junter1989k-ai
10 days ago
Switzerland Payments Mcp
@junter1989k-ai
11 days ago
Canada Payments Mcp
@junter1989k-ai
11 days ago
Spain Payments Mcp
@junter1989k-ai
11 days ago
Uruguay Payments Mcp
@junter1989k-ai
10 days ago
Rwanda Payments Mcp
@junter1989k-ai
10 days ago
Lithuania Payments Mcp
@junter1989k-ai
10 days ago
Saudi Arabia Payments Mcp
@junter1989k-ai
11 days ago
Cyprus Payments Mcp
@junter1989k-ai
10 days ago