Filesystem MCP server for AI assistants.
registry version 2.19.3
npm
npx -y @j0hanz/filesystem-mcpnpm
npx -y @j0hanz/filesystem-mcp@2.19.3Docker
docker run -i --rm ghcr.io/j0hanz/filesystem-mcp:2.19.3
Pick your client — the config below is generated for this server (local stdio). Copy respects the “Pin version” switch above.
claude_desktop_config.json
{
"mcpServers": {
"filesystem-mcp-2": {
"command": "npx",
"args": [
"-y",
"@j0hanz/filesystem-mcp"
]
}
}
}{
"mcpServers": {
"filesystem-mcp-2": {
"command": "npx",
"args": [
"-y",
"@j0hanz/filesystem-mcp@2.19.3"
]
}
}
}Format verified against the official Claude Desktop docs ↗.
terminal
claude mcp add filesystem-mcp-2 -- npx -y @j0hanz/filesystem-mcp
claude mcp add filesystem-mcp-2 -- npx -y @j0hanz/filesystem-mcp@2.19.3
Format verified against the official Claude Code docs ↗.
.cursor/mcp.json
{
"mcpServers": {
"filesystem-mcp-2": {
"command": "npx",
"args": [
"-y",
"@j0hanz/filesystem-mcp"
]
}
}
}{
"mcpServers": {
"filesystem-mcp-2": {
"command": "npx",
"args": [
"-y",
"@j0hanz/filesystem-mcp@2.19.3"
]
}
}
}Format verified against the official Cursor docs ↗.
.vscode/mcp.json
{
"servers": {
"filesystem-mcp-2": {
"command": "npx",
"args": [
"-y",
"@j0hanz/filesystem-mcp"
]
}
}
}{
"servers": {
"filesystem-mcp-2": {
"command": "npx",
"args": [
"-y",
"@j0hanz/filesystem-mcp@2.19.3"
]
}
}
}Format verified against the official VS Code docs ↗.
mcp_config.json
{
"mcpServers": {
"filesystem-mcp-2": {
"command": "npx",
"args": [
"-y",
"@j0hanz/filesystem-mcp"
]
}
}
}{
"mcpServers": {
"filesystem-mcp-2": {
"command": "npx",
"args": [
"-y",
"@j0hanz/filesystem-mcp@2.19.3"
]
}
}
}Format verified against the official Windsurf docs ↗.
Defined in the server's official registry manifest. Required secrets are shown as <YOUR_…> placeholders in the configs above.
FS_ALLOWED_DIRS — Allowed directories; ':'-separated on Unix, ';'-separated on Windows. Alternative to positional arguments.FS_READ_ONLY_DIRS — Read-only directories; ':'-separated on Unix, ';'-separated on Windows. Writes, moves, and deletes under them are refused.⭐ 24 stars · 最近更新于 29 天前 · MIT license
Filesystem MCP Let your AI assistant work with your files, safely. Read, search, edit, and patch files in the folders you choose. Secret files stay hidden, and risky changes wait for your OK. What is this? Model Context P…
Summary from the project README — github.com/j0hanz/filesystem-mcp
Distributed as npm, Docker, listed under Files & Storage. Review our MCP security guide before granting access to real data.
Filesystem MCP Let your AI assistant work with your files, safely. Read, search, edit, and patch files in the folders you choose. Secret files stay hidden, and risky changes wait for your OK. What is this? Model Context P
Run the install command shown above, then paste the config for your client (Claude Desktop, Claude Code, Cursor, VS Code or Windsurf) into its MCP settings and restart the client.
The MCP server itself is free to install. The source is public on https://github.com/j0hanz/filesystem-mcp. Any third-party service it calls may require its own API key and account.
Any MCP-compatible client can use it, including Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and custom agents.
Publish this server? Link back with a badge on your README or site — copy either snippet.
Markdown
[](https://mcpnav.net/server/filesystem-mcp-2/)
HTML
<a href="https://mcpnav.net/server/filesystem-mcp-2/"><img src="https://mcpnav.net/badge/filesystem-mcp-2.svg" alt="Listed on MCPNav" height="20"></a>