
localhost app
Let coding agents start, stop and read logs of your local dev servers
localhost app is an MCP server for developer tools. It runs locally on your machine and is started by your AI client.
- Platforms
- macOS, Windows, Linux
- Runs
- Locally
- Version
- 0.2.0
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add localhost -- npx -y @getlocalhost/cliAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"localhost": {
"command": "npx",
"args": [
"-y",
"@getlocalhost/cli"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"localhost": {
"command": "npx",
"args": [
"-y",
"@getlocalhost/cli"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"localhost": {
"command": "npx",
"args": [
"-y",
"@getlocalhost/cli"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.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.
Add with the CLI
Run in a terminal
codex mcp add localhost -- npx -y @getlocalhost/cliOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.localhost]
command = "npx"
args = ["-y", "@getlocalhost/cli"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"localhost": {
"command": "npx",
"args": [
"-y",
"@getlocalhost/cli"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "localhost": { "command": "npx", "args": [ "-y", "@getlocalhost/cli" ] } } }Or run: gemini mcp add -s user localhost npx -- -y @getlocalhost/cli
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "localhost": { "command": "npx", "args": [ "-y", "@getlocalhost/cli" ] } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.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
Add to cline_mcp_settings.json
{ "mcpServers": { "localhost": { "command": "npx", "args": [ "-y", "@getlocalhost/cli" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.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
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "localhost": { "command": "npx", "args": [ "-y", "@getlocalhost/cli" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "localhost": { "command": "npx", "args": [ "-y", "@getlocalhost/cli" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "localhost": { "command": "npx", "args": [ "-y", "@getlocalhost/cli" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
About localhost app
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.
What it does
- 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
localhost app 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.


