SkillMaxx / Utilities / MCP filesystem (reference)

MCP filesystem (reference) logo

MCP filesystem (reference)

Last tested 2026-12-05

Secure file operations with configurable access controls

MCP serverUtilitiesSource ↗github.com ↗

Stars
★ 92k
Last updated
Hands-on tests
Tested ✓ in 3 of 5

Does MCP filesystem (reference) work in Claude Code, Codex, Grok Build, Cursor and Pi?

As of Dec 5, 2026: yes in Claude Code, Cursor and Pi; not reliably in Codex and Grok Build.

From our nightly clean-sandbox install test on 2026-12-05.

Install

Tested ✓✓ Verified from docsOfficial docs ↗
claude mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem

Tested ✓ on 2026-12-05: installed and loaded in a throwaway sandbox with no credentials.

Log excerpt
Added stdio MCP server mcpfilesystem with command: npx -y @modelcontextprotocol/server-filesystem to local config
File modified: /home/sbx/.claude.json [project: /home/sbx]
$ verify:
mcpfilesystem: npx -y @modelcontextprotocol/server-filesystem - ✔ Connected
10 runs, latest 2026-12-05

Filesystem MCP Server

Node.js server implementing Model Context Protocol (MCP) for filesystem operations.

Published on npm as @modelcontextprotocol/server-filesystem.

Features

  • Read/write files
  • Create/list/delete directories
  • Move files/directories
  • Search files
  • Get file metadata
  • Directory access control from command-line arguments, with Roots as a deprecated, 2025-era convenience
  • Serves both protocol eras on stdio: 2026-07-28 clients (server/discover, no handshake) and 2025-era clients (initialize)

Directory Access Control

The server may touch only its allowed directories. Pass them on the command line. A 2025-era client that supports Roots can also replace them at runtime, but Roots is deprecated as of protocol version 2026-07-28 and a 2026-07-28 connection cannot use it.

Method 1: Command-line Arguments (Recommended)

Specify Allowed directories when starting the server:

mcp-server-filesystem /path/to/dir1 /path/to/dir2

This is the only method that works on every protocol version, so it is the one to use.

Read-only Mode

Add --read-only to serve only the tools that cannot change the filesystem:

mcp-server-filesystem --read-only /path/to/dir1 /path/to/dir2

The server then registers only the tools annotated readOnlyHint: true in the Tool annotations table, the ones that read and list. Every tool not annotated readOnlyHint: true, that is every tool that writes (such as write_file and edit_file), is left out, so a client never lists it and a call to it fails as an unknown tool. A tool added later follows the same rule through its annotation. The server enforces this, whatever the client is configured to allow, and it works the same with npx as with Docker. It applies on both protocol eras, and to directories that come from a client's Roots.

The flag may appear anywhere among the arguments. -- ends the options, so a directory literally named --read-only can be given after it.

Read the full README on GitHub →

Preview from the source repo. Images are removed.

Similar alternatives

MCP time (reference)

MCP server · Utilities

Time and timezone conversion

★ 92kTested ✓ in 5

MCP fetch (reference)

MCP server · Utilities

Web content fetching and conversion for LLM use

★ 92kTested ✓ in 5

MCP memory (reference)

MCP server · Utilities

Knowledge-graph-based persistent memory

★ 92kTested ✓ in 5

MCP sequential-thinking (reference)

MCP server · Utilities

Dynamic, reflective problem-solving through thought sequences

★ 92kTested ✓ in 5

Get the weekly install scorecard

What broke, what's flaky, what's safe to install across Claude Code, Codex, Grok Build, Cursor and Pi. Free, every Tuesday.

↑↓ to move · Enter to open · Esc to close