Back to MCPs
Official Featured

Filesystem

Secure file operations with configurable access controls. Allows Claude to read, write, and manage files within specified directories with safety guardrails.

filesystemfilesofficial
1,987 upvotes 72,300 views by Anthropic
Installation
npx -y @modelcontextprotocol/server-filesystem /path/to/allowed/directory
Note: Replace placeholder values (e.g., connection strings, paths) with your own configuration.

How to add to Claude Code

  1. Open Claude Code settings

    Run claude config or edit ~/.claude/config.json

  2. Add the MCP server configuration
    {
      "mcpServers": {
        "filesystem": {
          "command": "npx",
          "args": [
                  "-y",
                  "@modelcontextprotocol/server-filesystem",
                  "/path/to/allowed/directory"
          ]
        }
      }
    }

    Update the placeholder values above with your actual configuration.

  3. Restart Claude Code

    The MCP server will now be available in your sessions