Skip to content
VS Code

Filesystem for VS Code

io.github.modelcontextprotocol/server-filesystem

Reference server for local file operations, scoped to directories you pass as arguments. Read, write, edit, search and inspect files and directory trees.

client:VS Code transport:stdio runtime:npm tools:11

Install Filesystem in VS Code

.vscode/mcp.json

{
  "servers": {
    "server-filesystem": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem"
      ]
    }
  }
}

Requires agent mode. MCP: Open User Configuration puts the same block in every workspace. VS Code docs

What VS Code can do once it is connected

Filesystem in other clients