Filesystem MCP for VS Code
io.github.j0hanz/filesystem-mcp
Secure filesystem MCP server for reading, writing, searching, diffing, and patching files.
client:VS Code
transport:stdio
runtime:npm
Install Filesystem MCP in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "fs-allowed-dirs",
"description": "FS_ALLOWED_DIRS",
"password": true
}
],
"servers": {
"filesystem-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@j0hanz/filesystem-mcp"
],
"env": {
"FS_ALLOWED_DIRS": "${input:fs-allowed-dirs}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs