Local-Workspace-MCP
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Local-Workspace-MCP
A local, policy-controlled MCP server that gives AI assistants and agents explicitly authorized access to selected files and developer resources on a Windows workstation.
Status: Early foundation implementation. The initial server exposes read-only filesystem tools. Write, delete, Git, terminal, and PowerShell capabilities are not enabled yet.
Features in this foundation
MCP over local stdio; no network listener.
Explicit workspace roots and capability-based authorization.
Read-only tools:
list_files,read_file,get_file_info, andsearch_files.Canonical path validation and symlink/reparse-point escape checks.
Bounded file size, search depth, and result count.
Audit events written to stderr so stdout remains reserved for MCP JSON-RPC.
CI checks for type safety, lint, tests, build, dependency audit, and CodeQL.
Related MCP server: File Context MCP Server
Requirements
Node.js 22 or later
npm 10 or later
Local setup
npm install
Copy-Item config/permissions.example.json config/permissions.jsonEdit config/permissions.json and replace the sample root with a real, existing absolute directory. Grant only the capabilities you need. The initial implementation supports list, read, search, and metadata.
Start the server:
npm run devThe process waits for an MCP client over stdin/stdout. Do not type ordinary commands into the server terminal while it is running.
For a non-default configuration path:
$env:LWMCP_CONFIG = "F:\\AI-Config\\local-workspace-mcp.json"
npm run devMCP tools
Tool | Description |
| List direct entries in an authorized directory |
| Read a bounded UTF-8 text file |
| Read limited file/directory metadata |
| Search file names with bounded traversal |
Tool paths must be relative to a configured root. Absolute paths and traversal segments are rejected. The most specific matching configured root controls permissions for nested roots.
Checks
npm run typecheck
npm run lint
npm test
npm run build
npm audit --audit-level=highCI runs typecheck, lint, tests, build, and dependency audit. Dependency Review runs on pull requests; CodeQL runs on pushes, pull requests, and a weekly schedule. The first CI run will validate the initial dependency graph; a committed lockfile should be added after the first local install.
Security notes
Run as the current user; do not use Administrator.
Keep
config/permissions.jsonprivate; it is ignored by Git.Do not configure broad roots such as an entire drive or user profile.
Do not expose the server through a network transport.
This initial implementation is read-only. Future write-capable modules require separate capabilities, tests, and review.
See SECURITY.md and architecture.md.
License
MIT. See LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
Securely search and manage workspace context files for AI agents and teams.
Manage files and folders directly from your workspace. Read and write files, list directories, cre…
Safe folder access for ChatGPT and Claude: read, write and search files, risky tools opt-in.
Read and search folders on your own computer with explicit consent. Files are never uploaded.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables Large Language Models to safely browse and interact with local file systems through secure directory listing, file reading, and content search capabilities. Built with comprehensive security controls and high-performance handling of large directories and files.1MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to read, search, and analyze local file systems with tools for reading file contents, listing directories, searching by patterns, and analyzing folder structures for context-aware queries.MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to safely interact with the file system through a set of tools for reading, writing, deleting, copying, moving files, and managing directories.-
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to safely list, read, and search files within a restricted local workspace, with safeguards against path traversal and configurable size limits.MIT