Filesystem (reference)
Lets the agent read, write, search and move files, limited to the folders you list in the config.
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-20Server 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.7Captured 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)?
Real test
PassedOne 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_fileTool 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/dirRun 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
| Date | Check | Result | Versions tested |
|---|---|---|---|
| 2026-10-20 | ChatGPT (Codex) | Passed install, connect, tools, agent task | Codex CLI 0.162.0-alpha.17.2 · @modelcontextprotocol/server-filesystem 2.0.0 |
| 2026-10-19 | Protocol (direct stdio) | Protocol: 14 tools + tool call OK | server reported v2.0.0 |
| 2026-10-19 | Claude Code | Passed install, connect, tools, agent task | Claude Code 2.1.296 · @modelcontextprotocol/server-filesystem 2.0.0 (pinned in the command we ran) |
| 2026-10-19 | Cursor | Passed 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-14 | Claude Desktop | Passed install, connect, tools, agent task | Claude Desktop 2.37337.1 (Linux beta) · package version not recorded |
| 2026-10-14 | ChatGPT (Codex) | Passed install, connect, tools, agent task | Codex CLI 0.162.0-alpha.17.2 · package version not recorded |
| 2026-10-13 | Protocol (direct stdio) | Protocol: 14 tools + tool call OK | 1.0.0 |
| 2026-10-13 | Cursor | Passed install, connect, tools, agent task | Cursor CLI 2026.10.12-d47ca18 · package version not recorded |
| 2026-10-13 | Claude Code | Passed install, connect, tools, agent task | Claude Code 2.1.296 · package version not recorded |
Tested on ToolPassed badge
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.
[](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