Skip to content
MCP server

Local Commander

Give your AI scoped access to files, Git, allowlisted commands and localhost dev servers

Runs locally

Local Commander is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, macOS, Windows
Runs
Locally
What it can do
Can change data (4 tools)
Version
0.1.4
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add local-commander-mcp-agent --env LCMCP_ROOTS='<LCMCP_ROOTS>' -- npx -y local-commander-mcp-agent

Add --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": {
    "local-commander-mcp-agent": {
      "command": "npx",
      "args": [
        "-y",
        "local-commander-mcp-agent"
      ],
      "env": {
        "LCMCP_ROOTS": "<LCMCP_ROOTS>"
      }
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "local-commander-mcp-agent": {
      "command": "npx",
      "args": [
        "-y",
        "local-commander-mcp-agent"
      ],
      "env": {
        "LCMCP_ROOTS": "<LCMCP_ROOTS>"
      }
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "local-commander-mcp-agent": {
      "command": "npx",
      "args": [
        "-y",
        "local-commander-mcp-agent"
      ],
      "env": {
        "LCMCP_ROOTS": "<LCMCP_ROOTS>"
      }
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "local-commander-mcp-agent": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "local-commander-mcp-agent"
      ],
      "env": {
        "LCMCP_ROOTS": "<LCMCP_ROOTS>"
      }
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add local-commander-mcp-agent --env LCMCP_ROOTS='<LCMCP_ROOTS>' -- npx -y local-commander-mcp-agent

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.local-commander-mcp-agent]
command = "npx"
args = ["-y", "local-commander-mcp-agent"]
env = { LCMCP_ROOTS = "<LCMCP_ROOTS>" }

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "local-commander-mcp-agent": {
      "command": "npx",
      "args": [
        "-y",
        "local-commander-mcp-agent"
      ],
      "env": {
        "LCMCP_ROOTS": "<LCMCP_ROOTS>"
      }
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "local-commander-mcp-agent": {
          "command": "npx",
          "args": [
            "-y",
            "local-commander-mcp-agent"
          ],
          "env": {
            "LCMCP_ROOTS": "<LCMCP_ROOTS>"
          }
        }
      }
    }

    Or run: gemini mcp add -s user -e LCMCP_ROOTS='<LCMCP_ROOTS>' local-commander-mcp-agent npx -- -y local-commander-mcp-agent

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "local-commander-mcp-agent": {
          "command": "npx",
          "args": [
            "-y",
            "local-commander-mcp-agent"
          ],
          "env": {
            "LCMCP_ROOTS": "<LCMCP_ROOTS>"
          }
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "local-commander-mcp-agent": {
          "command": "npx",
          "args": [
            "-y",
            "local-commander-mcp-agent"
          ],
          "env": {
            "LCMCP_ROOTS": "<LCMCP_ROOTS>"
          }
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "local-commander-mcp-agent": {
          "command": "npx",
          "args": [
            "-y",
            "local-commander-mcp-agent"
          ],
          "env": {
            "LCMCP_ROOTS": "<LCMCP_ROOTS>"
          }
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "local-commander-mcp-agent": {
          "command": "npx",
          "args": [
            "-y",
            "local-commander-mcp-agent"
          ],
          "env": {
            "LCMCP_ROOTS": "<LCMCP_ROOTS>"
          }
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "local-commander-mcp-agent": {
          "command": "npx",
          "args": [
            "-y",
            "local-commander-mcp-agent"
          ],
          "env": {
            "LCMCP_ROOTS": "<LCMCP_ROOTS>"
          }
        }
      }
    }

    The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "local-commander-mcp-agent": {
          "command": "npx",
          "args": [
            "-y",
            "local-commander-mcp-agent"
          ],
          "env": {
            "LCMCP_ROOTS": "<LCMCP_ROOTS>"
          }
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "local-commander-mcp-agent": {
          "command": "npx",
          "args": [
            "-y",
            "local-commander-mcp-agent"
          ],
          "env": {
            "LCMCP_ROOTS": "<LCMCP_ROOTS>"
          }
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • LCMCP_ROOTSFolders the server may access, separated by ; on Windows and : elsewhereRequired

About Local Commander

The design choice is a middle path between pasting code into chat and handing an assistant a raw terminal. You name the folders it may see, secrets such as .env files and private keys are blocked by default, and commands run from an allowlist (Git, Node, npm, Python and similar) with separate arguments, so there is no free-form shell string to inject into.

It offers file read, list, search and write tools, compact Git status, diff and log, parallel command runs, managed long-running processes, and bounded requests to allowlisted local hosts. The README is frank that this is not a sandbox: an allowed program like node runs with your account's permissions, and for hard isolation it points to the Docker image, a separate low-privilege account or a VM.

It runs locally with no account and no telemetry, and the audit log is off unless enabled. Install options include an .mcpb file for Claude Desktop, npx setup for Claude Desktop and Cursor, a Claude Code command, and a Docker image. A hosted product at localcmd.app covers multiple computers and is separate.

Tools this server provides (17)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 4 of 17 tools change data; 7 names don't say.

From the server's own tool labels and tool names; not verified by us.

project_snapshot
One-call repo context: status, diff stat, commits, scripts and processes.
fs_readName suggests: reads
Bounded file reads inside allowed roots.
fs_listName suggests: reads
Directory listings inside allowed roots.
fs_searchName suggests: reads
Text search inside allowed roots.
fs_writeName suggests: changes
Creates or replaces a file.
fs_replace
Exact targeted replacement in a file.
git_statusName suggests: reads
Compact Git status.
git_diff
Compact Git diff.
git_log
Compact Git log.
command_runName suggests: changes
Runs one allowlisted executable with separate arguments.
parallel_command_runName suggests: changes
Runs several allowlisted executables in parallel.
process_startName suggests: changes
Starts a long-running dev process.
process_listName suggests: reads
Lists managed processes.
process_output
Reads a process's output.
process_kill
Stops a managed process.
scheduler_statusName suggests: reads
Shows active and queued work and resource locks.
localhost_request
Bounded HTTP to allowlisted local hosts.

What it does

Folder scoping
Only the roots you choose are visible to the assistant.
Allowlisted commands
Executables run with separate arguments, not a shell string.
Dev process control
Start, list, read output from and kill long-running processes.
Git inspection
Compact status, diff and log tools.
Parallel runs
Independent commands run side by side with resource locks.
Localhost requests
Bounded HTTP to allowlisted local hosts only.

Good for

  • Run a repo's tests and summarise failures
  • Start a dev server and confirm a port answers
  • Review what changed since yesterday before pushing
  • Search a codebase and edit files in place

Pricing

Open source

Open-source edition runs locally with no account.

Local Commander FAQ

Does Local Commander send data anywhere?

The README says no; it talks only to the client that started it, with no telemetry or account.

Is Local Commander a sandbox?

No. Use the Docker image, a low-privilege account or a VM for hard isolation.

How do I remove Local Commander?

Run npx -y local-commander-mcp-agent setup --remove.

Does Local Commander support several computers?

Not in this edition; the hosted service at localcmd.app handles that separately.

Is Local Commander free?

Yes. Local Commander is open source, so you can use and self-host it for free.

How do I add Local Commander to Claude Code?

Run this command in your terminal: claude mcp add local-commander-mcp-agent --env LCMCP_ROOTS='<LCMCP_ROOTS>' -- npx -y local-commander-mcp-agent

What are the best alternatives to Local Commander?

The closest alternatives to Local Commander are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers