MCP.so
登录

MCP Port Cleaner Server

@BrightLin

基本信息

分类

其他

传输方式

stdio

作者

BrightLin

关于 MCP Port Cleaner Server

Use this MCP Server when you encounter 'EADDRINUSE' (Address already in use).

MCP Port Cleaner Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "port-cleaner": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-port-cleaner"
      ]
    }
  }
}

MCP Port Cleaner Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。

概览

What is MCP Port Cleaner Server?

It is a Node.js server implementing the Model Context Protocol (MCP) for port cleanup operations in development environments. It helps developers find and terminate processes occupying specified ports to resolve conflicts.

How to use MCP Port Cleaner Server?

Install via npx (npx -y mcp-server-port-cleaner) or globally (npm install -g mcp-server-port-cleaner). Configure it as an MCP server in Claude Desktop or Trae.cn using the tool commands port_scan (list processes on a port) and port_clean (terminate processes on a port), both accepting a port integer (1–65535) as input.

Key features of MCP Port Cleaner Server

  • Finds and terminates processes occupying specified ports
  • Scans and lists all processes on a specified port (cross-platform)
  • Safe input validation using Zod schema
  • Detailed error handling and response formatting
  • Standard MCP protocol compliance for tool registration

Use cases of MCP Port Cleaner Server

  • Resolving development environment port conflicts
  • Automating port cleanup in CI/CD pipelines
  • Managing port availability on shared development servers

常见问题

1

What tools does MCP Port Cleaner Server provide?

It provides two tools: `port_scan` to list processes on a port and `port_clean` to terminate processes on a port.

2

What platforms are supported?

Linux/Unix and Windows are supported, using platform‑specific commands such as `lsof`, `kill`, `netstat` on Linux/Unix and `netstat`, `tasklist`, `taskkill` on Windows.

3

What input parameters are required?

Both tools require a `port` parameter as an integer between 1 and 65535.

4

How does the termination work?

The cleanup implementation terminates processes with SIGKILL (-9).

评论

其他 分类下的更多 MCP 服务器