F

Filesystem (reference)

Lets the agent read, write, search and move files, limited to the folders you list in the config.

📄 Files & office documentsGitHub stars for modelcontextprotocol/servers, shared by several tools92,022shared repoUpdated 2026-11-12Auth: noneGitHub ↗
Best for files & office documents · tested 2026-10-22

Wrote a fresh code to a file and read it back in every client we test (Claude Code, Cursor, Claude Desktop and ChatGPT (Codex)), and the second runs in Claude Code, Cursor and ChatGPT (Codex) passed again. In Claude Code it needed the test folder added to permissions.additionalDirectories. Draw.io also passed in all 4 clients (one run each) but only with its editor open in a browser. Excel was the earlier pick: it passed twice in Claude Code and Cursor, but its second ChatGPT (Codex) run failed on Oct 21, 2026, so by judging rule 1 it now ranks below both.

Test results

Last passed 2026-10-20
Claude CodePassed2026-10-19 · install, connect, tools, agent taskTested with Claude Code 2.1.296 · @modelcontextprotocol/server-filesystem 2.0.0 (pinned in the command we ran) · connect time not recorded
CursorPassed2026-10-19 · install, connect, tools, agent taskTested with Cursor CLI 2026.10.16-e3cb207 · @modelcontextprotocol/server-filesystem 2.0.0 (pinned in the command we ran) · connect time not recorded
Claude DesktopPassed2026-10-14 · install, connect, tools, agent taskTested with Claude Desktop 2.37337.1 (Linux beta) · package version not recorded · connected in 2.0s
ChatGPT (Codex)Passed2026-10-20 · install, connect, tools, agent taskTested with Codex CLI 0.162.0-alpha.17.2 · @modelcontextprotocol/server-filesystem 2.0.0 · connect time not recorded

Server package tested: @modelcontextprotocol/server-filesystem 2.0.0 (npm, Node v24.22.0; resolved 2026-10-20)

Direct and key dependencies as resolved: @modelcontextprotocol/server 2.3.1 · diff 8.0.4 · glob 13.0.6 · minimatch 10.2.6 · zod 4.6.7

All 11 resolved dependencies
@modelcontextprotocol/core==2.3.1
@modelcontextprotocol/server==2.3.1
balanced-match==4.0.4
brace-expansion==5.0.12
diff==8.0.4
glob==13.0.6
lru-cache==11.5.3
minimatch==10.2.6
minipass==7.1.3
path-scurry==2.0.2
zod==4.6.7

Captured with: npm ls --all --json in the npx env.

Full result per app: Does it work with Claude Code? · Does it work with Cursor? · Does it work with Claude Desktop? · Does it work with ChatGPT (Codex)?

Protocol: 14 tools + tool call OK · 2026-10-19 · connected in 0.8s
🧪 Test-box note: 2.0.0 needs Node 24+ (npm engines >=24). Box system Node is 20.19.2; since the Oct 19, 2026 retest the harness runs it with a user-local Node 24.22.0 (~/opt/node24) and pins 2.0.0 for the test (the harness folder still has 1.0.0 installed locally). Published snippet uses plain npx. On Node 20, 2.0.0 still started and answered a basic protocol check, with only an npm EBADENGINE warning (unsupported setup).
⚠️ Client note: Claude Code sends MCP roots (its project folder plus any additional directories), and the server replaces the command-line folder with those roots. Fix: add the folder to Claude Code too, via permissions.additionalDirectories in .claude/settings.json (or --add-dir / /add-dir). Verified on the box Oct 13: list_allowed_directories then returns the folder. Cursor uses the command-line folder as-is.
🔁 New major version 2.0.0 shipped Oct 19, 2026 (needs Node 24+). Retested on Oct 19, 2026 on 2.0.0 with Node 24.22.0: passed again in Claude Code and Cursor (wrote a file with a fresh code and read it back; file checked on disk). ChatGPT (Codex) retested on Oct 20, 2026 on 2.0.0: passed (wrote a file with a fresh code and read it back). The Claude Desktop result is still from 1.0.0 (Oct 14). On Node 20.19.2, 2.0.0 still started and answered a basic protocol check with only an npm "Unsupported engine" warning, but Node 20 is not a supported setup for 2.0.0.

