Filesystem MCP
Reference server for secure read/write access to folders you choose.
Install
# Claude Code claude mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem /path/to/allowed/dir # Cursor / VS Code / Windsurf (mcp.json) "filesystem": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/allowed/dir"] }
Commands change between releases — if something fails, check the official README.
About Filesystem MCP
Gives the agent controlled file operations — read, write, search, move — limited to the directories you list. Mostly useful in clients that do not already have file access, such as the Claude desktop app.
FAQ
What is Filesystem MCP?
Reference server for secure read/write access to folders you choose.
How do I install Filesystem MCP?
Run: claude mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem /path/to/allowed/dir. Full steps are in the Install section on this page.
Which agents does Filesystem MCP work with?
Claude Code, Claude apps, Cursor, VS Code & Copilot, OpenAI Codex, Gemini CLI, Windsurf.
Is Filesystem MCP free?
Yes. It is open source (See repo).
Alternatives to Filesystem MCP?
GitHub MCP Server, Superpowers, daymade Claude Code Skills, Desktop Commander, Git MCP.