Filesystem MCP server for AI assistants.
Connect Runs on your machine
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]
{
"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>"
}
}
}
}
{
"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>"
}
}
}
}
{
"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>"
}
}
}
}
Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.
Tools
This server runs locally, so its tools are listed by your MCP client once it starts.
Environment variables
| Name | Description |
|---|---|
FS_ALLOWED_DIRSOptional | Allowed directories; ':'-separated on Unix, ';'-separated on Windows. Alternative to positional arguments. |
FS_READ_ONLY_DIRSOptional | Read-only directories; ':'-separated on Unix, ';'-separated on Windows. Writes, moves, and deletes under them are refused. |
Details
| Package | @j0hanz/[email protected] (NPM, stdio) |
| Package | ghcr.io/j0hanz/filesystem-mcp:2.20.0 (OCI, stdio) |
| First published | 11 Nov 2026 |
| Last updated | 11 Nov 2026 |
| Registry name | io.github.j0hanz/filesystem-mcp |
More files and documents servers See all
Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.
