Memungkinkan coding agent untuk menjalankan, menghentikan, dan membaca log dari local development server melalui Claude Code, Cursor, dan Codex.
Juga dikenal sebagai marcellosso/localhost, localhost, @getlocalhost/cli
- Stars
- 4
- Tools
- —
- Unduhan, 30 hari
- —
- Versi terbaru
- 0.2.0
- Commit terakhir
- 14 Nov 2026
- Lisensi
- MIT
Apa itu localhost app MCP?
localhost app adalah MCP server. Memungkinkan coding agent untuk menjalankan, menghentikan, dan membaca log dari local development server melalui Claude Code, Cursor, dan Codex.
Ringkasan dibuat dari README proyek
Tentang localhost app MCP server
Tool ini memungkinkan developer yang menggunakan Claude Code, Cursor, Claude Desktop, atau Codex untuk mengelola local development server melalui coding agent. Dengan menghubungkan agent tersebut ke aplikasi localhost, Anda mengizinkan mereka untuk menjalankan dan menghentikan service atau membaca log secara langsung dari lingkungan terminal Anda. Proses setup menggunakan command line interface untuk memperbarui file konfigurasi seperti claude_desktop_config.json atau ~/.cursor/mcp.json secara otomatis, memastikan pengaturan dan komentar yang sudah ada tetap tidak berubah.
Untuk menggunakan server ini, Anda harus sudah menginstal aplikasi localhost di mesin Anda. CLI akan menangani instalasi localhost-mcp skill, yang memungkinkan agent untuk memahami tugas-tugas spesifik. Anda dapat menjalankan server dalam mode read-only menggunakan flag --read-only jika ingin membatasi agent agar tidak bisa menambah, mengedit, atau menghapus project dan service. Setup ini bekerja secara lokal via stdio, menjadikannya jembatan langsung antara AI coding assistant Anda dan proses lokal yang sedang berjalan.
Apa yang bisa Anda lakukan dengannya
- 1Konfigurasi banyak AI agent sekaligusGunakan CLI untuk menambahkan localhost server ke setiap agent yang kompatibel yang ditemukan di komputer Anda.
Ditulis berdasarkan README proyek. Setiap use case diperiksa terhadap kutipan dari README tersebut.
Cara menginstal localhost app MCP
Format diverifikasi 10 Nov 2026Instal localhost app MCP di Claude Code
$ claude mcp add localhost -- npx -y @getlocalhost/cliInstal localhost app MCP di Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"localhost": {
"command": "npx",
"args": [
"-y",
"@getlocalhost/cli"
]
}
}
}Instal localhost app MCP di VS Code
.vscode/mcp.json
{
"servers": {
"localhost": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@getlocalhost/cli"
]
}
}
}Instal localhost app MCP di Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"localhost": {
"command": "npx",
"args": [
"-y",
"@getlocalhost/cli"
]
}
}
}Instal localhost app MCP di Codex
~/.codex/config.toml
[mcp_servers.localhost] command = "npx" args = ["-y", "@getlocalhost/cli"]
Instal localhost app MCP di Gemini CLI
~/.gemini/settings.json
{
"mcpServers": {
"localhost": {
"command": "npx",
"args": [
"-y",
"@getlocalhost/cli"
]
}
}
}Pengecekan otomatis
Berjalan 14 Nov 2026Laporan lengkap →Lolos checks otomatis kami. Ini bukan audit keamanan: baca kodenya dan berikan server akses paling terbatas yang dibutuhkannya. Cara kerja checks
- Source repository terhubung dan dapat dijangkaumarcellosso/localhost is public and reachablegithub.com/marcellosso/localhost ↗Lolos
- Paket menyebut repo ini sebagai sumbernya@getlocalhost/cli names marcellosso/localhost as sourcenpmjs.com/package/@getlocalhost/cli ↗Lolos
- Provenance build (atestasi Sigstore)Sigstore attestation for @getlocalhost/clinpmjs.com/package/@getlocalhost/cli/v/0.2.0#provenance ↗Lolos
- Lisensi open source (OSI)MITspdx.org/licenses/MIT.html ↗Lolos
- Ada commit atau release dalam satu tahun terakhirLast commit or release 2026-11-12github.com/marcellosso/localhost ↗Lolos
- OpenSSF ScorecardTidak diperiksa
- Nama package tidak mirip dengan package populerNo popular package one edit away from @getlocalhost/cliLolos
- Tidak ada advisory kritis di paket maupun dependensinya1 resolved dependencies checked; no critical advisoryosv.dev ↗Lolos
- Tidak ada instruksi tersembunyi untuk model0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersLolos
- Tools yang bersifat destruktif telah diberi labelTidak diperiksa
- Endpoint remote menjawab handshake MCPTidak diperiksa
README
Lihat di GitHub@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.
Pertanyaan tentang localhost app MCP
Bagaimana cara menambahkan localhost app MCP ke Claude Code?
Jalankan claude mcp add localhost -- npx -y @getlocalhost/cli di terminal Anda. Tambahkan --scope user agar tersedia di semua proyek.
Bagaimana cara menambahkan localhost app MCP ke Cursor?
Buka ~/.cursor/mcp.json dan tambahkan server di bawah mcpServers, menggunakan config Cursor yang ditunjukkan di bagian instalasi di atas.
Coding agent mana saja yang bisa menggunakan server ini?
Server ini dapat ditambahkan ke Claude Code, Claude Desktop, Cursor, dan Codex.
Apakah saya perlu menginstal hal lain agar ini berfungsi?
Ya, aplikasi localhost harus sudah terinstal di sistem Anda agar server dapat berfungsi.
Apakah proses instalasi akan mengubah konfigurasi agent saya yang sudah ada?
Proses ini hanya mengubah entri miliknya sendiri dan membuat backup di folder agent-backups sebelum melakukan perubahan apa pun.