localhost
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@localhostlist my local dev servers and inspect port 3000"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
localhost
localhost is a dependency-free terminal cockpit for the development servers
running on your computer. It is designed for both humans and AI coding agents.
NAME URL STACK PID BRANCH
storefront http://localhost:3000 Next.js 48102 checkout-redesign
api http://localhost:8000 FastAPI 48177 mainQuick start
Requires Node.js 20+ and lsof (included with macOS and commonly available on
Linux).
Run it without installing:
npx localhost-cockpitOr install the command globally:
npm install --global localhost-cockpit
localhost
localhost inspect 3000
localhost watchRelated MCP server: runkeep-mcp
Commands
localhost list [--json] [--all]
localhost inspect <pid|port> [--json]
localhost open <pid|port>
localhost stop <pid|port> [--force]
localhost watch [seconds]
localhost mcpThe JSON response is versionable, deterministic output for scripts and agents:
localhost list --json | jq '.servers[] | {name, port, framework}'By default, obvious operating-system listeners are hidden and cannot be targeted
by the inspect or stop commands. Use localhost list --all only when diagnosing
discovery itself.
MCP integration
Add the server to an MCP-capable coding agent using a stdio configuration. This version needs no global installation:
{
"mcpServers": {
"localhost": {
"command": "npx",
"args": ["--yes", "localhost-cockpit", "mcp"]
}
}
}If the package is installed globally, use "command": "localhost" and
"args": ["mcp"] instead.
Tools exposed:
list_servers— discover listening servers and their project contextinspect_server— inspect a server by port or PIDstop_server— terminate a verified listener; requiresconfirm: true
stop_server re-runs discovery immediately before signaling the process. This
prevents an agent from acting on stale process information.
The server supports both the modern MCP 2026-07-28 server/discover lifecycle
and the legacy initialize lifecycle. Tool results include both human-readable
text and schema-declared structuredContent.
Current scope
This first release supports macOS and Linux systems with lsof. Stable local
domains, aggregated logs, Docker metadata, and a full-screen interactive TUI are
planned next.
Development
npm install
npm link
localhost
npm test
npm run checkLicense
MIT
Related MCP Connectors
Discover MCP servers, A2A agents, and shared agent knowledge through a read-only MCP gateway.
Discover Agents and MCP capabilities with versions, permissions, and real-work trust context.
Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.
Search, vet & assemble MCP servers from your agent: verified tools, risk labels, and trust scores.
Related MCP Servers
- AlicenseAqualityDmaintenanceInspect, manage, and kill local dev servers via MCP. Stop guessing what's on :3000. Five tools: list servers with framework detection, inspect ports, find zombies, diagnose conflicts, safe-kill with dry-run default. Local, no cloud, no telemetry.516 npm3MIT
- AlicenseNot gradedqualityCmaintenanceEnables management of long-running development processes (such as dev servers, compilers, and watchers) from MCP hosts. Provides tools to start, stop, restart, check status, view logs, and send input to managed processes.MIT
- AlicenseNot gradedqualityBmaintenanceSee and control the local dev servers your coding agents leave running. Lists listeners with provenance — which agent, terminal and git worktree started each — kills strays, and allocates collision-free ports so parallel agents stop fighting over :3000.MIT
- AlicenseNot gradedqualityAmaintenanceMCP server for managing local dev ports on macOS. It enables AI agents to inspect listening ports, identify owning processes and parent chains, kill processes safely, wait for ports, and report LAN exposure.7 npm1MIT