FS Sandbox MCP Server
Filesystem MCP server with folder allow-list, tamper-evident audit log, dry-run writes and undo.
FS Sandbox scores 63 (Good), licensed MIT and written in TypeScript. It installs as a local process. It does not declare tools yet. Filed under File systems. GitHub shows 0 stars. Package registries report about 1,205 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
63 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade C
55/100 for listing completeness. Lost points: short README, no listed tools, short summary.
How quality is graded
Where the 63 comes from
22 + 20 + 0 + 10 + 4 + 7 = 63. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "cardinelabs-fs-sandbox-mcp": { "command": "npx", "args": [ "-y", "@cardinelabs/fs-sandbox-mcp@0.2.1" ], "env": { "FS_SANDBOX_RW_DIR": "", "FS_SANDBOX_RO_DIR": "", "FS_SANDBOX_POLICY": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
FS_SANDBOX_RW_DIR | Required | Folder the agent can read and write |
FS_SANDBOX_RO_DIR | Optional | Optional folder the agent can only read |
FS_SANDBOX_POLICY | Optional | Optional JSON policy file (replaces the two folders above) |
Tools
All capabilitiesTools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.
About
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).
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
Zero config. Point it at one writable folder (and, optionally, one read-only folder):
{ "mcpServers": { "fs-sandbox": { "command": "npx", "args": ["-y", "@cardinelabs/fs-sandbox-mcp"],
"env": { "FS_SANDBOX_RW_DIR": "/path/to/workspace", "FS_SANDBOX_RO_DIR": "/path/to/docs" } } } }
Secrets (.env, keys, .git) are denied by default and the audit log goes to .fs-sandbox/audit.jsonl inside the writable folder.
Full policy. For several roots, custom deny patterns or a size limit, use a policy file (example: policy.example.json):
FS_SANDBOX_POLICY=./policy.json npx -y @cardinelabs/fs-sandbox-mcp
Claude Desktop. Download fs-sandbox-<version>.mcpb from the releases, double-click it and pick the folders.
Claude Code. Install the plugin from this repository:
/plugin marketplace add cardinelabs/fs-sandbox-mcp
/plugin install fs-sandbox@cardinelabs
The plugin confines the agent to the current project folder.
Limits
Text files only; no file watching; undo keeps the history of the current session only.
Privacy Policy
fs-sandbox-mcp runs entirely on your machine. It collects no telemetry and sends nothing over the network.
- Data collected: none by us. The server reads and writes only files inside the folders you configure.
- Use and storage: the audit log (
.fs-sandbox/audit.jsonl) and undo copies are stored locally, inside your writable folder. - Third-party sharing: none. File contents reach only the AI client you connected (for example Claude), under that client's own privacy policy.
- Retention: local files stay until you delete them; undo history lasts for the current session.
- Contact: open an issue at https://github.com/cardinelabs/fs-sandbox-mcp/issues.
Frequently asked questions
What is FS Sandbox MCP Server?
Filesystem MCP server with folder allow-list, tamper-evident audit log, dry-run writes and undo.
How do I install FS Sandbox MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. FS Sandbox MCP Server runs locally from the npm package @cardinelabs/fs-sandbox-mcp with the command npx -y @cardinelabs/fs-sandbox-mcp@0.2.1.
Is FS Sandbox MCP Server free and open source?
Yes. FS Sandbox MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does FS Sandbox MCP Server support remote (HTTP) connections?
No remote endpoint is listed for FS Sandbox MCP Server. It runs locally on your machine over stdio, started by your MCP client.
How is FS Sandbox MCP Server's trust score calculated?
FS Sandbox MCP Server scores 63 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.