More apps from usSnipora

Features · MCP server

An MCP server for your local dev servers

An agent that starts a dev server should be able to find it and stop it again, without guessing PIDs from lsof output.

In short

Run claude mcp add portlivo -- /usr/local/bin/devports mcp once. The agent then gets three tools: list_servers, stop_server and restart_server. It sees each server’s port, project, branch and uptime, and servers whose folder is gone are marked as leftovers.

Ask AIChatGPTClaudePerplexityGoogle AIGrok

zsh — ~/Code

➜ ~/Code

Set it up

  1. Install devports: in Settings, press Copy Install Command and paste it into Terminal. See the CLI.
  2. Add the server to your agent (below).
  3. Ask the agent something like “which dev servers are running?” or “stop whatever is on 3000”.

Claude Code:

claude mcp add portlivo -- /usr/local/bin/devports mcp

Cursor, in ~/.cursor/mcp.json:

{
  "mcpServers": {
    "portlivo": { "command": "/usr/local/bin/devports", "args": ["mcp"] }
  }
}

Use the full path: agents often start with a shorter PATH than your shell.

The tools

ToolDoes
list_serversEach server’s port, PID, project, git branch, uptime, folder and command. Servers whose project folder is gone are marked as leftovers. all: true adds system processes
stop_serverStops what listens on a port, with SIGTERM
restart_serverStops a project’s server and starts it again with its exact command and environment. Its output then goes to a log file, and the reply says where

What it won’t do

  • Docker containers and Homebrew or launchd services aren’t stopped or restarted: killing their process would just bring them back. The reply gives the right command, such as brew services stop redis, so the agent can ask you.
  • It never force-kills, and it only reaches processes your user account owns.
  • Everything stays on your Mac: the server talks to the agent over stdin and stdout, with no network port of its own.

Questions people ask

Does it need the Portlivo app running?
No. The agent starts devports mcp itself. It needs a license or an active trial, like the app.
Which agents does it work with?
Any that support MCP servers over stdio, including Claude Code, Cursor and Claude Desktop.
How is this different from the agent running lsof and kill?
It gets the project, branch and leftover status in one call instead of parsing lsof, and it can’t stop Docker or a Homebrew service by mistake. See also AI agent servers.

Try Portlivo free for 7 days. Every feature, no account.

Download for Mac

Still have a question?

Write to us — a real developer reads every email and replies personally.

support@portlivo.com