local-computer-mcp
by zulinliu
README.md
# local-computer-mcp
`local-computer-mcp` is a cross-platform MCP server for controlled local computer access: filesystem inspection/editing, ripgrep-backed search, shell sessions, process inspection, and Cloudflare quick Tunnel debugging.
[](https://github.com/zulinliu/local-computer-mcp/actions/workflows/ci.yml)
[](./LICENSE)
> Status: 0.1.0 release candidate. The tool surface is frozen and security hardening is implemented for authentication, authorization, subject isolation, rate limits, command policy, optional approval, and optional container sandboxing. It is not an OS-level sandbox by itself.
## Requirements
- Node.js 22+; Node.js 24 LTS is recommended.
- ripgrep (`rg`) on PATH, or configure `search.ripgrepPath`.
- `cloudflared` only for `tunnel --quick`.
- Docker or Podman only when enabling the optional shell sandbox.
## Install and build
```bash
git clone https://github.com/zulinliu/local-computer-mcp.git
cd local-computer-mcp
npm ci
npm run build
npm test
```
CI covers Ubuntu, macOS, and Windows on Node.js 22 and 24.
## Create a config
Create `~/.config/local-computer-mcp/config.jsonc` on Linux/macOS, or `%APPDATA%\local-computer-mcp\config.jsonc` on Windows:
```jsonc
{
"server": { "name": "local-computer-mcp", "version": "0.1.0" },
"roots": [
{ "name": "work", "path": "~/work", "mode": "rw" },
{ "name": "docs", "path": "~/Documents/reference", "mode": "ro" }
]
}
```
Run:
```bash
node dist/cli.js doctor
node dist/cli.js config validate
node dist/cli.js stdio
```
Loopback Streamable HTTP and authenticated remote modes are documented in [`docs/RUNNING.md`](docs/RUNNING.md). Remote HTTP and Tunnel modes require `auth.mode` to be `bearer` or `cloudflare-access`.
## MCP client configuration
```json
{
"mcpServers": {
"local-computer": {
"command": "node",
"args": ["/absolute/path/to/local-computer-mcp/dist/cli.js", "stdio"]
}
}
}
```
## Tool surface
The frozen MCP tools are:
```text
fs_copy fs_create_directory fs_delete fs_edit_blocks fs_list fs_move
fs_read_media fs_read_text fs_stat fs_tree fs_write_file
search_more search_start search_stop
shell_kill shell_list shell_read shell_start shell_write
process_kill process_list system_info
```
Schemas, defaults, scopes, quotas, approval, and sandbox options are documented in [`docs/CONFIG.md`](docs/CONFIG.md).
## Security model
- Local stdio uses the trusted local-owner subject.
- Loopback HTTP uses the trusted local subject; remote HTTP and Tunnel require authentication.
- Subjects have tool scopes and optional configured-root subsets.
- Shell/search sessions are isolated by subject and have per-subject quotas.
- Rate limits and command policy run before tool execution.
- Optional local approvals bind command/argv boundaries, cwd, environment, subject, and expiry.
- Optional Docker/Podman sandboxing applies only to shell sessions; filesystem and search tools still run with the server OS identity.
This software intentionally exposes powerful local capabilities. Keep roots narrow, prefer read-only roots, avoid granting remote subjects `fs:write` or `shell:run` unless required, and never expose an unisolated home directory. See [`SECURITY.md`](SECURITY.md).
## Contributing
Bug reports, feature proposals, documentation improvements, and code contributions are welcome. Read [`CONTRIBUTING.md`](CONTRIBUTING.md), use GitHub Issues, and follow the [`CODE_OF_CONDUCT.md`](CODE_OF_CONDUCT.md).
## License
Released under the [Apache License 2.0](./LICENSE).
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues