# Local Commander

> Local Commander is an open-source MCP server for developer tools. Give your AI scoped access to files, Git, allowlisted commands and localhost dev servers. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, macOS, Windows, Linux, Self-hosted
- **Repository:** https://github.com/netbka/local-commander-mcp-agent
- **MCP Registry name:** io.github.netbka/local-commander-mcp-agent
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools), [productivity](https://ai-powered.com/categories/productivity)
- **Listing updated:** 2026-11-23

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
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.

### Claude Code: Or share it with your project (.mcp.json)

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

### Claude Desktop (claude_desktop_config.json)

```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.

### Cursor (~/.cursor/mcp.json)

```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.

### VS Code (~/.copilot/mcp-config.json)

```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.

### Codex: Add with the CLI (Terminal)

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

### Codex: Or add to config.toml (~/.codex/config.toml)

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

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```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

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```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.

### Devin Desktop (~/.config/devin/mcp_config.json)

```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.

### Cline (cline_mcp_settings.json)

```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.

### Zed (Zed settings.json)

```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.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "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.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```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.

### Kiro (~/.kiro/settings/mcp.json)

```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.

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

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_read` (name suggests: reads): Bounded file reads inside allowed roots.
- `fs_list` (name suggests: reads): Directory listings inside allowed roots.
- `fs_search` (name suggests: reads): Text search inside allowed roots.
- `fs_write` (name suggests: changes): Creates or replaces a file.
- `fs_replace`: Exact targeted replacement in a file.
- `git_status` (name suggests: reads): Compact Git status.
- `git_diff`: Compact Git diff.
- `git_log`: Compact Git log.
- `command_run` (name suggests: changes): Runs one allowlisted executable with separate arguments.
- `parallel_command_run` (name suggests: changes): Runs several allowlisted executables in parallel.
- `process_start` (name suggests: changes): Starts a long-running dev process.
- `process_list` (name suggests: reads): Lists managed processes.
- `process_output`: Reads a process's output.
- `process_kill`: Stops a managed process.
- `scheduler_status` (name suggests: reads): Shows active and queued work and resource locks.
- `localhost_request`: Bounded HTTP to allowlisted local hosts.

## 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.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/local-commander-2
