HomeFile Systems › Filesystem MCP

Filesystem MCP

Secure filesystem MCP server for reading, writing, searching, diffing, and patching files.

TypeScript Local
★ 22 stars Last pushed 2026-09-23 License: MIT

Topics: File Systems

Connect

Review any command before running it. Package names and URLs come from the server's own registry entry.

Package (npm 2.5.0)

npx -y @j0hanz/[email protected]

Or add to your MCP client config:

{
  "mcpServers": {
    "filesystem-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@j0hanz/[email protected]"
      ],
      "env": {
        "FS_ALLOWED_DIRS": "<YOUR_VALUE>"
      }
    }
  }
}
  • FS_ALLOWED_DIRS — Allowed directories; ':'-separated on Unix, ';'-separated on Windows. Alternative to positional arguments.

This server takes extra arguments — see its repository.

Package (oci)

docker run -i --rm ghcr.io/j0hanz/filesystem-mcp:2.5.0

Or add to your MCP client config:

{
  "mcpServers": {
    "filesystem-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/j0hanz/filesystem-mcp:2.5.0"
      ],
      "env": {
        "FS_ALLOWED_DIRS": "<YOUR_VALUE>"
      }
    }
  }
}
  • FS_ALLOWED_DIRS — Allowed directories inside the container, ':'-separated. Alternative to positional arguments.

This server takes extra arguments — see its repository.

This repository has 2 servers listed in the Official MCP Registry.

Other names: io.github.j0hanz/filesystem-context

Related servers

Listed in punkpeye/awesome-mcp-servers (MIT)

Data from the Official MCP Registry