What is localhost-mcp?
localhost-mcp is a MCP server by HasanJahidul that inspect, manage and kill local dev servers: see what listens on each port, diagnose port conflicts, find zombie processes and kill by PID or port. It is listed under Developer tools and has 4 GitHub stars.
| Type | Mcp server |
|---|---|
| Author | HasanJahidul |
| Repository | HasanJahidul/localhost-mcp |
| Popularity | 4 GitHub stars |
| Category | Developer tools |
| Security | Review before installing (72/100) |
| Rank | #2,300 of 4,418 MCP servers; #503 in Developer tools |
| License | MIT |
| Last commit | 2026-05-11 |
| Runs | Locally |
| Language | TypeScript |
| Platforms | macOS, Windows, Linux |
Is localhost-mcp safe to install?
localhost-mcp scores 72/100 on the MCPMods security check: Review before installing. Things to review: can take actions such as send, write or deploy; executes code or shell commands. It passed 3 of 6 checks.
MCP server results come from listing signals: who publishes it, where your data goes and what it can do. The code itself is not scanned yet.
| Check | Result |
|---|---|
| Community-built server | Note |
| Runs on your machine only | Pass |
| No credentials mentioned | Pass |
| Can take actions such as send, write or deploy | Review |
| Executes code or shell commands | Review |
| Source on GitHub | Pass |
How do I install localhost-mcp?
- Find the launch command. The README says how the server starts (npx, uvx, docker or a remote URL) and which API keys it needs.
https://github.com/HasanJahidul/localhost-mcp
- Add it to Claude Code. Replace the part after -- with the command from the README. Remote servers use --transport http with a URL.
claude mcp add localhost-mcp -- <command from README> claude mcp add --transport http localhost-mcp <server-url>
- Check it connected. This lists your MCP servers and their status.
claude mcp list
Or ask Claude to set it up
Paste this into Claude Code and it installs localhost-mcp for you:
Add the "localhost-mcp" MCP server from https://github.com/HasanJahidul/localhost-mcp to Claude Code. Read its README for the launch command and any API keys I need, run claude mcp add, then check that it connects.