# localhost app MCP server

> Allows coding agents to start, stop, and read logs of local development servers through Claude Code, Cursor, and Codex.

- Repository: https://github.com/marcellosso/localhost
- Page: https://hostedmcp.org/servers/marcellosso/localhost
- Transport: stdio
- Stars: 4
- License: MIT
- Latest version: 0.2.0

## Install

### Claude Code

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

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

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

### VS Code (`.vscode/mcp.json`)

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

### Claude Desktop (`claude_desktop_config.json`)

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

### Codex (`~/.codex/config.toml`)

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

### Gemini CLI (`~/.gemini/settings.json`)

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

## FAQ

### Which coding agents can use this server?

The server can be added to Claude Code, Claude Desktop, Cursor, and Codex.

### Do I need to install anything else for this to work?

Yes, the localhost app must be installed on your system for the server to function.

### Does the installation process modify my existing agent configurations?

It only modifies its own entries and creates a backup in the agent-backups folder before making any changes.
