Feedback

Localhost Mcp

@hasanjahidul Claim

Basic information

Runtime
node
Category
License
MIT
Transports
stdio
Author
hasanjahidul
Submitted by
Community
Quality
25
Stars
3

About Localhost Mcp Server

MCP server: inspect, manage, kill local dev servers. Stop guessing what's on :3000.

Localhost Mcp is a MCP server in the Other category listed in the AddMCP.net directory, published by HasanJahidul. Supported transport: stdio. Runtime: node. License: MIT. The repository has 3 GitHub stars. Source code is hosted on github.com. Related topics: claude, dev-server, kill, localhost, lsof.

Setup

{
    "mcpServers": {
        "localhost": {
            "command": "npx",
            "args": [
                "-y",
                "localhost-mcp"
            ]
        }
    }
}

Localhost Mcp config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "localhost": {
            "command": "npx",
            "args": [
                "-y",
                "localhost-mcp"
            ]
        }
    }
}

Localhost Mcp tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is Localhost Mcp?

Localhost Mcp is an MCP server that inspects, manages, and kills local development servers. It resolves port conflicts, finds zombie processes, and provides detailed information about running dev servers, making it a companion for any AI agent that manages a local development environment.

How to use Localhost Mcp?

Install globally with npm install -g localhost-mcp, then wire into Claude Code with claude mcp add --scope user localhost -- localhost-mcp or any MCP-compatible client. The server operates as a stdio MCP server. CLI usage includes localhost-mcp list (list dev servers), localhost-mcp zombies (find zombie candidates), and plain localhost-mcp to start the stdio server.

Key features of Localhost Mcp

  • Lists all listening dev servers with port, PID, framework, project, uptime, memory, CPU
  • Inspects a single port to identify the holding process
  • Kills servers by PID or port, with dry‑run mode by default
  • Detects zombie dev servers (long‑running, idle, memory‑heavy)
  • Identifies port conflicts and suggests five free nearby ports
  • Refuses to kill system processes (PIDs < 1000) and non‑whitelisted executables

Use cases of Localhost Mcp

  • Quickly identify what is holding a port (e.g., EADDRINUSE on :3000)
  • Clean up forgotten node/vite/next processes consuming RAM between projects
  • Programmatically free a port for a new dev server via AI agent
  • Monitor dev server health across projects during long development sessions

Frequently asked questions

1 What platforms does Localhost Mcp support?

macOS and Linux have full support (using lsof and /proc). Windows support is basic (port scan only via netstat; cwd and framework detection are limited).

2 Is it safe to kill servers with Localhost Mcp?

Yes. The kill_server tool defaults to dry‑run; you must pass confirm=true to execute. It refuses to kill PIDs < 1000 (system processes) and only targets whitelisted executables (node, python, ruby, go, deno, bun, etc.). It sends SIGTERM first and escalates to SIGKILL after a 5‑second timeout.

3 How do I install and configure Localhost Mcp?

Install globally via npm: npm install -g localhost-mcp. Then add it to your MCP client (e.g., for Claude Code: claude mcp add --scope user localhost -- localhost-mcp). The server runs as a stdio MCP process.

4 Which frameworks does Localhost Mcp detect?

It detects next.js, vite, nuxt, remix, astro, webpack-dev-server, esbuild, create-react-app, express, fastify, koa, hono, rails, django, flask, fastapi, uvicorn, gunicorn, deno, bun, php-builtin, jekyll, and hugo. It falls back to package.json sniffing when the command line is generic (e.g., node server.js).

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