Filesystem MCP server for Claude

Let Claude read and search a specific local folder with the Filesystem MCP reference server. Choose which folders it can access and whether it can edit them.

Published by Model Context Protocol project

How to set up the Filesystem MCP server in Claude

  1. 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.
  2. 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.
Claude Desktop · macOS and Linux configuration
{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "/path/to/your/test-folder"
      ]
    }
  }
}
Download configuration
Claude Desktop · Windows configuration
{
  "mcpServers": {
    "filesystem": {
      "command": "cmd",
      "args": [
        "/c",
        "npx",
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "C:\\path\\to\\your\\test-folder"
      ]
    }
  }
}
Download configuration

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.

Filesystem MCP tool reference

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.

Browse MCP servers