Skip to content
Cursor

Filesystem MCP for Cursor

io.github.j0hanz/filesystem-mcp

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

client:Cursor transport:stdio runtime:npm

Install Filesystem MCP in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

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

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

Filesystem MCP in other clients