Back to MCP Servers

Filesystem Server

Access and manage files on your local filesystem with read, write, and directory operations

filesystemfilesofficial

Installation

npm install -g @anthropic-ai/mcp-server-filesystem

Configuration

{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@anthropic-ai/mcp-server-filesystem",
        "/path/to/allowed/directory"
      ]
    }
  }
}

How to use

  1. Run the installation command above (if needed)
  2. Open your Claude Code settings file (~/.claude/settings.json)
  3. Add the configuration to the mcpServers section
  4. Restart Claude Code to apply changes
View source on GitHub