Is @modelcontextprotocol/server-filesystem safe?
MCP server for filesystem access
This server can change things — files, a browser, a database, or paid online services. Limit what it can reach.
Why: writes or deletes files.
What it can do
- Writes or deletes files
- Reads files
Tools it offers your AI (14):
- read_file
- read_text_file
- read_media_file
- read_multiple_files
- write_file
- edit_file
- create_directory
- list_directory
- list_directory_with_sizes
- directory_tree
- move_file
- search_files
- get_file_info
- list_allowed_directories
How to use it safely
- ✓ Point it at one project folder, never your home directory or a whole drive.
- ✓ Only give it the folders it needs; files it reads can end up in the AI’s context.
- ✓ Pin the version (below) so an update can't change what it does without you noticing.
Code patterns worth reviewing
Automated pattern matches in the published package. Some are expected for this kind of server, and some may be false positives — they are pointers for review, not confirmed vulnerabilities.
External content fed into the prompt without isolation
The agent pulls in outside content (web pages, emails, retrieved documents) and adds it to its prompt, with no visible marking of that content as untrusted data.
dist/server.js:486
Install it pinned
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem@2.1.0"]
}
}
}Source · npm · License file in package · 1,313,293 downloads last week
Check your whole MCP setup
Agent Verify checks the servers in your Claude, Cursor and VS Code config — including whole-drive access and keys stored in plain text.
Maintain @modelcontextprotocol/server-filesystem?
Show users you've thought about access: add the badge below. If something here is wrong or you've released a fix, ask for a re-scan — we update pages on request.
[](https://aimodularity.com/agentverify/mcp/modelcontextprotocol-server-filesystem/)
Agent Verify reads the package published on npm as text — it is never installed or run. Ratings describe capability, not intent, and are an automated, evidence-based check, not a guarantee. Scanner 2.0.0.