fsshim
A drop-in replacement for the blocked Filesystem MCP server that provides standard file operations with symlink hardening, enabling tools like read, write, and directory listing.
README
fsshim — drop-in replacement for the blocked Filesystem MCP server
Workaround for anthropics/claude-ai-mcp#664:
after a Claude Desktop update, every tool call to the bundled Filesystem MCP server fails with
Tool execution failed. The server is healthy and completes initialize + tools/list, but
tools/call never reaches it.
⚠️ Try this first — you probably don't need this repo
Reported working on Windows 11 and macOS, and it is far simpler than anything here:
Settings → Extensions → Advanced settings → turn OFF "Use Built-in Node.js for MCP"
With Desktop's bundled Node disabled, it falls back to your system Node and the stock bundled filesystem server works again — unmodified, no config surgery, no third-party code to maintain.
Requires Node installed on your system (any recent version; v20/v22/v24 all reported fine). If you have that, do this instead of using this repo and stop reading.
This repo is for the case where you don't have system Node, can't install it, or want the symlink-hardening notes below.
Install
mkdir C:\mcp\fsshim # or wherever
cd C:\mcp\fsshim
# drop server.js + package.json here
npm install
Node 18+ (tested on 22 and 24).
Config
In claude_desktop_config.json, replace what the existing filesystem entry runs — keep the
connector name filesystem:
"filesystem": {
"command": "node",
"args": [
"C:\\mcp\\fsshim\\server.js",
"C:\\your\\first\\allowed\\root",
"C:\\your\\second\\allowed\\root"
]
}
Every path after server.js is an allowed root. Same semantics as the bundled server.
Then fully quit Claude Desktop (Task Manager / force quit — not just closing the window) and relaunch.
Smoke-test before trusting it
node C:\mcp\fsshim\server.js "C:\your\allowed\root"
It should print nothing and hang, waiting on stdin. That silence is the pass condition — an MCP stdio server blocks until a client speaks to it. Anything printed to stdout corrupts the JSON-RPC stream. Ctrl-C to exit.
WSL note
If your node lives inside WSL under a version manager (fnm/nvm), wsl -e node will not find it —
-e doesn't source your shell profile. Either run the shim with Windows-side node (simplest, use
\\wsl.localhost\... paths for WSL roots), or launch it through a login shell:
"command": "wsl",
"args": ["bash", "-lc", "exec node /home/you/fsshim/server.js /mnt/c/your/root"]
Tools
Deliberately the same names as the bundled server, so nothing downstream has to change:
list_allowed_directories · list_directory · read_file · read_multiple_files ·
write_file · create_directory · move_file · get_file_info · directory_tree · search_files
Some workarounds circulating for #664 rename the tools (fs_ls, fs_read, …) on the theory that the
tool names are what gets blocked. Tested A/B against the live broken client — same server code, two
builds, only the names differing — both work. list_directory dispatches fine as soon as
something other than the bundled server is serving it, so renaming buys nothing and costs you every
prompt and script that already knows the original names.
Given the built-in-Node finding above, the likeliest reading is that the bundled Node runtime is the broken part and any externally-spawned process sidesteps it — which also explains why renaming appeared to work. Either way: don't rename.
Two things worth knowing if you build your own
1. Pin zod. The MCP SDK pulls it in transitively today. If that ever changes, require('zod')
dies with no obvious cause. It's declared explicitly in package.json here.
2. A prefix check is not containment. The obvious guard —
path.resolve(p).startsWith(root) // NOT enough
— doesn't follow symlinks. A symlink planted inside an allowed root pointing outside it passes this check and the OS then happily follows it. Reproduced live before fixing:
list_directory(<root>/escape_link) -> [FILE] secret.txt # outside the root. leak.
The fix is to resolve the real physical path first (fs.realpath, walking up to the nearest existing
ancestor for paths that don't exist yet), then containment-check. After the fix, the same attack:
list_directory(<root>/escape_link) -> Error: Path outside allowed roots
read_file(<root>/escape_link/secret.txt) -> Error: Path outside allowed roots
write_file(<root>/escape_link/pwned.txt) -> Error: Path outside allowed roots (nothing written)
directory_tree and search_files also refuse to descend symlinks, so an in-root symlink can't leak
outside filenames either. Blocked attempts are appended to fsshim-audit.log next to the server.
This one is worth flagging regardless of #664: it applies to any MCP server that hands out filesystem access from a fixed set of roots.
Status
Not affiliated with Anthropic. A workaround for a client-side regression, not a fix — the underlying bug is theirs. Delete this and go back to the bundled server once it's patched.
Credit for the built-in-Node toggle goes to whoever surfaced it on Reddit / in the issue thread; it's the better first move and is documented above accordingly.
Implementation and the symlink/containment notes: @mujo8, with Claude (Sonnet 4.5).
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。