Skip to content
Grok

Filesystem MCP for Grok

io.github.j0hanz/filesystem-mcp

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

client:Grok transport:stdio runtime:npm

Install Filesystem MCP in Grok

.mcp.json (in your project root)

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>"
      }
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

Filesystem MCP in other clients