Ermöglicht es Coding Agents, lokale Development Server über Claude Code, Cursor und Codex zu starten, zu stoppen und deren Logs zu lesen.
Auch bekannt als marcellosso/localhost, localhost, @getlocalhost/cli
- Stars
- 4
- Tools
- —
- Downloads, 30 Tage
- 629
- Neueste Version
- 0.2.0
- Letzter Commit
- 14. Nov. 2026
- Lizenz
- MIT
Was ist localhost app MCP?
localhost app ist ein MCP server. Ermöglicht es Coding Agents, lokale Development Server über Claude Code, Cursor und Codex zu starten, zu stoppen und deren Logs zu lesen.
Zusammenfassung generiert aus dem README des Projekts
Über localhost app MCP server
Dieses Tool ermöglicht es Entwicklern, die Claude Code, Cursor, Claude Desktop oder Codex nutzen, lokale Development Server direkt über Coding Agents zu verwalten. Durch die Verbindung dieser Agents mit der localhost App kannst du Dienste starten und stoppen oder Logs direkt aus deiner Terminal-Umgebung lesen. Der Setup-Prozess nutzt ein CLI, um Konfigurationsdateien wie claude_desktop_config.json oder ~/.cursor/mcp.json automatisch zu aktualisieren, wobei deine bestehenden Einstellungen und Kommentare unangetastet bleiben.
Um diesen Server zu nutzen, muss die localhost App auf deinem Rechner installiert sein. Das CLI übernimmt die Installation des localhost-mcp SKILL, damit die Agents spezifische Aufgaben verstehen können. Du kannst den Server mit dem --read-only Flag im Read-Only-Modus ausführen, wenn du verhindern möchtest, dass der Agent Projekte oder Services hinzufügt, bearbeitet oder entfernt. Dieses Setup läuft lokal via stdio und fungiert so als direkte Brücke zwischen deinem KI-Coding-Assistenten und deinen laufenden lokalen Prozessen.
Was du damit machen kannst
- 1Mehrere KI-Agents gleichzeitig konfigurierenNutze das CLI, um den localhost Server zu jedem kompatiblen Agent auf deinem Computer hinzuzufügen.
Geschrieben aus dem README des Projekts. Jeder Use Case wurde gegen ein Zitat daraus geprüft.
So installierst du localhost app MCP
Formate geprüft am 10. Nov. 2026localhost app MCP in Claude Code installieren
$ claude mcp add localhost -- npx -y @getlocalhost/clilocalhost app MCP in Cursor installieren
~/.cursor/mcp.json
{
"mcpServers": {
"localhost": {
"command": "npx",
"args": [
"-y",
"@getlocalhost/cli"
]
}
}
}localhost app MCP in VS Code installieren
.vscode/mcp.json
{
"servers": {
"localhost": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@getlocalhost/cli"
]
}
}
}localhost app MCP in Claude Desktop installieren
claude_desktop_config.json
{
"mcpServers": {
"localhost": {
"command": "npx",
"args": [
"-y",
"@getlocalhost/cli"
]
}
}
}localhost app MCP in Codex installieren
~/.codex/config.toml
[mcp_servers.localhost] command = "npx" args = ["-y", "@getlocalhost/cli"]
localhost app MCP in Gemini CLI installieren
~/.gemini/settings.json
{
"mcpServers": {
"localhost": {
"command": "npx",
"args": [
"-y",
"@getlocalhost/cli"
]
}
}
}Automatisierte Checks
Geluften am 14. Nov. 2026Vollständiger Bericht →Unsere automatisierten Checks bestanden. Das ist kein Security-Audit: Lies den Code und gib dem Server nur den minimal notwendigen Zugriff. Wie die Checks funktionieren
- Source Repository verknüpft und erreichbarmarcellosso/localhost is public and reachablegithub.com/marcellosso/localhost ↗Bestanden
- Paket nennt dieses Repository als Quelle@getlocalhost/cli names marcellosso/localhost as sourcenpmjs.com/package/@getlocalhost/cli ↗Bestanden
- Build-Herkunft (Sigstore-Attestierung)Sigstore attestation for @getlocalhost/clinpmjs.com/package/@getlocalhost/cli/v/0.2.0#provenance ↗Bestanden
- Open Source Lizenz (OSI)MITspdx.org/licenses/MIT.html ↗Bestanden
- Commit oder Release im letzten JahrLast commit or release 2026-11-12github.com/marcellosso/localhost ↗Bestanden
- OpenSSF ScorecardNicht geprüft
- Package-Name ähnelt keinem populären PackageNo popular package one edit away from @getlocalhost/cliBestanden
- Kein kritischer Hinweis im Paket oder seinen Abhängigkeiten1 resolved dependencies checked; no critical advisoryosv.dev ↗Bestanden
- Keine versteckten Anweisungen an das Modell0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersBestanden
- Destruktive Tools sind markiertNicht geprüft
- Remote-Endpoint beantwortet den MCP-HandshakeNicht geprüft
README
Auf GitHub ansehen@getlocalhost/cli
Connects your coding agents to localhost mcp, the MCP server of localhost app, from a terminal:
npx @getlocalhost/cli mcp install
It adds a server named localhost to Claude Code, Claude Desktop, Cursor and Codex, whichever are on this computer, and installs the localhost-mcp skill where each agent reads skills. The server runs the localhost command that comes with the app, so the app must be installed: without it, this prints how to install it for your OS and changes nothing.
It writes what Settings → Agents in the app writes, and the app shows these agents as connected:
| Agent | MCP server added to | Skill installed in |
|---|---|---|
| Claude Code | ~/.claude.json, through claude mcp add-json --scope user when claude is installed |
~/.claude/skills/localhost-mcp/ |
| Claude Desktop (macOS, Windows) | claude_desktop_config.json in Claude's folder (~/Library/Application Support/Claude, %APPDATA%\Claude) |
none: it has no skills folder |
| Cursor | ~/.cursor/mcp.json |
~/.cursor/skills/localhost-mcp/, unless Claude Code's or Codex's folder has it: Cursor reads those too |
| Codex | ~/.codex/config.toml |
~/.agents/skills/localhost-mcp/ |
- Only its own entries. Every other server and setting in the file stays as it was, comments and order included. A file it can't read is reported and left alone.
- A backup first, in the
agent-backupsfolder of localhost's data folder, before it first changes a file. - Running it again changes nothing.
Commands
npx @getlocalhost/cli mcp install # add the server and the skill
npx @getlocalhost/cli mcp uninstall # remove them, and nothing else
npx @getlocalhost/cli mcp status # where each agent stands
npx @getlocalhost/cli mcp serve # run the server, for an MCP client's configuration
| Option | |
|---|---|
--client <agent> |
claude-code, claude-desktop, cursor or codex; claude for both Claude apps. Repeat it, or separate with commas, for more than one. Without it: every agent found on this computer. |
--read-only |
For mcp install and mcp serve. The server runs localhost mcp --read-only, without the tools that add, edit or remove Projects and Services. Needs a localhost app that has it (0.4.0 or later). Installing again without it keeps a read-only server read-only. |
--dry-run |
Prints what would change, as a diff, and changes nothing. |
Then start a new Claude Code session, quit and reopen Claude Desktop, check Cursor Settings → MCP, or restart Codex.
Any MCP client
mcp serve is the server itself, for any client that starts MCP servers over stdio:
{
"mcpServers": {
"localhost": { "command": "npx", "args": ["-y", "@getlocalhost/cli", "mcp", "serve"] }
}
}
It finds the app's localhost command as mcp install does and runs localhost mcp with the client's stdin and stdout, passing on Ctrl-C and other signals and exiting as the server does. mcp serve --read-only runs localhost mcp --read-only. It writes nothing to stdout itself, since that is the client's channel: without the app, or with an app whose command doesn't run, it says why on stderr and exits with 1. claude mcp add --scope user localhost -- npx -y @getlocalhost/cli mcp serve and codex mcp add localhost -- npx -y @getlocalhost/cli mcp serve add it from a terminal.
More in the MCP docs. Node 18 or later; no dependencies.
Development
cd packages/cli
npm test
node bin/getlocalhost.js mcp status
The JSON and TOML editors are the same as the core's (core/localhost-core/src/agents/), and their tests too: change both together. npm pack copies the skill from skills/localhost-mcp into the package.
localhost app MCP Fragen
Wie füge ich localhost app MCP zu Claude Code hinzu?
Führe claude mcp add localhost -- npx -y @getlocalhost/cli in deinem Terminal aus. Füge --scope user hinzu, damit der Server in jedem Projekt verfügbar ist.
Wie füge ich localhost app MCP zu Cursor hinzu?
Öffne ~/.cursor/mcp.json und füge den Server unter mcpServers hinzu, mit der Cursor-Config aus dem Installationsabschnitt oben.
Welche Coding Agents können diesen Server nutzen?
Der Server kann zu Claude Code, Claude Desktop, Cursor und Codex hinzugefügt werden.
Muss ich noch etwas anderes installieren, damit es funktioniert?
Ja, die localhost App muss auf deinem System installiert sein, damit der Server funktioniert.
Ändert der Installationsprozess meine bestehenden Agent-Konfigurationen?
Er ändert nur seine eigenen Einträge und erstellt ein Backup im Ordner agent-backups, bevor Änderungen vorgenommen werden.