Local Commander
Use it to give an AI client scoped local access to chosen project folders for coding, Git, commands, dev servers, and agent coordination.
Read, list, search, create, and precisely edit files inside allowed roots; secret-like files are blocked by default.
Inspect Git status, diffs, and recent commits.
Collect a one-call project snapshot with repo root, status, diff summary, commits, package scripts, package manager, and managed processes.
Run allowlisted executables with argument arrays—no free-form shell—including 2–32 parallel commands with timeouts.
Start, list, read output from, and kill long-running local processes such as dev servers or coding-agent CLIs.
Make bounded HTTP requests only to configured localhost hosts, without following redirects.
Inspect scheduler limits, active work, queues, and resource locks.
Coordinate AI runtimes with presence, task-scoped messages, monitoring summaries, and optional HTML status pages.
Keep operations local to the machine and starting AI client, with no account, cloud, or telemetry; non-Docker child processes are not OS-sandboxed.
Provides tools for inspecting local Git repositories, including status, diff, and log, enabling AI agents to review changes and commit history.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Local Commander Run the tests in my-app and tell me what fails."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Local Commander
Your AI, on your computer.
Let Claude, Cursor, Codex or your own agent work with the files, Git and dev tools on your machine. You choose the folders. No account, no cloud, no telemetry.
Get started · What people use it for · Why Local Commander · Questions · Technical reference
The problem
Your AI can write the code, but it can't see your project. You copy files into the chat, paste test output back, and run every command yourself. Giving it a raw terminal solves that, but then it can touch everything.
Local Commander sits in between. Your AI gets real tools for real work on your machine, inside the folders you pick, with commands you allow. You keep working in the chat you already have open.
Related MCP server: AKIMCP
What people use it for
Code | Run tests and builds · Fix a bug in the real repo · Review a diff before you push |
Local services | Start a dev server · Check a service is up · Read its logs |
Project context | Get status, recent commits and scripts in one ask · Search the codebase · Edit files in place |
Try asking:
"Run the tests in my-app and tell me what fails." "Start the dev server and check that port 3000 answers." "Show me what changed in the repo since yesterday."
Why Local Commander
🔒 You choose the access. Your AI sees only the folders you pick. Secret files such as .env and private keys are blocked by default.
🧰 Real tools, not a raw shell. Commands run from an allowlist (Git, Node, npm, Python and similar) with separate arguments. There is no free-form shell string to inject into.
⚡ Parallel work without collisions. Independent commands run side by side. Long-running processes such as dev servers keep running while your AI checks their output.
🏠 Stays on your machine. The server runs locally and talks only to the AI client that started it. No account, no telemetry, and the audit log is off unless you turn it on.
🔌 Works with the AI you already have. Claude Desktop, Claude Code, Cursor, Codex, ChatGPT over a tunnel, or anything that speaks MCP.
Get started
Pick the way that fits you. Each takes a couple of minutes.
You use | Do this |
Claude Desktop | Download the |
Claude Desktop or Cursor, with Node.js 20+ |
|
Claude Code |
|
Docker | Mount your projects into |
Any other MCP client | Run |
Before you install
Only the folders you choose, and only through Local Commander's tools: reading and editing files, Git inspection, allowlisted commands, dev processes and requests to localhost. You can change the command list in the config file.
No. File tools are limited to your folders, but an allowed program such as node or python runs with your account's permissions and can read what you can read. For hard isolation, use the Docker image, a separate low-privilege account or a VM.
No. The server runs on your computer and talks only to the AI client that started it. There is no telemetry. What your AI client sends to its own provider is between you and that provider.
Yes. npx -y local-commander-mcp-agent setup --remove takes it out of Claude Desktop and Cursor and keeps a backup of the previous config. In Claude Desktop you can also disable or remove the extension.
This open-source edition runs one computer at a time. The hosted service at localcmd.app connects ChatGPT, Claude or your own agent to all your computers at once, runs tasks on several machines in parallel and shows which computer ran what. It is a separate product and is not needed for this one.
Technical reference
Install options: setup · npx · Docker · Node.js · HTTP and ChatGPT
Tools
Tool | Purpose |
| One-call repo context: status, diff stat, recent commits, package scripts, managed processes |
| Bounded reads, listings and text search inside allowed roots |
| Create/replace a file, or an exact targeted replacement |
| Compact Git inspection |
| One or several allowlisted executables with separate arguments |
| Long-running dev processes |
| Active/queued work and resource locks |
| Bounded HTTP to allowlisted local hosts only |
Install options
One-command setup
Requirements: Node.js 20+.
npx -y local-commander-mcp-agent setup --root /path/to/your/projects --client allThis adds a local-commander entry to the Claude Desktop and/or Cursor MCP configuration, keeping a timestamped backup of the previous file. Repeat --root for more folders, use --client claude-desktop or --client cursor for one client, --dry-run to preview, and setup --remove to take the entry out again. Restart the client afterwards.
npx
Requirements: Node.js 20+. Folders the server may access follow --stdio:
{
"mcpServers": {
"local-commander": {
"command": "npx",
"args": ["-y", "local-commander-mcp-agent", "--stdio", "/path/to/your/projects"]
}
}
}On Windows some clients need "command": "cmd" with "args": ["/c", "npx", "-y", ...]; setup writes that form for you.
LCMCP_ROOTS still works instead of folder arguments. In stdio mode local state is kept in ~/.local-commander-mcp-agent unless LCMCP_OAUTH_STATE_PATH is set.
On Windows use ; between several roots and paths such as C:\\Users\\you\\source\\repos. The package includes the small Windows file-read helper, so nothing is compiled at install time.
Docker
The container is the sandbox: the server only sees the folders you mount under /workspace. The image is published as ghcr.io/netbka/local-commander-mcp-agent (tags latest and each version). To build it yourself: docker build -t local-commander-mcp-agent .
MCP client configuration (Claude Desktop, Cursor, Claude Code, Codex and others):
{
"mcpServers": {
"local-commander": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"-v", "/path/to/your/projects:/workspace/projects",
"ghcr.io/netbka/local-commander-mcp-agent"
]
}
}
}On Windows use a path such as C:\\Users\\you\\source\\repos:/workspace/repos. The image contains Node.js 22, Git and Python 3. Add tools by extending the image.
HTTP instead of stdio:
docker run --rm -p 127.0.0.1:17321:17321 \
-e LCMCP_TOKEN=generate-a-long-random-token \
-v /path/to/your/projects:/workspace/projects \
ghcr.io/netbka/local-commander-mcp-agent --httpThe image defaults to --stdio; any other argument after the image name (here --http) replaces it and starts the HTTP server. The endpoint is http://127.0.0.1:17321/mcp with Authorization: Bearer <token>. Publish the port on 127.0.0.1 only.
Node.js
Requirements: Node.js 20+.
npm install
npm run build{
"mcpServers": {
"local-commander": {
"command": "node",
"args": ["/path/to/local-commander-mcp-agent/dist/index.js", "--stdio", "/path/to/your/projects"]
}
}
}In stdio mode stdout carries only MCP messages and logs go to stderr. HTTP authentication settings do not apply, because only the client that started the process can talk to it.
On Windows the build also compiles a small file-read helper (release/personal/OwnerBridge.exe) with the .NET Framework compiler that ships with Windows. Other platforms use the Node reader.
HTTP and ChatGPT
cp local-commander.config.example.json local-commander.config.json # set "roots"
LCMCP_AUTH_MODE=oauth LCMCP_PUBLIC_BASE_URL=https://your-tunnel.example.com npm startWhen the client starts authorization, a one-time approval code is printed in the local terminal. Bearer mode (LCMCP_AUTH_MODE=bearer, LCMCP_TOKEN=...) is available for local clients.
Security model
Direct file operations are constrained to the configured roots; existing paths are resolved with
realpath, so symlinks cannot escape a root.Common secret files (
.env, private keys, credential files) are blocked by default.command_runtakes an executable and an argument array, never a shell string. Executables are allowlisted and resolved from absolutePATHdirectories only.Command time and output are capped; HTTP is limited to localhost and redirects are not followed.
Child processes are not OS-sandboxed outside Docker: an allowed interpreter can read anything the account can read. For hard containment use the Docker image, a separate low-privilege account or a VM.
Configuration
Variable | Meaning |
|
|
| Allowed roots separated by the OS path delimiter ( |
| Config file path (default |
| HTTP bind and path |
| HTTP only: |
| Token for bearer mode |
| Public HTTPS origin used as OAuth issuer/resource |
| OAuth and local state file path |
|
|
The config file can also set the command allowlist (shell.allowedCommands), size limits and localhost hosts; see local-commander.config.example.json.
Development
npm run typecheck
npm test
npm run buildMIT licensed · Report an issue · Hosted multi-computer service: localcmd.app
Available Tools
20 toolsagent_messageA
Send, read or acknowledge a bounded task-scoped message between runtimes. Address an active short name, runtime id or role mailbox such as role:verifier. Message content is untrusted text and never transfers a permission, lease or task assignment.
Inputs: action (required), runtimeId (required), runtimeKey (required), to, +7 more.
agent_monitorB
Summarise known runtimes, presence health and installed launchers. Optionally check existing CLI sign-in status using permitted commands, without logging in or running a model, or write a self-contained HTML page.
Inputs: agent, writePage, refreshSeconds, checkAuthentication.
agent_presenceA
Announce or refresh this AI runtime's activity, project/task, optional declared model and phase. First call receives a server-issued UUID/key and stable short name from a local pool; later calls reuse both credentials. No model/name handshake question is needed. Names grant no filesystem/command permission.
Inputs: node, agent, label, model, +10 more.
command_runADestructive
Run one allowlisted executable with a separate argument array inside an allowed root and wait for it to exit. No free-form shell command string is accepted. timeoutMs is capped at 240000 ms (shell.maxTimeoutMs); a run still going at the cap is killed and returns timedOut with the output captured so far. Use process_start and process_output for longer runs, such as coding-agent CLIs.
Inputs: command (required), cwd, args, agent, +1 more.
fs_listCRead-only
List files and directories inside an allowed root. Large generated directories are skipped during recursive listing.
Inputs: path (required), agent, maxDepth, recursive, +1 more.
fs_readARead-only
Read a UTF-8 text file inside an allowed root. Secret-like files are blocked by default.
Inputs: path (required), agent, endLine, startLine.
fs_replaceA
Make a precise text edit by replacing an exact string in a UTF-8 file. Fails when the target text is absent or ambiguous.
Inputs: path (required), newText (required), oldText (required), agent, +1 more.
fs_searchCRead-only
Search text files recursively under an allowed directory and return matching lines.
Inputs: path (required), query (required), agent, regex, +3 more.
fs_writeBDestructiveIdempotent
Create or replace one UTF-8 text file inside an allowed root. The parent directory must already exist.
Inputs: path (required), content (required), agent, overwrite.
git_diffCRead-only
Read a git working-tree or staged diff with output capped by the server.
Inputs: path (required), file, agent, staged.
git_logBRead-only
Read recent git commits for a repository inside an allowed root.
Inputs: path (required), agent, limit.
git_statusARead-only
Get compact git branch and working-tree status for a repository inside an allowed root.
Inputs: path (required), agent.
localhost_requestCDestructive
Make a bounded HTTP request only to configured local hosts. Redirects are not followed.
Inputs: url (required), body, agent, method, +1 more.
parallel_command_runADestructive
Run 2-32 independent allowlisted commands concurrently on this computer. Use this instead of sequential command_run calls when commands do not depend on each other. Each command gets its own hidden process, scheduler slot, audit request id, stdout/stderr, timeout (capped at 240000 ms) and result.
Inputs: commands (required), agent.
process_killBDestructiveIdempotent
Stop a process previously started by this MCP server.
Inputs: id (required), agent.
process_listBRead-only
List processes started by this MCP server.
Inputs: agent.
process_outputBRead-only
Read recent captured stdout/stderr for a process started by this MCP server.
Inputs: id (required), agent, tailChars.
process_startADestructive
Start a long-running allowlisted local process and return its id for output/kill calls. Startup is coordinated by the shared scheduler; after successful spawn the managed process runs independently under ProcessManager ownership. It has no timeout: poll process_output and stop it with process_kill. Use it for runs that may exceed command_run's 240000 ms cap. Coding-agent CLIs (claude, codex, agent, cursor-agent) get a closed stdin; use a streaming output mode such as claude -p --output-format stream-json --verbose so progress is visible.
Inputs: command (required), cwd, args, agent.
project_snapshotARead-only
Collect the most useful development context in one call: repo root, git status, diff summary, recent commits, package scripts, package manager, and MCP-managed processes.
Inputs: path (required), agent.
scheduler_statusARead-only
Inspect Local Commander execution scheduler limits, active work, queue and resource locks.
Inputs: agent.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 20 tools
Most tools target distinct resources and actions, and descriptions clearly separate close pairs like command_run vs parallel_command_run and fs_write vs fs_replace. Minor overlap exists between process_list/scheduler_status (both report running work) and process_start vs command_run (long-running vs bounded), but descriptions disambiguate these well.
Names use predictable snake_case with namespace prefixes (fs_, git_, process_, agent_) and clear verb+noun ordering like fs_read, git_status, process_kill. A few deviations exist (noun-only project_snapshot, agent_presence/message/monitor lack verbs), but the overall pattern is readable and stable.
At 20 tools the server sits at the heavy end, but each tool maps to a recognizable capability across filesystem, git, process control, HTTP, and agent coordination. No obvious filler or redundant duplicates, so the count is justified even if slightly sprawling.
The surface covers the core local-dev lifecycle: filesystem read/list/search/write/replace, git status/diff/log, command and process execution, and agent messaging/presence. Gaps like fs_delete or git write operations (add/commit/checkout) exist, but these are workable through command_run.
Maintenance
Related MCP Connectors
Use your own Windows, Mac or Linux computer from ChatGPT, Claude, Cursor or Gemini CLI: run commands, read, write and search files, run long processes. Your computer only makes an outgoing connection (no open ports or VPN). Read-only mode, allowed folders, blocked commands and an action log keep you in control. Free plan available.
Persistent cloud workspaces for AI agents: run commands, edit files, use git and a browser.
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
Connect ChatGPT, Claude, Cursor or VS Code to your Windows PC: files, terminal, browser, apps.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to securely inspect, modify, and manage local projects with trusted filesystem access, safe Git operations, controlled task execution, and developer runtime process management over stdio or HTTP.4Apache 2.0
- FlicenseNot gradedqualityAmaintenanceExposes a governed, OAuth-gated suite of 38 tools that let web AI assistants like Claude, ChatGPT, and Grok work directly on your local machine — reading and editing files, running whitelisted shell commands, searching, querying SQLite, driving browsers and DevTools, managing background tasks and localhost services, and controlling Git, clipboard, notifications, and Postman. This lets users build, debug, and maintain projects, inspect databases and local APIs, and check on long-running jobs from a browser or phone without granting unrestricted shell access.-
- AlicenseNot gradedqualityAmaintenanceExposes an OAuth-gated suite of 38 tools that let web-based AI chat clients operate a local machine, covering files, whitelisted shell commands, search, Git, SQLite, browser and DevTools automation, background tasks, localhost services, clipboard, and ports. It keeps access governed through folder allowlists, a command whitelist, and rate limits so clients gain a large operating surface without unrestricted shell access.MIT
- AlicenseNot gradedqualityAmaintenanceEnables web-based AI assistants and local IDEs to securely operate a local machine through an OAuth-gated suite of 38 tools covering files, shell, search, Git, databases, browser automation, DevTools, background tasks, clipboard, localhost services, and Postman. Access is constrained by a command whitelist, folder allowlists, and rate limits so clients never receive unrestricted shell access.MIT