Data as of

MCP Filesystem Server for VS Code: Setup & Config

MCP Filesystem Server gives VS Code file and directory operations within explicitly allowed paths.

MCP Filesystem Server VS Code configuration

  1. Choose VS Code configuration scope

    For MCP Filesystem Server, open Workspace: .vscode/mcp.json. Merge into servers; preserve existing inputs.

  2. Add MCP Filesystem Server to VS Code

    Use the mcp-filesystem-server entry below in servers. Keep MCP Filesystem Server's documented stdio connection fields and your other VS Code entries.

  3. Check MCP Filesystem Server in VS Code

    MCP Filesystem Server: Start in VS Code’s MCP controls; inspect output and trust prompts.

Config file · Workspace: .vscode/mcp.json

JSON
{
  "servers": {
    "mcp-filesystem-server": {
      "type": "stdio",
      "command": "mcp-filesystem-server",
      "args": [
        "/path/to/allowed/directory",
        "/another/allowed/directory"
      ],
      "env": {}
    }
  }
}

MCP Filesystem in VS Code: stdio checks

  • Make mcp-filesystem-server available in the workspace, container, or remote environment hosting MCP Filesystem Server. Start through VS Code's MCP controls; inspect output and trust prompts.
  • MCP Filesystem Server uses stdio here: VS Code must keep the configured process running; protocol output belongs on stdout and diagnostics on stderr.
Tools
read_file, read_multiple_files, write_file

MCP Filesystem Server — details. VS Code guide

Frequently asked questions

For MCP Filesystem Server, edit workspace .vscode/mcp.json. VS Code requires servers rather than mcpServers; preserve the displayed type on each entry.

VS Code's mcp-filesystem-server example uses stdio.

MCP Filesystem Server's VS Code configuration invokes mcp-filesystem-server.

MCP Filesystem Server's stored list contains 14 tools, including read_file, read_multiple_files, write_file. Compare those names with VS Code's connected tool list; the stored list is not a live check.