MCP Server Studio

Filesystem MCP MCP server

Filesystem MCP server for AI assistants.

Registry name: io.github.j0hanz/filesystem-mcp

Publisher
j0hanz
Runs
Runs locally
Package
npm, Docker
Version
2.23.0
Category
Developer tools
Updated
2026-11-17

Source code on GitHub

Set up Filesystem MCP (run locally)

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "filesystem-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@j0hanz/[email protected]"
      ],
      "env": {
        "FS_ALLOWED_DIRS": "<FS_ALLOWED_DIRS>",
        "FS_READ_ONLY_DIRS": "<FS_READ_ONLY_DIRS>"
      }
    }
  }
}

Claude Code

Run in your terminal:

claude mcp add filesystem-mcp -e FS_ALLOWED_DIRS='<FS_ALLOWED_DIRS>' -e FS_READ_ONLY_DIRS='<FS_READ_ONLY_DIRS>' -- npx -y @j0hanz/[email protected]

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "filesystem-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@j0hanz/[email protected]"
      ],
      "env": {
        "FS_ALLOWED_DIRS": "<FS_ALLOWED_DIRS>",
        "FS_READ_ONLY_DIRS": "<FS_READ_ONLY_DIRS>"
      }
    }
  }
}

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "filesystem-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@j0hanz/[email protected]"
      ],
      "env": {
        "FS_ALLOWED_DIRS": "<FS_ALLOWED_DIRS>",
        "FS_READ_ONLY_DIRS": "<FS_READ_ONLY_DIRS>"
      }
    }
  }
}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "filesystem-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@j0hanz/[email protected]"
      ],
      "env": {
        "FS_ALLOWED_DIRS": "<FS_ALLOWED_DIRS>",
        "FS_READ_ONLY_DIRS": "<FS_READ_ONLY_DIRS>"
      }
    }
  }
}

Settings

NameRequiredWhat it is
FS_ALLOWED_DIRSNoAllowed directories; ':'-separated on Unix, ';'-separated on Windows. Alternative to positional arguments.
FS_READ_ONLY_DIRSNoRead-only directories; ':'-separated on Unix, ';'-separated on Windows. Writes, moves, and deletes under them are refused.
FS_ALLOWED_DIRSNoAllowed directories inside the container, ':'-separated. Alternative to positional arguments.
FS_READ_ONLY_DIRSNoRead-only directories inside the container, ':'-separated. Writes, moves, and deletes under them are refused.

More developer tools MCP servers