Skip to content
Edith

Ports

See and stop local servers on your Mac

Find the dev server you forgot to stop, see which project it belongs to, and free its port in one click.

Developer & Data
Get Edith for $35
ed extensions install ports

Ports is an Edith extension that lists every process listening on your Mac, recognises common dev servers and databases, and stops the one holding a port you need.

A day of development leaves servers behind: a Next.js app on 3000, a Vite preview on 5173, an API on 8000, a database or two. When a new server says the port is already in use, the usual fix is a remembered lsof command and a kill. Ports shows the answer directly. Each listening process appears with its port, the project folder it runs in, its full command line, the user that owns it, when it started and how much processor and memory it uses.

Servers are grouped by project and labelled by what they are, from Next.js, Vite, Rails, Django, Flask, FastAPI and Phoenix to Spring, PostgreSQL, Redis, MySQL, MongoDB, Docker and Ollama. A server bound to every network interface is marked as exposed, so you can see at a glance which ones other machines on your network can reach. Open a web server in the browser, copy its address, show its folder in Finder or open it in a terminal.

Stopping is careful. Edith asks the process to exit and waits a few seconds, and only offers a force stop if it is still running. macOS services are never stopped, and secrets in command lines are masked. The list refreshes every two seconds while the page or the widget is on screen and does nothing in the background.

Updated

Ports in Edith listing local servers grouped by project, with Rails on port 4000, Vite on 5173 and Next.js on 3000, each with its command, PID, memory and open, copy and stop buttons

How to find and free a port on your Mac

  1. 1

    Find what is running

    Servers are grouped by project. Exposed ones are reachable from other machines.

  2. 2

    Open or copy

    Open a dev server in the browser or copy its address.

  3. 3

    Free a port

    Stop asks the process to exit, and offers a force stop if it does not.

What it does

Local servers and ports

See which process holds each port, open dev servers and free a port.

Does macOS do this already?

Can I see which app uses a port on a Mac without Terminal?

Not easily. Activity Monitor lists processes but not the ports they listen on, so the usual answer is lsof in Terminal followed by kill. Ports shows every listening port with its process and project, and stops a process with a confirmation instead of a command.

Use cases

Port 3000 is already in use

Run ed ports who 3000 to see which project's server holds it, then ed ports kill 3000 --yes to free it, or click Stop on the Ports page.

Check what your Mac exposes

The Exposed filter shows servers listening on every interface, such as a database started with a default configuration, so you can stop them or bind them to localhost.

Jump back into a project

The Home and desktop widget lists running dev servers with an Open button, so the app you were working on is one click away.

From the terminal and your coding agents

Every example returns JSON with --json, and agents can call the same thing over MCP.

Terminal
ed ports lsed ports who 3000ed ports kill 3000 --yesed ports open 5173
CommandMCP tools
ed portsedith_ports_*

Connect Claude Code, Codex, Cursor or another client through the Edith MCP server.

Permissions and requirements

Permissions

  • None. Ports reads the processes of the signed-in user without administrator rights.

Requirements

  • macOS 14 or later on Apple silicon
  • Edith running

Frequently asked questions

Why does port 5000 show AirPlay Receiver?

macOS listens on ports 5000 and 7000 for AirPlay when AirPlay Receiver is on in Sharing settings. Ports labels it and never stops it; turn the receiver off or run your server on another port.

Can it see servers run by other users?

No. Without administrator rights macOS only shows the sockets of your own processes, so a port held by a system daemon can look free.

Does Ports keep scanning in the background?

No. It scans only while its page or widget is visible, every two seconds, or when you run a command.

Can I use it from the terminal?

Yes. ed ports ls lists dev servers, ed ports who 3000 names the holder, ed ports open 5173 opens one in the browser and ed ports kill 3000 --yes frees the port.