MCP Server Studio
Filesystem MCP server for AI assistants.
Registry name: io.github.j0hanz/filesystem-mcp
Add to claude_desktop_config.json:
{
"mcpServers": {
"filesystem-mcp": {
"command": "npx",
"args": [
"-y",
"@j0hanz/[email protected]"
],
"env": {
"FS_ALLOWED_DIRS": "<FS_ALLOWED_DIRS>",
"FS_READ_ONLY_DIRS": "<FS_READ_ONLY_DIRS>"
}
}
}
}Run in your terminal:
claude mcp add filesystem-mcp -e FS_ALLOWED_DIRS='<FS_ALLOWED_DIRS>' -e FS_READ_ONLY_DIRS='<FS_READ_ONLY_DIRS>' -- npx -y @j0hanz/[email protected]Add to .cursor/mcp.json:
{
"mcpServers": {
"filesystem-mcp": {
"command": "npx",
"args": [
"-y",
"@j0hanz/[email protected]"
],
"env": {
"FS_ALLOWED_DIRS": "<FS_ALLOWED_DIRS>",
"FS_READ_ONLY_DIRS": "<FS_READ_ONLY_DIRS>"
}
}
}
}Add to .vscode/mcp.json:
{
"servers": {
"filesystem-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@j0hanz/[email protected]"
],
"env": {
"FS_ALLOWED_DIRS": "<FS_ALLOWED_DIRS>",
"FS_READ_ONLY_DIRS": "<FS_READ_ONLY_DIRS>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"filesystem-mcp": {
"command": "npx",
"args": [
"-y",
"@j0hanz/[email protected]"
],
"env": {
"FS_ALLOWED_DIRS": "<FS_ALLOWED_DIRS>",
"FS_READ_ONLY_DIRS": "<FS_READ_ONLY_DIRS>"
}
}
}
}| Name | Required | What it is |
|---|---|---|
FS_ALLOWED_DIRS | No | Allowed directories; ':'-separated on Unix, ';'-separated on Windows. Alternative to positional arguments. |
FS_READ_ONLY_DIRS | No | Read-only directories; ':'-separated on Unix, ';'-separated on Windows. Writes, moves, and deletes under them are refused. |
FS_ALLOWED_DIRS | No | Allowed directories inside the container, ':'-separated. Alternative to positional arguments. |
FS_READ_ONLY_DIRS | No | Read-only directories inside the container, ':'-separated. Writes, moves, and deletes under them are refused. |