fs-sandbox-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.
fs-sandbox-mcp — a filesystem MCP server that actually stays in its box
A drop-in filesystem server for AI agents with a declarative policy, a tamper-evident audit log, dry-run writes and undo.
Why
Path confinement is where filesystem servers break. Real advisories in 2025-2026:
CVE-2025-53110: a prefix string check let
/allowed_dir_extrapass as inside/allowed_dir.CVE-2025-53109: symlinks inside an allowed folder escaped the sandbox.
CVE-2025-67366 (another server): paths validated before resolving symlinks.
fs-sandbox-mcp canonicalizes every path (symlinks resolved, also for files that don't exist yet) and compares by path components. Each of these bug classes has a regression test in this repo, run on Linux and Windows (junctions).
Related MCP server: filesystem-mcp
Features
Policy file: roots with
ro/rwmode, deny patterns (.env,*.pem,.git...), max file size.Audit log (JSONL, hash-chained): every read, write, denial and undo; edits or deletions in the log are detectable.
Dry-run for writes; undo_last_write restores or removes.
Tools:
read_file,list_dir,write_file,undo_last_write.
Quickstart
FS_SANDBOX_POLICY=./policy.json npx -y @cardinelabs/fs-sandbox-mcpExample policy: policy.example.json.
{ "mcpServers": { "fs-sandbox": { "command": "npx", "args": ["-y", "@cardinelabs/fs-sandbox-mcp"], "env": { "FS_SANDBOX_POLICY": "/path/policy.json" } } } }Limits
Text files only; no file watching; undo keeps the history of the current session only.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
A real-time, multiplayer filesystem for agents and humans: shared files, live edits, history.
Artifact store for AI agents — read, write, and search files by path; share by rendered URL.
A home for your agents: an owned book of record any AI agent can write to, with provenance and undo.
Your own computer's files from ChatGPT or Claude: folder rules, confirmations and undo.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to safely explore directories, read files, search content by pattern or filename, and edit files with checksum verification and dry-run preview within sandboxed filesystem access.76MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to read, write, and manage files on the local system with security features like path restrictions and optional read-only mode.92MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to safely read and write files in a sandboxed workspace via natural language, with on-demand connection, CVE-hardened path confinement, injection resistance, and full audit logging.-
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to safely read, write, and search files within a whitelisted sandbox directory, rejecting any attempts to escape the sandbox.MIT