How to set up the Filesystem MCP server in Claude
- Use Node.js 24 or later for the current publisher’s npx setup. Replace the example with an absolute path to a small folder that contains test files.
- Merge the entry inside mcpServers in Claude Desktop and restart the app. Check the README for read-only mode before sharing a folder you want to protect.
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/path/to/your/test-folder"
]
}
}
}{
"mcpServers": {
"filesystem": {
"command": "cmd",
"args": [
"/c",
"npx",
"-y",
"@modelcontextprotocol/server-filesystem",
"C:\\path\\to\\your\\test-folder"
]
}
}
}Work with local project files
Use Filesystem MCP when a local Claude client needs to find a file, inspect a folder tree, or read several documents together. The server also supports writing, editing, and moving files when write access is enabled. It is useful for tasks such as summarizing a folder of workshop notes or mapping the documentation in a project.
Grant access to one folder
In your local MCP client, configure an absolute path for each directory the server may use. A dedicated folder of sample documents makes a better starting point than a home directory. The current reference server documents a global read-only mode and per-directory read-only settings. Check the README for the flags supported by the version you install.
Check the path before reading
Put a test file named meeting-notes.txt in the allowed folder. Ask Claude to list that folder and summarize only the test file. If you see an access-denied message, inspect the server’s allowed-directory list and confirm the configured path exists. For a container setup, check that the host folder is mounted at the path passed to the server.