Real test

Passed

One run from our records. When two runs share a date, we show a failure if there is one.

Client
ChatGPT (Codex) · Codex CLI 0.162.0-alpha.17.2
Date
Oct 20, 2026
The task we gave
Using only the ref-filesystem MCP tools: write a text file at /workspace/timmy/harness/sandbox/fsroot/out-codex.txt whose entire content is TP-DFB1E7. Then read it back with the same tools and reply with the exact text you read.
What it promised
details not recorded for this run
What happened

Tool calls:

ref-filesystem:write_fileref-filesystem:read_text_file

Tool result

{"content": [{"type": "text", "text": "Successfully wrote to /workspace/timmy/harness/sandbox/fsroot/out-codex.txt"}], "structured_content": {"content": "Successfully wrote to /workspace/timmy/harness/sandbox/fsroot/out-codex.txt"}}

Agent reply

TP-DFB1E7
Verdict
Passed

Install

claude mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem /path/to/allowed/dir

Run in your terminal. This exact command is what our harness runs in Claude Code; see the results above.

{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "/path/to/allowed/dir"
      ]
    }
  }
}

Save as .cursor/mcp.json. This exact config is what our harness runs in Cursor; see the results above.

{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "/path/to/allowed/dir"
      ]
    }
  }
}

Add to claude_desktop_config.json and restart Claude Desktop. Tested on the Linux beta; see the results above.

[mcp_servers.filesystem]
command = "npx"
args = ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/allowed/dir"]

Add to ~/.codex/config.toml (shared by the ChatGPT (Codex) CLI and the ChatGPT desktop app; Codex runs inside the ChatGPT desktop app). Tested with the ChatGPT (Codex) CLI bundled in the ChatGPT desktop app; see the results above.

Not connecting? Troubleshooting: Claude Code · Cursor · Claude Desktop · ChatGPT (Codex)

Test history

DateCheckResultVersions tested
2026-10-20ChatGPT (Codex)Passed
install, connect, tools, agent task
Codex CLI 0.162.0-alpha.17.2 · @modelcontextprotocol/server-filesystem 2.0.0
2026-10-19Protocol (direct stdio)Protocol: 14 tools + tool call OKserver reported v2.0.0
2026-10-19Claude CodePassed
install, connect, tools, agent task
Claude Code 2.1.296 · @modelcontextprotocol/server-filesystem 2.0.0 (pinned in the command we ran)
2026-10-19CursorPassed
install, connect, tools, agent task
Cursor CLI 2026.10.16-e3cb207 · @modelcontextprotocol/server-filesystem 2.0.0 (pinned in the command we ran)
2026-10-14Claude DesktopPassed
install, connect, tools, agent task
Claude Desktop 2.37337.1 (Linux beta) · package version not recorded
2026-10-14ChatGPT (Codex)Passed
install, connect, tools, agent task
Codex CLI 0.162.0-alpha.17.2 · package version not recorded
2026-10-13Protocol (direct stdio)Protocol: 14 tools + tool call OK1.0.0
2026-10-13CursorPassed
install, connect, tools, agent task
Cursor CLI 2026.10.12-d47ca18 · package version not recorded
2026-10-13Claude CodePassed
install, connect, tools, agent task
Claude Code 2.1.296 · package version not recorded

Tested on ToolPassed badge

ToolPassed: passed Claude Code, Cursor, Claude Desktop, ChatGPT (Codex)

Maker of Filesystem (reference)? It passed in Claude Code, Cursor, Claude Desktop, ChatGPT (Codex) on 2026-10-20. Add this free badge to your README; it links back to this listing. Free, no strings: the badge never changes a result.

[![Tested on ToolPassed](https://toolpassed.com/badge/mcp/ref-filesystem.svg)](https://toolpassed.com/mcp/ref-filesystem/)

Tools seen by our harness (14)

read_fileread_text_fileread_media_fileread_multiple_fileswrite_fileedit_filecreate_directorylist_directorylist_directory_with_sizesdirectory_treemove_filesearch_filesget_file_infolist_allowed_directories
Featured