Skip to main content
Glama
local-computer-mcp

local-computer-mcp

by zulinliu

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.

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

Related MCP server: Remote Coding Runtime

Install and build

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:

{
  "server": { "name": "local-computer-mcp", "version": "0.1.0" },
  "roots": [
    { "name": "work", "path": "~/work", "mode": "rw" },
    { "name": "docs", "path": "~/Documents/reference", "mode": "ro" }
  ]
}

Run:

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. Remote HTTP and Tunnel modes require auth.mode to be bearer or cloudflare-access.

MCP client configuration

{
  "mcpServers": {
    "local-computer": {
      "command": "node",
      "args": ["/absolute/path/to/local-computer-mcp/dist/cli.js", "stdio"]
    }
  }
}

Tool surface

The frozen MCP tools are:

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.

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.

Contributing

Bug reports, feature proposals, documentation improvements, and code contributions are welcome. Read CONTRIBUTING.md, use GitHub Issues, and follow the CODE_OF_CONDUCT.md.

License

Released under the Apache License 2.0.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables remote MCP clients like ChatGPT to run shell commands and manage files on your local machine via a Cloudflare tunnel, exposing tools for file operations, search, and task management.
      7
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables MCP clients to safely access user-local filesystems, apply validated patches, inspect git state, and run persistent jobs on outbound-connected local runners through a stateless Cloudflare control plane.
      18
      PolyForm Noncommercial 1.0.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables local, permissioned development workflows from compatible AI clients, including filesystem editing, interactive terminals, durable jobs, Git operations, and semantic browser testing.
      44 npm
      1
      Apache 2.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables reading and editing local files, running shell commands, inspecting processes, and working with local projects through a local-first, self-hosted server, with optional experimental browser and desktop clients.
      1
      MIT