Filesystem MCP Server 2.4.1 official install examples grant write access to Desktop and omit --read-only and --confine-roots. Streamable HTTP has no authentication, and a Windows directory-swap race remains a documented limit.
Published
The official Filesystem MCP server is a first-party Model Context Protocol server that lets an AI assistant read, write, search, and edit files inside directories the operator allows. Publisher: Model Context Protocol, a Series of LF Projects, LLC. The public repository is modelcontextprotocol/servers, a monorepo of reference servers. The implementation is TypeScript. The npm package of interest is @modelcontextprotocol/server-filesystem, whose bin is mcp-server-filesystem. The project's license is in transition from MIT to Apache-2.0, as the repository LICENSE states; the filesystem README at this pin still says MIT. The published tarball does not include a LICENSE file.
This review pins the latest npm release at research time, 2.4.1, which the official provenance ties to monorepo tag v2.6.0.
What we pinned
- Git tag v2.6.0, a lightweight tag pointing at commit
b502fd9fc711de7285977396db3b8a732d1c9f64(Merge pull request #5685 from modelcontextprotocol/v2/chore/5681-release-v2.6.0, bodyRelease v2.6.0: merge v2/main into main). The commit date is 27 November 2026, 17:38:51 Asia/Hong_Kong (04:38:51 -05:00; 09:38:51 UTC). The GitHub Release of the same name was published 17:51:35 Asia/Hong_Kong (09:51:35 UTC). The tag itself is not annotated and carries no tag signature. The pointed-to commit is a GitHub-signed merge; after importing GitHub's web-flow public keys,git verify-commitreported a good signature fromGitHub <noreply@github.com>with fingerprint9684 79A1 AFF9 27E3 7D1A 566B B569 0EEE BB95 2194. That confirms GitHub's merge signature, not a maintainer-signed annotated tag. There is nov2.4.1git tag: the monorepo and the filesystem package are versioned separately. Atv2.5.0,src/filesystem/package.jsonis2.4.0; atv2.6.0it is2.4.1. - npm @modelcontextprotocol/server-filesystem@2.4.1, published 27 November 2026, 17:55:29 Asia/Hong_Kong (09:55:29.240 UTC), about four minutes after the GitHub Release. The registry
latestdist-tag is2.4.1. The tarball SHA-1 ise619aec14123631563b25f9b7cf1f3adb26111cc, matching the registrydist.shasumand a SHA-1 we computed on the downloaded file. Integrity:sha512-77Az42zbdj97BPS+3d0gGc74BoYxhR/tY1SodV7VjhZRbJt8PTeQtZfPOZncXXOVuUc8rY+BdFgIeaFwo8IzZg==. The SHA-512 digest of the tarball also matches the subject digest in the registry's SLSA provenance attestation (efb033e36cdb763f7b04f4bedddd2019cef8068631851fed6354a8755ed58e16516c9b7c3d3790b597cf3999dc5d7395b9473cad8f8174580879a170a3c23366). The provenance names workflow.github/workflows/release.ymlatrefs/tags/v2.6.0, source commitb502fd9fc711de7285977396db3b8a732d1c9f64, and GitHub Actions run45977210708. The publisher is a trusted GitHub Actions OIDC identity (GitHub Actions/npm-oidc-no-reply@github.com). The tarball has nogitHeadfield. It ships compileddist/JavaScript pluspackage.jsonandREADME.md(14 files), not the TypeScript sources, tests, Dockerfile, changelog, or license file from the git tag.package.jsonin the tarball is identical tosrc/filesystem/package.jsonat the pin, the README bytes are identical, and the compiled files contain the 2.4.1-specific strings from the source (listedDirectoryIdentity, the Windows directory-changed refusal, the move-into-self error, the expandedsearch_filesempty-result text). We did not rebuilddist/from TypeScript. - The same monorepo release also publishes other servers. Those packages are out of scope except where this review notes a shared fact, such as the date-version upgrade warning in the v2.6.0 notes.
At research time on the evening of 27 November 2026, Asia/Hong_Kong, modelcontextprotocol/servers showed 92,299 stars and 11,998 forks. The repo is not archived. It was created 19 November 2024, 09:10:17 Asia/Hong_Kong (01:10:17 UTC). Default-branch main was at the same commit as the pin. We pinned 2.4.1 / v2.6.0, not a later HEAD. The npm registry reported 1,143,812 weekly downloads for the period 20–26 November 2026.
Scope
This is a static review of official evidence: the pinned git tag and commit, the first-party TypeScript, tests, README, Dockerfile, and changelog under src/filesystem/ at that commit (plus the repository LICENSE, SECURITY.md, and the filesystem passages in the root README.md), the official npm tarball extracted as files and not executed, the v2.6.0 GitHub Release notes, the public advisories GHSA-rq2p-q7c4-6g27, GHSA-p9cv-8g75-4xcg, and GHSA-7m4x-rv66-mxhh, and the official documentation pages Connect to local MCP servers and Local Server Security as they stood at research time.
We did not run the MCP server, its CLI, npx, Docker, or any test file. We did not start it over stdio or Streamable HTTP, did not connect a client, did not execute install or prepare scripts, and did not write or delete user files. We used curl, git, tar, and Python or OpenSSL only to fetch metadata, unpack the official tarball, and compute hashes. We did not install dependencies and did not rebuild dist/. We did not download or install the unscoped npm name mcp-server-filesystem. We read its public registry metadata only.
No malware was found in the first-party TypeScript we opened at b502fd9f or in the official @modelcontextprotocol/server-filesystem@2.4.1 tarball files we inspected. That is a statement about the scope we opened, not a clean bill of health and not a runtime confirmation.
Verdict
2.4.1 is a real narrowing of a Windows listing race left open after the 2.4.0 fix for GHSA-rq2p-q7c4-6g27. It is not a clean bill of health, and it is not mainly a story about that patch.
The server can confine an agent tightly. --read-only withholds every write tool, so a client never lists those tools and a call is answered as unknown. --read-only-dir keeps the write tools listed but refuses a write, a move, or a copy into a marked directory, and Roots cannot lift that mark. --confine-roots stops a 2025-era client's Roots from replacing or widening the command-line allow-list. On macOS and Linux, writes, file reads, and directory listings are anchored to the directory that was validated, so a parent swapped for a symlink after the check is refused rather than followed. Those controls are in the pinned source. They are optional.
If you follow the official install examples, you do not turn them on. The filesystem README's Claude Desktop npx block and its Streamable HTTP one-liner both pass /Users/username/Desktop with no --read-only and no --confine-roots. The first-party tutorial Connect to local MCP servers, at research time, goes further: it tells operators to paste a Claude Desktop config that allows both Desktop and Downloads, still with no version pin and none of those flags, and its worked examples include writing a file to the desktop, scanning downloads, and moving images. The same organization's Local Server Security page tells operators to grant the narrowest directory, never the home directory, and to prefer read-only. The setup examples above that guidance do not apply it.
Without --confine-roots, a 2025-era client that supports Roots can replace the command-line allow-list, including with a broader directory. --read-only is off unless you pass it, so write_file, append_file, edit_file, create_directory, move_file, and copy_file are registered. Streamable HTTP, added in 2.4.0 and unchanged in substance in 2.4.1, binds 127.0.0.1:3001 by default, serves /mcp with no authentication, and documents HOST=0.0.0.0 as a way to expose the endpoint to every machine that can reach the host. A foreign browser Origin is refused with 403; a non-browser client that can reach the bound address is not.
The v2.6.0 release notes are explicit that a swap made and undone while a Windows listing is in progress is still not detected, and the README documents a broader Windows limit: parent-directory junction swaps can still redirect a read, a write, or a listing because Node does not expose handle-relative opens. SECURITY.md at this pin describes the servers in the repository as reference implementations, "written to demonstrate MCP features and SDK usage rather than as production-ready products," while also saying they are real software that people run. That is the right frame for 2.4.1.
What the server is, and how it is distributed
createServer() in src/filesystem/server.ts builds an MCP server named secure-filesystem-server, with version taken at runtime from package.json (version.ts). The package requires Node.js 24 or later (engines.node is >=24).
The usual install path is npx -y @modelcontextprotocol/server-filesystem, with allowed directories as positional arguments. The same process talks stdio by default, and answers both protocol eras from one factory: 2026-07-28 clients (server/discover, no handshake) and 2025-era clients (initialize, then Roots). With --transport streamable-http it serves one /mcp endpoint instead. The official Docker image is built from src/filesystem/Dockerfile as mcp/filesystem; the entrypoint is node dist/index.js, and the allowed directories are the remaining container arguments.
The repository SECURITY.md lists this package as in scope for private vulnerability reports, and says security fixes ship in the next release of the affected server: older releases are not patched.
The tool surface, and what --read-only actually does
At this version the server registers sixteen tools. There is no delete_file or delete_directory tool. The features list at the top of the README still says "Create/list/delete directories"; that is leftover wording. A file can still be removed from its original path with move_file.
Every tool sets all four MCP annotation hints. The mapping in the README, and in the annotations objects in server.ts, is:
- Read-only tools (
readOnlyHint: true,idempotentHint: true,destructiveHint: false,openWorldHint: false):read_file(deprecated alias ofread_text_file),read_text_file,read_media_file,read_multiple_files,list_directory,list_directory_with_sizes,directory_tree,search_files,get_file_info,list_allowed_directories. - Write tools (
readOnlyHint: false,openWorldHint: false):create_directory(idempotent, not destructive),write_file(idempotent, destructive: it overwrites),append_file(neither idempotent nor destructive: a repeat appends again),edit_file(not idempotent, destructive),move_file(not idempotent, destructive: it deletes the source),copy_file(idempotent, not destructive: it never overwrites; a repeat fails).
--read-only does not leave the write tools listed and then refuse them. In createServer(), when options.readOnly is true, server.registerTool is wrapped so that any tool whose annotations do not declare readOnlyHint: true is registered and then remove()d, "before any client connects, so it is absent from tools/list and a call to it is answered as an unknown tool." The wrapper keys on the annotation rather than on a hard-coded list of write names, so a new tool is withheld unless it declares itself read-only. The README states the same rule, and says it applies on both protocol eras and to directories that later come from a client's Roots. The tests in __tests__/read-only.test.ts are written against that startup path. We did not run them.
Files inside the allowed directories are also exposed as MCP resources through the template file://{+path} (file-resources.ts). resources/list returns nothing, by design, so the server never enumerates the disk that way. A resources/read goes through the same validatePath as the read tools. A client that already has a path, or that obtained one from a listing tool, can read the file without calling read_text_file.
search_files matches a case-sensitive glob against entry names relative to the starting directory. It does not read file contents. The official "Connect to local MCP servers" tutorial at research time still says the server searches "by name or content." That is not what this source does.
Directory allow-lists, Roots, and --confine-roots
The only allow-list that works on every protocol version is the command line. parseArgs() in index.ts treats every non-option argument as a directory. --read-only, --confine-roots, --read-only-dir <path>, and --transport may appear anywhere; -- ends option parsing. --read-only-dir directories are also allowed directories, so they need not be repeated as positional arguments.
resolveAllowedDirectories() expands ~ (and, on Windows, ~\), resolves each path, and keeps both the original spelling and the realpath when they differ, which is how macOS /tmp and /private/tmp both work. A missing or non-directory path is skipped with a warning. If some directories were given and none is usable, the process exits. A later tool call still has to pass validatePath().
Stdio with no directories at all is a special case. The process still starts. It prints usage, then "Started without allowed directories - waiting for a 2025-era client to provide roots via MCP protocol." What happens next depends on the client's era, as the README and index.ts / server.ts describe:
- A 2026-07-28 client has no
initializehandshake and noroots/list. The command-line directories are the whole allow-list. If there are none, every tool call returnsNO_ALLOWED_DIRECTORIES_MODERN_ERROR(an error saying so). The client cannot add directories. - A 2025-era client that does not support Roots, and that also gave no command-line directories, cannot operate: the server logs the reason, closes the connection, and the stdio entry calls
onCannotOperate, which exits with status 1 (#4992). - A 2025-era client that supports Roots is asked for them via
roots/list. Roots completely replace the command-line allow-list when they are provided, unless--confine-rootsis set. Tool calls that arrive while roots are being fetched wait on a barrier, so they are checked against the roots that come back, not against a list the client has just withdrawn. Once the client's roots have been in force, an update with no valid roots revokes access ("Access denied - no allowed directories") until the client exposes a root again (#5094). Before any root has been in force, such an update keeps the command-line directories.
--confine-roots changes only the 2025-era Roots path, and only when command-line directories were given. confineRootsToDirectories() in allowed-directories.ts takes the overlap of the two lists: a root inside a command-line directory is kept; a root that contains a command-line directory (for example /) is narrowed to that directory; a root that overlaps none is ignored and logged. If every root is ignored after roots have already been in force, access is revoked. The test file __tests__/confine-roots.test.ts includes still lets a root outside the command-line directories replace them for the default (no flag), and a case that --confine-roots "has no effect without command-line directories." index.ts prints that warning at startup. Over HTTP, Roots never arrive, so the flag has nothing to confine.
Streamable HTTP will not start without at least one usable command-line directory (HTTP_NEEDS_DIRECTORIES_ERROR).
--read-only-dir, and whether Roots can lift it
--read-only-dir is the per-directory counterpart of --read-only. Write tools stay listed, because other directories may still be writable. validatePath() in lib.ts requires an access mode. A "read" is checked against the allow-list only. A "write" or "move" must also be handed the read-only list, and assertWritable() in read-only-directories.ts refuses a resolved path that falls inside any marked directory. "move" also refuses a path that contains a marked directory, so moving a parent cannot carry a protected subtree out from under its mark. copy_file validates the source as "read" and the destination as "write", so a copy out of a read-only directory is allowed and a copy into one is not, matching the README. edit_file is refused there even with dryRun.
The check runs on the path validatePath resolved, so a symlink in a writable directory cannot route a write into a read-only one. A nested directory inside a read-only directory is read-only too, even if it is also given as a writable allowed directory. The marking is fixed at startup. Roots carry no access mode, and the README and createServer() comments say they never lift it, with or without --confine-roots. __tests__/read-only-dirs.test.ts has a describe block --read-only-dir with a 2025-era client's Roots for that claim. We did not run it.
A --read-only-dir path must exist and resolve to a directory when the server starts. resolveReadOnlyDirectories() throws otherwise, and both the stdio and HTTP startup paths await it before serving, so a missing, dangling, or non-directory mark stops the process rather than leaving a path it could not pin down writable. Ordinary allowed directories, by contrast, may be missing at startup and are then skipped with a warning.
The README's own defence-in-depth note is the right one: also make the protected tree read-only at the operating-system level, with permissions or a Docker bind mount's ro flag. The MCP flag is the server's policy, not a substitute for OS enforcement.
Path confinement, symlinks, and the Windows limit
resolveAllowedPath() / validatePath() in lib.ts are the allow-list gate. A request path is home-expanded and made absolute. On a POSIX host, a Windows drive path (C:\...) is refused rather than turned into a literal filename. A relative path is resolved against the allowed directories. The absolute path is checked with isPathWithinAllowedDirectories() in path-validation.ts (prefix match on a normalized absolute path, with an explicit separator boundary so a sibling such as /allowed-evil does not match /allowed). If the requested spelling does not match, the code may respell a Unicode-equivalent or case-equivalent prefix of an allowed directory (respellAllowedDirectoryPrefix, respellAllowedDirectoryCase, resolveUnicodeEquivalentPath), which is how an NFC request can reach an NFD name on macOS, and how a case-insensitive volume can be addressed with a different case. The changelog entry for that Unicode behaviour is older than 2.4.1; it is still in this tree. The exact spelling still wins when it exists, and a name matching two entries is refused as ambiguous.
After the string check, the path is realpath'd. A symlink whose resolved target is outside the allow-list is refused with "Access denied - symlink target outside allowed directories." For a path that does not exist yet, the parent is resolved instead; a missing parent fails with "Parent directory does not exist."
That check alone is not enough. Earlier releases validated a path and then opened it again by name, which is a TOCTOU window: a local process that can rename a directory inside the allow-list can swap it for a symlink between the check and the use. GHSA-p9cv-8g75-4xcg (moderate; patched in 2.3.0) is that race on read_text_file. GHSA-7m4x-rv66-mxhh (moderate; also 2.3.0) is the same class of swap against move_file's same-device rename, which could move an outside file into the allow-list. GHSA-rq2p-q7c4-6g27 (low; patched in 2.4.0) is the listing side: list_directory, list_directory_with_sizes, directory_tree, and search_files could return entry names from outside the allow-list. Those advisories also list the last date-versioned releases, 2025.1.14 through 2026.8.31, as affected. None of the three pages we opened assigned a CVE.
The current mitigation lives in pinned-directory.ts. On macOS and Linux the process chdirs into the validated directory, reads getcwd() to confirm it entered that directory's inode, and then acts on the final component relative to it (opens use O_NOFOLLOW where available). A listing enters the directory and reads ".". The README and the module header are explicit about a consequence: a directory the server can read but not enter (read permission without execute) is refused with EACCES, because falling back to readdir by path would reopen the swap.
On Windows that anchor does not hold. The module header says the working directory is a string, so reading it back proves nothing. The leaf is then lstat'd and compared to the opened descriptor, "which narrows the race without closing it." The README's "Limit on Windows: a parent directory swapped during an operation" is the operator-facing statement: a second local process that can already write inside an allowed directory can replace a parent with a junction or directory symlink between the check and the open, and so redirect a read, a write, or a listing outside the allow-list. No tool of this server creates a junction or a symlink, so the swap cannot be set up through the server alone. The documented guidance is not to allow, on Windows, a directory that untrusted local processes or users can write to. The documented reason it is not fully fixed is that closing the window needs opens relative to a directory handle, which Node does not expose; issue #5260 is cited as out of scope for a reference server.
2.4.1 tightens only the listing side of that Windows gap. readDirectoryInPlace() now calls listedDirectoryIdentity() before and after the read on Windows. The path must still name a directory with no junction or symlink on it (lstat says directory, and realpath is the path itself) and must name the same directory by dev/ino both times, or the call is refused with "Access denied - a directory on the path changed during the operation." list_directory, list_directory_with_sizes, directory_tree, and search_files all go through that listing path. The changelog, the v2.6.0 notes, and the README all state the residual: a swap made and undone while the directory is being read is still not detected, and can return the entry names of the directory the junction pointed to. macOS and Linux listing behaviour is unchanged in 2.4.1. The new tests are in __tests__/list-anchored-windows.test.ts. We did not run them, and we did not exercise the race on a Windows host.
Other Windows-only refusals in path-validation.ts are older than this release and remain in force: NTFS alternate data streams (file.txt:stream) are refused, because a colon is accepted only as a drive letter; reserved device names (CON, NUL.txt, and the rest) are refused; components ending in a dot or a space are refused, because Win32 would strip them and open a different file. On POSIX those spellings are ordinary names and are not refused.
Hard links are a documented, path-based limit rather than a bypass of the allow-list. write_file and edit_file overwrite in place, so they keep the inode. If a file inside an allowed directory is also hard-linked from outside it (the README gives pnpm's store as the example), a write changes every name. get_file_info reports hardLinks; more than 1 means the file has other names.
Streamable HTTP
--transport streamable-http is served by http.ts. The defaults are DEFAULT_HOST = "127.0.0.1" and DEFAULT_PORT = 3001, overridable with HOST and PORT. The only path is /mcp; any other path is 404. Each request gets a fresh server. A 2025-era client gets no session (GET and DELETE on /mcp are documented as 405), so the server cannot ask it for Roots. That is why directories must be on the command line.
There is no bearer token, no API key, and no other application authentication in this source. The first-party listener calls localhostOriginValidation() from @modelcontextprotocol/node and returns if that helper rejects the request. The README says a request from a browser page on any origin but localhost is refused with 403, and that the endpoint sends no CORS headers, "so it serves clients that are not browser pages." __tests__/http.test.ts includes answers 404 off the MCP path and 403 to a foreign Origin, which posts with Origin: https://evil.example and expects 403. We did not run that test, and we did not open the helper's implementation inside the @modelcontextprotocol/node dependency.
The README states the network consequence directly: "HOST=0.0.0.0 exposes it to every machine that can reach this one, so set it deliberately." Anyone who can open a TCP connection to the bound address can speak MCP to the server as a non-browser client, with the same file rights the process was started with. Binding loopback is a default, not an access-control layer, and it does not help if a local process you do not trust can reach 127.0.0.1:3001.
Official install examples
This is the operator-facing gap, and it is in the pinned README and in first-party docs, not in a third-party blog.
The README's Streamable HTTP example is:
npx -y @modelcontextprotocol/server-filesystem --transport streamable-http /Users/username/Desktop
The README's Claude Desktop npx example (and the Windows cmd /c variant) passes /Users/username/Desktop and /path/to/other/allowed/dir, with no --read-only, no --read-only-dir, no --confine-roots, and no version pin:
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/Users/username/Desktop",
"/path/to/other/allowed/dir"
]
}
}
}
The README's Docker example bind-mounts /Users/username/Desktop into /projects/Desktop (writable), a second tree with the ro flag, and a single file, then starts mcp/filesystem with the argument /projects. The OS-level ro flag applies only to the mount it is set on. The server's allow-list is the parent, /projects, and the Desktop mount is writable. The image name is unpinned. The VS Code Docker and npx examples are narrower: they pass ${workspaceFolder}. That is a better default, and it is still writable, still unpinned, and still without --read-only or --confine-roots.
The first-party tutorial Connect to local MCP servers, as fetched at research time, tells operators to replace their Claude Desktop config with a block that allows Desktop and Downloads, again with npx -y and no flags. Its example prompts are "write a poem and save it to my desktop," "What work-related files are in my downloads folder?," and "organize all images on my desktop into a new folder." There is a warning to grant only directories "you're comfortable with Claude reading and modifying," and a claim that "All actions require your explicit approval before execution." Approval, when it exists, is a client setting. This server will perform a tool call it is sent. It does not implement a confirmation gate of its own.
The MCP Registry entry shipped in 2.4.1 (server.json) describes each positional argument as "A directory the server may read and write." It does not advertise --read-only or --confine-roots.
The root repository README uses a safer placeholder, /path/to/allowed/files, but the package README and the official tutorial are the pages an operator following "the filesystem server" will copy.
What an agent can reach once a directory is allowed
The server does not have to "steal" secrets. read_text_file, read_multiple_files, and resources/read return file contents, and directory_tree / search_files help an agent find names. If an allowed tree contains a .env, a cloud credential file, a browser cookie database, an SSH private key, or a shell history, those bytes are in scope for any connected client that can call the tools. That is the design of an allow-list, not a hidden exfil hook.
Official examples that start at Desktop, and the first-party tutorial that also adds Downloads, therefore put whatever has been saved there in scope: downloaded attachments, exported keys, project checkouts, screenshots, installers, and ad-hoc copies of .env or documents. They do not, by themselves, allow ~/.ssh or ~/.aws, unless those paths sit inside Desktop or Downloads, or unless a 2025-era client without --confine-roots later replaces the allow-list with a broader Root such as the home directory. Passing $HOME or / on the command line would put those trees in scope immediately. The official examples we quote do not pass / or the home directory; they pass Desktop (and, in the tutorial, Downloads), which is already a broad, mixed-content tree on many machines.
--read-only does not shrink the read surface. It only withholds the write tools. A read-only server pointed at a secret-bearing tree can still read the secrets.
Command execution, network egress, and supply chain
In the first-party TypeScript we opened under src/filesystem/, there is no child_process spawn, no outbound fetch, and no hook that uploads file contents to a remote host. http.ts uses Node's http module only to serve the optional MCP endpoint. Tests use execFileSync and fetch against a locally started listener; those files are not in the published tarball and were not executed here.
Runtime dependencies, from both the git package.json and the tarball, are @modelcontextprotocol/node ^2.1.1, @modelcontextprotocol/server ^2.3.1, diff ^8.0.3, minimatch ^11.0.4, and zod ^4.2.0. We did not deep-audit those packages. An earlier filesystem changelog entry records a minimatch bump for GHSA-g3hv-75wg-m249. The tarball package.json has a prepare script (npm run build) and no install, preinstall, or postinstall hook. prepare runs on publish and when a package is installed from git, not on a normal install of the registry tarball, which already contains dist/. We did not run npm install or that script.
The tarball is 14 files: package.json, README.md, and twelve compiled .js files under dist/. There is no LICENSE in the packed tree, despite license: "SEE LICENSE IN LICENSE". The repository LICENSE is a dual text: a relicensing preamble, the Apache 2.0 license, and an MIT license section. The filesystem README's "licensed under the MIT License" sentence does not mention the transition.
The official package is the scoped name @modelcontextprotocol/server-filesystem. The unscoped name mcp-server-filesystem is a different package, published by Snaggle AI, latest 0.6.2 on 13 December 2024, with a README that begins like this server's. We did not download or install it. Do not confuse the two names.
v2.6.0's release notes include an upgrade trap that is easy to miss. The TypeScript servers moved from date versions (2025.x, 2026.x) to semantic versions in 1.0.0. Package managers rank 2.4.1 below every 2026.x version, so they will not offer 2.4.1 as an upgrade from 2026.8.31 or another date release. The notes tell operators on a date version to install @modelcontextprotocol/server-filesystem@2.4.1 explicitly. Official npx -y @modelcontextprotocol/server-filesystem examples do not pin a version at all; they take whatever latest is that day, which at research time is 2.4.1, but they also would not migrate an already-installed date version.
Tag and signature limits are as in "What we pinned": SLSA provenance and npm signatures are present and the tarball digest matches; the git tag is lightweight and only GitHub's merge signature was verified.
Docker defaults
src/filesystem/Dockerfile is a two-stage build from node:24-alpine. Both npm ci steps use --ignore-scripts. The release stage sets USER 1000:1000 (the image's unprivileged node user), NODE_ENV=production, and ENTRYPOINT ["node", "dist/index.js"]. There is no EXPOSE, because the default transport is stdio. Allowed directories are the container's remaining arguments; the README uses /projects and tells operators to bind-mount host trees there. The comments tell a Linux host whose uid is not 1000 to pass --user <uid>:<gid> so the process can write, and so files it creates are not owned by uid 1000. We did not build or run the image, and we did not pull mcp/filesystem from a registry, so we cannot say which commit a published tag on a registry points at.
Who should use it, and who should not
This server is a reasonable fit when the operator picks a narrow directory, understands that the process runs with the same OS rights as the user who started it, and turns on the flags that match the job: --read-only when the agent should not change anything, --read-only-dir when only some trees must stay untouched, --confine-roots whenever a 2025-era client might advertise Roots, and a version pin. The VS Code ${workspaceFolder} pattern is closer to that than Desktop-plus-Downloads.
It is a poor fit as a general "give the model my machine" connector, as a network file service, or as a sandbox you expect to contain a hostile local process. Do not point it at $HOME or /. Do not treat Desktop or Downloads as a low-sensitivity default. Do not set HOST=0.0.0.0 unless you have put a real authentication and network boundary in front of /mcp; this package does not provide one. On Windows, do not allow a directory that untrusted local accounts can write to, and do not read the 2.4.1 listing check as a closed race. If you need a guarantee that a compromised or unexpected client cannot reach a secret that merely lives on the same disk, you need an isolation layer above this server (a container or OS sandbox in which the allowed tree is the only filesystem that exists). The official Local Server Security page says the same thing about configuration-level allow-lists: they are guardrails for an honest server, not a substitute for isolation.
How a careful operator would pin and restrict it
We did not run these steps. They follow from the official docs and from the pinned source.
Install a pinned version, not a floating latest and not a date-versioned release that will never sort "up" to 2.4.1: @modelcontextprotocol/server-filesystem@2.4.1. Use the scoped name. Do not install mcp-server-filesystem.
Pass only the directory the job needs, preferably a dedicated project tree, not Desktop, Downloads, or the home directory. Add --read-only unless the agent must write. If only some trees must stay untouched, use --read-only-dir and OS-level permissions or a ro bind mount. Add --confine-roots if a 2025-era client may send Roots. Prefer a 2026-07-28 client, for which Roots cannot change the allow-list at all.
If you use Docker, build or pin an image yourself from this commit; do not assume a floating mcp/filesystem tag is v2.6.0. Mount only the intended host path, keep it ro when you can, and pass --read-only in the container arguments as well if the agent should not write. Run as a non-root user, which this Dockerfile already does.
Leave Streamable HTTP off unless you need it. If you use it, leave HOST at 127.0.0.1, understand that anything on the same host can connect with no token, and do not expose /mcp on a network. Keep the MCP client's manual tool-call approval enabled; it is not enforced by this server.
Do not assume 2.4.1 closed the Windows parent-swap window. Do not assume --read-only hides secrets. Do not assume a client's approval prompt, or a Roots advertisement, is a security boundary the server invented.
Close
This was a static review of modelcontextprotocol/servers at b502fd9fc711de7285977396db3b8a732d1c9f64 (tag v2.6.0) and of the official npm package @modelcontextprotocol/server-filesystem@2.4.1. No malware was found in that scope. The package has real allow-list, read-only, and Roots-confinement controls, and 2.4.1 narrows a Windows listing race without closing it. Official install examples still grant writable Desktop — and, in first-party docs, Downloads — without --read-only or --confine-roots, while Streamable HTTP serves /mcp with no authentication. We did not run the server. This is not a clean bill of health.
More skill reviews
- Claude Security 0.13.1 can run pull request code — pin the GitHub Action the official sample leaves on mainAnthropic’s official Claude Security plugin, pinned here at v0.13.1, can review GitHub pull requests as a GitHub Action. Official docs warn that pull request text can steer the scan and that the scan can run the pull request’s code. The Action’s own limits tell you to pin a full commit SHA because it runs with sudo, but the official sample workflow still floats main, and the docs page still advertises the 0.13.0 merge commit. A green required check is not a hard security gate.
- Jupyter MCP Server 2.2.6 has CVE-2026-137189's Host-header bypass patched, but official uvx and Docker examples still use @latest, the image still binds 0.0.0.0, and execute_code can run kernel code with no server-side confirmationA static review, on 1 December 2026, of datalayer/jupyter-mcp-server at 526e80eda814fd8d98ae45ddbfccc765fa7490c6 (git tag v2.2.6) and PyPI jupyter-mcp-server 2.2.6, which remains the latest release: CVE-2026-137189's Host-header bypass of the earlier localhost management-route check is patched in this pin (the fix shipped in 2.1.3 on 1 September 2026; the CVE record was published 30 November 2026). Official uvx and Docker quick-start examples still use @latest / :latest. The pip CLI now binds Streamable HTTP to 127.0.0.1, but the official Docker image still sets HOST=0.0.0.0. execute_code and execute_cell can run kernel code; we found no server-side confirmation gate. We did not run the server. This is not a clean bill of health.
- Official Grafana MCP Server 2.4.0 leaves --disable-write off, so a GRAFANA_SERVICE_ACCOUNT_TOKEN unlocks write tools such as update_dashboard, create_folder, install_plugin, and grafana_api_request; the official Docker entrypoint binds --transport sse --address 0.0.0.0:8000 with --server-auth-token empty; CVE-2026-15583's token exfil is fixed, but official uvx examples remain unpinned while PyPI still serves 2.2.0Static review of grafana/mcp-grafana v2.4.0 (commit 7f717bceff42080b3eeb026506672e8ba4fbdce7). The default --enabled-tools list includes the api and plugin categories and --disable-write defaults to false, so write tools such as grafana_api_request and install_plugin are registered unless you turn them off. The official Docker image listens on 0.0.0.0:8000 over SSE with no caller token unless you override the entrypoint. CVE-2026-15583's environment-token exfil is not present in this pin; official uvx examples are unpinned, and PyPI's mcp-grafana was still 2.2.0 when we checked.