Model Context Protocol project (MCP steering group) · Vendor

Filesystem MCP Server (MCP reference server)

Read, search, write, edit, move and copy files inside explicitly allowed local directories, with an optional server-enforced read-only mode; MCP's reference implementation, over stdio, local Streamable HTTP or Docker.

Is it a fit?

Suitable for

  • Giving an agent file access limited to named directories passed on the command line.
  • Read-only browsing and search of a folder (--read-only withholds every write tool), or mixed read-only and writable folders (--read-only-dir).
  • Clients on either protocol era (2026-07-28 and 2025-era) over stdio or HTTP.

Choose another option when

  • Production use without the user's own threat review; the repo calls its servers educational reference implementations, not production-ready.
  • Running shell commands or processes; it only touches files.
  • Windows folders that untrusted local processes can write to (parent-directory swap race is not protected on Windows; directory listings not anchored on Windows yet).

Your client host

Read and write. No account or key. Allowed directories are passed as arguments (recommended, the only method on every protocol era). A 2025-era client with Roots can replace them at runtime unless --confine-roots is set; Roots are deprecated in 2026-07-28 and ignored there. Started with no directories, a 2025-era client without Roots makes it exit; a 2026-07-28 client gets an error on every tool call.

Software: Free; hosting: Not applicable; external API: Not applicable.

Your client host

Read only · no declared code execution. Started with --read-only plus allowed directories. The server registers only tools annotated readOnlyHint true; write tools are not listed and calls to them fail as unknown tools, whatever the client allows. Applies on both protocol eras and to Roots-supplied directories.

Software: Free; hosting: Not applicable; external API: Not applicable.

No setup recipe published

This is a reference entry. The catalog has no published setup recipe for this server and does not generate one.

Use the publisher’s own instructions in the sources on this page. A listing here is not a compatibility test.

Check client compatibility · Troubleshoot a setup

What the record establishes

Publisher identity
Source matched; this is not a general safety certification.
Editorial record
Human review recorded ·
Last content review
Next review due
License
Apache-2.0 AND MIT
Network observation
No network check is inferred from this directory record. A client test, a recipe test, and your own task result are separate evidence.

Runtime variants, permissions, and costs

Your client host · Local process · stdio · npm @modelcontextprotocol/server-filesystem 2.4.0

Reference only
Version
2.4.0
Authentication
None
Account and credentials
No account or key. Allowed directories are passed as arguments (recommended, the only method on every protocol era). A 2025-era client with Roots can replace them at runtime unless --confine-roots is set; Roots are deprecated in 2026-07-28 and ignored there. Started with no directories, a 2025-era client without Roots makes it exit; a 2026-07-28 client gets an error on every tool call.
Runtime
Node.js >=24
Data contact
Local files
Access and execution
Read and write
Permissions
Tools: read_text_file, read_media_file, read_multiple_files, list_directory(_with_sizes), directory_tree, search_files, get_file_info, list_allowed_directories (read) and write_file, append_file, edit_file, create_directory, move_file, copy_file (write; write_file/edit_file/move_file annotated destructive). Files are also readable as file:// resources. Every path is resolved and checked against the allowed directories; symlinks pointing outside are refused. On macOS/Linux each operation is anchored to the checked directory; on Windows a parent-directory swap race is documented as unprotected and directory listings are not yet anchored (#5600). Walks cap at 100,000 entries; filesystem calls time out after 15 s. Source declared
External destinations
None recorded

Three layers of cost

Software
Free

Open-source npm package (Apache-2.0 / MIT, see license note).

Checked
Review due

raw.githubusercontent.com · raw.githubusercontent.com
Hosting
Not applicable

Runs on the client host.

Checked
Review due

raw.githubusercontent.com
External API
Not applicable

No external service; every tool sets openWorldHint false.

Checked
Review due

raw.githubusercontent.com
Variant sources and lifecycle

Source lifecycle: active · observed . This is not a live connection check.

Your client host · Local process · stdio · npm @modelcontextprotocol/server-filesystem 2.4.0

