Filesystem server can read your whole disk or home folder
High filesystem-broad
The filesystem server can read and write everything under the folders it is given. Giving it /, ~ or a whole drive exposes SSH keys, browser profiles, other projects and cloud credentials to every prompt.
Why it matters
The filesystem reference server can list, read and write every file under the folders passed as arguments. Give it your home folder and the model, and anything that can inject instructions into it (a web page, an issue, a README), can reach ~/.ssh, ~/.aws, browser profiles and every other project.
How to fix it
Give it only the project folders it needs, one argument per folder.
Pass only the folders the work needs, one per argument, and prefer a folder per project. Clients that support roots let the server ask for the workspace instead.
Before
"args": ["-y", "@modelcontextprotocol/server-filesystem", "~"]
After
"args": ["-y", "@modelcontextprotocol/server-filesystem@2025.8.21", "/Users/me/projects/shop"]
Applies to every MCP client that reads a JSON config: Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and others.
Other checks
Related free tools
Published ; awaiting review.