# localhost app

> localhost app is an MCP server for developer tools. Let coding agents start, stop and read logs of your local dev servers. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** macOS, Windows, Linux, CLI
- **Website:** https://www.getlocalhost.app/docs/mcp
- **Repository:** https://github.com/marcellosso/localhost/tree/HEAD/packages/cli
- **MCP Registry name:** io.github.marcellosso/localhost
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

The usual problem is an agent launching pnpm dev in a hidden shell: it holds a port, prints where you cannot read it and outlives the chat. localhost mcp routes that work through the localhost desktop app instead, so the agent and you share one view of the same Projects and Services.

Through the server an agent can start and stop Services, read their status, logs and ports, and add the Projects and Services it needs. A read-only mode drops the tools that add, edit or remove entries. The app can connect Claude Code, Cursor and Codex in one click from Settings, or you can run npx @getlocalhost/cli mcp install, which also installs a localhost-mcp skill for each agent.

The installer edits only its own entries, takes a backup before first changing a file, and does nothing on repeat runs. The server runs over stdio and needs the localhost app installed, since it runs the app's own command.

## Features

- **Start and stop services:** Agents control dev servers the app manages.
- **Logs, status and ports:** Read output and port usage without a hidden shell.
- **One-click agent setup:** Connects Claude Code, Cursor and Codex from the app.
- **Read-only mode:** Disables tools that add, edit or remove entries.
- **Safe config edits:** Backs up files and changes only its own entries.

## Good for

- Stop agents leaving orphaned dev servers running
- Let an agent read the logs of a failing service
- Share one list of running services between you and the agent
- Install the server and skill into several coding agents

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add localhost -- npx -y @getlocalhost/cli
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "localhost": {
      "command": "npx",
      "args": [
        "-y",
        "@getlocalhost/cli"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "localhost": {
      "command": "npx",
      "args": [
        "-y",
        "@getlocalhost/cli"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "localhost": {
      "command": "npx",
      "args": [
        "-y",
        "@getlocalhost/cli"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "localhost": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@getlocalhost/cli"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add localhost -- npx -y @getlocalhost/cli
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.localhost]
command = "npx"
args = ["-y", "@getlocalhost/cli"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "localhost": {
      "command": "npx",
      "args": [
        "-y",
        "@getlocalhost/cli"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user localhost npx -- -y @getlocalhost/cli

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "localhost": {
      "command": "npx",
      "args": [
        "-y",
        "@getlocalhost/cli"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "localhost": {
      "command": "npx",
      "args": [
        "-y",
        "@getlocalhost/cli"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "localhost": {
      "command": "npx",
      "args": [
        "-y",
        "@getlocalhost/cli"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "localhost": {
      "command": "npx",
      "args": [
        "-y",
        "@getlocalhost/cli"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "localhost": {
      "command": "npx",
      "args": [
        "-y",
        "@getlocalhost/cli"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "localhost": {
      "command": "npx",
      "args": [
        "-y",
        "@getlocalhost/cli"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "localhost": {
      "command": "npx",
      "args": [
        "-y",
        "@getlocalhost/cli"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "localhost": {
      "command": "npx",
      "args": [
        "-y",
        "@getlocalhost/cli"
      ]
    }
  }
}
```

## FAQ

### Do I need the localhost app?

Yes. The server runs the app's command, so the app must be installed.

### Which agents can localhost app connect?

Claude Code, Cursor, Codex and Claude Desktop through the CLI; the app lists Claude Code, Cursor and Codex.

### Is there a read-only option?

Yes, a --read-only flag needs app version 0.4.0 or later.

### How do I install from a terminal?

Run npx @getlocalhost/cli mcp install.

### How do I add localhost app to Claude Code?

Run this command in your terminal: claude mcp add localhost -- npx -y @getlocalhost/cli

### What are the best alternatives to localhost app?

The closest alternatives to localhost app are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

## Where this comes from

- Description: written from the project's README and the project's website.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/localhost-app