Reference only
Version
2.4.0
Authentication
None
Account and credentials
Started with --read-only plus allowed directories. The server registers only tools annotated readOnlyHint true; write tools are not listed and calls to them fail as unknown tools, whatever the client allows. Applies on both protocol eras and to Roots-supplied directories.
Runtime
Node.js >=24
Data contact
Local files
Access and execution
Read only · no declared code execution
Permissions
Read, list, search and metadata tools only, inside the allowed directories. File contents still flow to the client/model. Source declared
External destinations
None recorded

Three layers of cost

Software
Free

Same package as npm-stdio.

Checked
Review due

raw.githubusercontent.com · raw.githubusercontent.com
Hosting
Not applicable

Runs on the client host.

Checked
Review due

raw.githubusercontent.com
External API
Not applicable

No external service.

Checked
Review due

raw.githubusercontent.com
Variant sources and lifecycle

Source lifecycle: active · observed . This is not a live connection check.

Your client host · Streamable HTTP · npm @modelcontextprotocol/server-filesystem 2.4.0

Reference only
Version
2.4.0
Authentication
None
Account and credentials
`--transport streamable-http` plus allowed directories (required over HTTP; Roots cannot be used). Listens on 127.0.0.1:3001 unless HOST/PORT are set; HOST=0.0.0.0 exposes it to every machine that can reach the host. Browser-page requests from non-localhost origins get 403 and no CORS headers are sent. No client authentication documented. Each request gets a fresh server; 2025-era clients get no session (GET/DELETE on /mcp answer 405). --read-only and --read-only-dir work as over stdio.
Runtime
Node.js >=24
Data contact
Local files
Access and execution
Read and write
Permissions
Same tools and path checks as npm-stdio, plus an unauthenticated local listening port; any local process that can reach it can read/write the allowed directories. Source declared
External destinations
None recorded

Three layers of cost

Software
Free

Same package as npm-stdio.

Checked
Review due

raw.githubusercontent.com
Hosting
Not applicable

Runs on the client host.

Checked
Review due

raw.githubusercontent.com
External API
Not applicable

No external service.

Checked
Review due

raw.githubusercontent.com
Variant sources and lifecycle

Source lifecycle: active · observed . This is not a live connection check.

Your client host · Local process · stdio · oci mcp/filesystem

Reference only
Version
Not recorded
Authentication
None
Account and credentials
Host folders bind-mounted under /projects (add `ro` to a mount for OS-level read-only); /projects passed as the allowed directory. Image runs as unprivileged `node` user UID 1000; on Linux add --user <uid>:<gid> to match host ownership.
Runtime
Docker (version not recorded)
Data contact
Local files
Access and execution
Read and write
Permissions
Same tools as npm-stdio, limited to the bind-mounted folders; `ro` mounts add OS-level read-only protection. Source declared
External destinations
None recorded

Three layers of cost

Software
Free

Same open-source code (image contents not inspected).

Checked
Review due

raw.githubusercontent.com · raw.githubusercontent.com
Hosting
Not applicable

Runs on the client host.

Checked
Review due

raw.githubusercontent.com
External API
Not applicable

No external service.

Checked
Review due

raw.githubusercontent.com
Variant sources and lifecycle

Source lifecycle: Unknown · observed Not recorded. This is not a live connection check.

Exact published recipes

Reference entry

No supported recipe is published for this server. The sources below and client compatibility guide remain available.

Decision notes

Server-enforced read-only mode removes every write tool from the tool list, independent of client settings.

Conditions: Started with --read-only; --read-only-dir protects individual folders instead.

Checked

Serves both 2026-07-28 and 2025-era clients over stdio and local Streamable HTTP.

Conditions: Allowed directories must be given on the command line for HTTP and for 2026-07-28 clients.

Checked

MCP reference implementation; the maintainers describe it as educational and not production-ready.

Conditions: Per the servers repo README when checked.

Checked

Sources and corrections

Report a factual correction · How evidence is labeled

Browse more servers