Local Workspace MCP logo

Local Workspace MCP

Read-only workspace access with bounded filesystem, Git, multimodal inspection, and allowlisted task tools over stdio.

Install Local Workspace MCP

Run the project’s own setup commands, in order.

Setup steps from the project

local-workspace-mcp installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    npm install -g local-workspace-mcp          # puts workspace-mcp on PATH
    
  2. 2. Install
    pnpm install && pnpm build && npm link
    
  3. 3. Configure
    workspace-mcp init-config     # writes ~/.config/local-workspace-mcp/config.json (mode 600)
    
  4. 4. Configure
    nano ~/.config/local-workspace-mcp/config.json
    
  5. 5. Check the setup
    workspace-mcp doctor          # must print "doctor: ALL GREEN" (use --json for CI)
    
  6. 6. Add to Claude Code
    claude mcp add local-workspace --scope user -- workspace-mcp serve --stdio
    

Overview

The local-workspace-mcp MCP server exposes bounded filesystem, Git, multimodal file inspection, and named-task tools for authorized local workspace roots. It runs over stdio JSON-RPC, has no inbound listener or daemon, and does not make network calls itself. Operator configuration controls workspace roots, deny rules, task allowlists, output limits, and audit behavior. Reach for it when an agent needs repository context without write, delete, arbitrary-shell, or unrestricted secret access.

Use cases

  • Inspect authorized source files without enabling edits
  • Review Git status and uncommitted diffs
  • Search repository content with bounded output
  • Extract text from PDFs and Office files
  • Run explicitly allowlisted workspace tasks

Key features

  • Bounded filesystem reads and searches
  • Read-only Git inspection
  • Image, archive, PDF, and Office inspection
  • Root and secret deny policies
  • Allowlisted named-task execution
  • stdio JSON-RPC transport

Tools23

What Local Workspace MCP lets your agent do. Expand a tool for its parameters.

Self-reported~421 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

11/11 checks healthy over the last 43d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit1mo agoMost recent push to the default branch.
Tools exposed23Callable tools this server registers over MCP.

How Local Workspace MCP works

What local-workspace-mcp does

The local-workspace-mcp MCP server gives an AI host read-oriented access to configured local workspaces. It covers directory listings, file metadata, bounded text reads, batch reads, filename searches, content searches, and workspace discovery. Git operations provide status, diffs, logs, commit or object inspection, and branch information without exposing write operations.

The server also handles selected file formats. Agents can inspect images, create contact sheets, list archive members, read safe archive entries, inspect and render PDFs, extract PDF text, and extract text from Office Open XML files. Macros are flagged rather than executed, and legacy OLE content is refused. These capabilities place the project in the 📂 File Systems category while extending beyond plain text files.

How it works

Each MCP host starts workspace-mcp serve --stdio. The process keeps no daemon and opens no inbound network listener. Authorized roots are represented by workspace IDs; tool calls use those IDs and relative paths rather than exposing host paths through the workspace-discovery response.

The local-workspace-mcp MCP server checks every filesystem path against the configured root and default-deny rules. The deny policy covers secrets, .env files, private keys, and .git internals. Attempts to escape a root, read denied content, use an invalid Git specification, or invoke an unavailable task return explicit policy results such as OUTSIDE_ROOT, ACCESS_DENIED, or TASK_DENIED.

task_run is the only side-effecting tool. It runs an operator-declared task as the current user, so its allowlist limits which commands can be invoked but does not sandbox the code those commands execute. Search and task limits report timeout or truncation in normal results. Git calls on a non-Git root return a non-repository result rather than treating that condition as a failure.

Setup and configuration

Node.js 20 or newer is required. Git is needed for the git_* tools, and ripgrep is needed for content search. Installation can use the published npm package, or a clone can be built with pnpm before linking the command.

Run workspace-mcp init-config to create the configuration file, then replace the generated example path with an absolute workspace path. The configuration is strict JSON and defines a version, named workspaces, tasks, and deny settings. Run workspace-mcp doctor; setup is complete when it reports doctor: ALL GREEN.

Register the stdio command with the MCP host. For Claude Code, the documented command is claude mcp add local-workspace --scope user -- workspace-mcp serve --stdio. Other hosts use their MCP configuration-file format and the absolute path to workspace-mcp when required.

Tools and capabilities

The local-workspace-mcp MCP server exposes 23 tools, including:

  • workspace_roots, fs_list, fs_stat, fs_read, fs_read_many, fs_search_files, and fs_search_content for bounded workspace navigation and search.
  • fs_inspect, fs_image, fs_contact_sheet, archive tools, PDF tools, and fs_office_text for structured or multimodal inspection.
  • Git read tools for status, diffs, logs, object display, and branches.
  • task_list and task_run for operator-defined named tasks.

Reads are annotated with readOnlyHint where applicable, allowing compatible hosts to distinguish them from the task tool.

Limitations and notes

There are no write or delete tools, and the server does not provide an arbitrary shell tool. However, allowlisted tasks are real commands running with the user's permissions; the project explicitly does not treat this mechanism as a sandbox. Hosts and operators should review the threat model and security documentation before team deployment. Access can be widened only through operator configuration, not through repository content or prompts.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Local Workspace MCP

local-workspace-mcp is an MCP server that connects AI hosts to operator-authorized local workspace roots through stdio. Its main tools provide bounded filesystem reads and searches, read-only Git inspection, multimodal file inspection, workspace discovery, and explicitly allowlisted named tasks without adding write, delete, or arbitrary-shell tools.

Install it with `npm install -g local-workspace-mcp`, then run `workspace-mcp init-config`, replace the example path with an absolute workspace root, and verify it with `workspace-mcp doctor`. A source checkout can be built with pnpm and linked instead.

Define named workspaces with absolute paths in the generated JSON configuration, then run `workspace-mcp doctor`. The example root must be replaced with a real path, and the configuration also supports task and deny settings.

Yes, local-workspace-mcp works with Claude Code through its stdio registration command: `claude mcp add local-workspace --scope user -- workspace-mcp serve --stdio`. Use `claude mcp list` to confirm registration.

No, local-workspace-mcp is not a sandbox. `task_run` accepts only operator-allowlisted task IDs, but an enabled command runs as the current user and the server does not restrict what that invoked code can do.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewLocal Workspace MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/local-workspace-mcp?style=directory)](https://allmcps.com/mcp/local-workspace-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/local-workspace-mcp"><img src="https://allmcps.com/api/badge/local-workspace-mcp?style=directory" alt="Local Workspace MCP on AllMCPs" /></a>