Purpose: Solve common port occupation and leftover process issues during development, such as EADDRINUSE :::3000, node/vite/next processes left over from last week occupying memory, and not knowing which development servers are still running after switching projects. It turns repetitive operations like lsof -i :3000 and kill -9 <pid> into a single tool call.
Main capabilities: Check local port listening status, identify the processes occupying ports, detect framework types, and support terminating processes by PID or port. It can detect frameworks such as next.js, vite, nuxt, remix, astro, webpack-dev-server, esbuild, create-react-app, express, fastify, koa, hono, rails, django, flask, fastapi, uvicorn, gunicorn, deno, bun, php-builtin, jekyll, hugo, etc.; when the command line is more generic (such as node server.js), it falls back to package.json sniffing.
Usage: Run as a stdio MCP server, and it can be connected to Claude Code or any MCP-compatible client. kill_server defaults to dry-run, and confirm=true must be passed for it to actually terminate.
Security restrictions: Refuse to terminate system processes with PID < 1000; refuse processes outside the development whitelist (node, python, ruby, go, deno, bun, php, java, rails, vite, next, etc.); send SIGTERM first, then escalate to SIGKILL after a 5-second timeout.
Platform support: Full support on macOS (using lsof); full support on Linux (using lsof + /proc); Windows only has basic port scanning (using netstat), with limited cwd and framework detection. Can be built from source.