local-server-hub
Recognizes local Angular dev servers, reporting listening port, process, project directory, stack, URL, and HTTP status, and helps suggest Angular default or next free ports.
Recognizes local Astro dev servers, reporting listening port, process, project directory, stack, URL, and HTTP status, and helps suggest Astro default or next free ports.
Recognizes local Django dev servers, reporting listening port, process, project directory, stack, URL, and HTTP status, and helps suggest Django default or next free ports.
Detects Docker container port mappings for local services, lists them alongside other listeners, and returns a warning if the Docker CLI is unavailable.
Recognizes local FastAPI dev servers, reporting listening port, process, project directory, stack, URL, and HTTP status, and helps suggest FastAPI default or next free ports.
Recognizes local Flask dev servers, reporting listening port, process, project directory, stack, URL, and HTTP status, and helps suggest Flask default or next free ports.
Recognizes local .NET dev servers, reporting listening port, process, project directory, stack, URL, and HTTP status, and helps suggest .NET default or next free ports.
Recognizes local Node.js dev servers, reporting listening port, process, project directory, stack, URL, and HTTP status, and helps suggest default or next free ports.
Recognizes local Nuxt dev servers, reporting listening port, process, project directory, stack, URL, and HTTP status, and helps suggest Nuxt default or next free ports.
Recognizes local PHP dev servers, reporting listening port, process, project directory, stack, URL, and HTTP status, and helps suggest default or next free ports.
Recognizes local Remix dev servers, reporting listening port, process, project directory, stack, URL, and HTTP status, and helps suggest Remix default or next free ports.
Recognizes local Rust dev servers, reporting listening port, process, project directory, stack, URL, and HTTP status, and helps suggest default or next free ports.
Recognizes local Spring dev servers, reporting listening port, process, project directory, stack, URL, and HTTP status, and helps suggest Spring default or next free ports.
Recognizes local Vite dev servers, reporting listening port, process, project directory, stack, URL, and HTTP status, and helps suggest Vite default or next free ports.
Recognizes local webpack dev servers, reporting listening port, process, project directory, stack, URL, and HTTP status, and helps suggest webpack default or next free ports.
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., "@local-server-hub find a free port for my Vite worktree and reserve it for 8 hours"
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.
local-server-hub
MCP server for local development ports. It lists listening dev servers and leases free ports so parallel agents and worktrees do not collide.
The server does not stop processes.
Tools
Tool | Purpose |
| TCP listeners for the current user: port, pid, command, project directory, stack, URL, HTTP status |
| One port, including its reservation |
| A port that is not listening, not reserved, and can be bound |
| Framework default, or the next free port |
| Lease a port for a project or worktree (default 8 hours, maximum 7 days) |
| Drop a lease |
| Active leases |
Leases are stored in ~/.local-server-hub/reservations.json. Override the directory with LOCAL_SERVER_HUB_DIR.
Recognized stacks: Vite, Next, Nuxt, Astro, Angular, webpack, Remix, Django, Flask, FastAPI, Rails, PHP, Go, Spring, .NET, Rust, Node, and Docker port mappings.
On macOS, ports 5000 and 7000 carry a warning because AirPlay Receiver often binds them.
If lsof (macOS), ss (Linux), or netstat (Windows) is missing, the server probes the framework default ports instead. A missing docker binary skips container mappings and returns a warning.
Related MCP server: tidyports
Install
Requires Node.js 20 or newer.
Claude Code:
claude mcp add local-server-hub -- npx -y github:wieschollek/local-server-hubCursor ~/.cursor/mcp.json:
{
"mcpServers": {
"local-server-hub": {
"command": "npx",
"args": ["-y", "github:wieschollek/local-server-hub"]
}
}
}The published dist/ is what npx runs. From a checkout:
npm ci
npm test
npm run build
node dist/index.jsDevelopment
npm test
npm run buildGitHub Actions runs the tests on Ubuntu, macOS, and Windows.
Available Tools
7 toolsfind_free_portARead-only
Return a port that is not listening, not reserved, and can be bound on IPv4 and IPv6.
Inputs: to, from, framework, preferred.
get_port_infoBRead-only
Return listeners, reservation, HTTP probe, and platform warnings for one port.
Inputs: port (required), probe.
list_reservationsARead-only
List port reservations that have not expired.
Inputs: no named parameters.
list_serversARead-only
List TCP listeners owned by the current user, with process, project directory, stack, URL, and HTTP status.
Inputs: probe, includeOthers.
release_portA
Release a port reservation. This does not stop a process.
Inputs: port (required).
reserve_portB
Lease a port for a project or worktree so parallel agents do not collide. Default lease is 8 hours.
Inputs: port (required), project (required), note, worktree, +1 more.
suggest_portARead-only
Return the framework default port when it is free, otherwise the next free port.
Inputs: framework (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Most tools map to a distinct resource+action: list listeners, inspect one port, reserve, release, list reservations. The only real overlap is find_free_port vs suggest_port, which both return a usable free port; the descriptions differentiate them (strictly free vs framework-default-first), but an agent could still hesitate between the two.
All seven tools follow a consistent snake_case verb_noun pattern (list_servers, get_port_info, find_free_port, reserve_port, release_port, list_reservations, suggest_port). The list_/get_/find_/reserve_/release_/suggest_ prefixes are used predictably across the set.
Seven tools is well within the ideal 3-15 range and each one covers a distinct step in the port discovery/reservation workflow. No tool appears redundant or filler.
The surface covers discovery (list_servers, get_port_info), allocation (find_free_port, suggest_port), and the full reservation lifecycle (reserve_port, release_port, list_reservations). Minor gaps: no way to renew or extend an expiring lease, and no tool to stop/inspect the process holding a port beyond the read-only listing.
Related MCP Connectors
Agent-native registry to discover APIs, MCP servers and CLIs, with live health checks.
Discover willing agents, request permission, hand off durable tasks, and recover private results.
Connect AI agents to discover services and coordinate real-world tasks.
Useful public tools, sourced notes and opt-in research into discovery and agent cooperation.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to discover, configure, and manage local development servers. Provides tools for app registration, port allocation, lifecycle control, and log access without manual config editing.MIT
- AlicenseNot gradedqualityDmaintenanceSee 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 gradedqualityBmaintenanceEnables coding agents to inspect projects, claim worktrees, and move or start dev servers without changing ports, while coordinating with human-owned locks.95 npm1MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to coordinate ports and dev servers on a shared Linux machine, reserve ports, start and stop worktree servers, inspect listening services, Tailscale devices and dev worktrees, and clean up safely without collisions.15 npmMIT