Purpose: Filesystem MCP is a Model Context Protocol (MCP) server running locally that provides 14 file operation tools for AI applications such as Claude, GitHub Copilot in VS Code, and Cursor, enabling AI to search, read, edit, and organize files within user-specified folders; no access outside those folders is allowed.
Main capabilities: Supports grep-style searching in file contents, using a non-hanging RE2 regex engine, and by default skips .gitignore entries and directories such as node_modules, dist, and .git; supports exact-match replacement editing, returns an error when the text does not match, and can preview diffs first with dryRun; can read multiple files at once or read only the needed lines, and before reading can view file size and token estimates; supports operations such as create, copy, move, delete, and patch. On security, .env files, private keys, and cloud credentials are blocked by default; before deleting non-empty folders, opening unauthorized folders, or overwriting files with create or move, it requests confirmation from the client, and if the client does not support confirmation, the server refuses directly; create and copy can skip the prompt with overwrite: true, and undo can usually restore overwritten files; --read-only removes all write tools, and --read-only-root restricts writes to a single folder.
Usage: Requires Node.js 24 or later. When installing via npx, write -y, @j0hanz/filesystem-mcp@latest, and one or more folder paths allowed for access into the args in the MCP client configuration; you can also use the Docker image (which can combine :ro mounts and --read-only for double write restriction), the Claude Desktop .mcpb one-click extension, or install globally and run filesystem-mcp /path/to/project. VS Code can be configured via .vscode/mcp.json, Cursor uses .cursor/mcp.json, and clients such as Windsurf and Cline use the same mcpServers JSON as Claude Desktop. The server supports stdio and Streamable HTTP, compatible with the 2025 protocol and the 2026-07-28 protocol; in HTTP mode, 2025-version clients will not receive confirmation requests or change notifications. It can also be called as a client from your own code; tool results provide both text blocks and JSON data in _meta/structuredContent, and files can be read and subscribed to as resources via filesystem-mcp://file/{+path}.
Use cases: Local file organization and code maintenance tasks such as finding and categorizing TODOs in a code repository, batch-renaming symbols and previewing the diff first, comparing the differences between two configuration files, reading the tail of a log and explaining errors, and archiving old screenshots.
Limitations: Can only access folders explicitly allowed by the user; high-risk operations depend on the client supporting the confirmation mechanism, otherwise they will be rejected; editing tools (edit, patch, replace_text) do not ask before execution and require dryRun for preview; the server itself has no telemetry and no network requests, retains no data after the process exits, and undo history exists only in memory. Specific configuration options, the complete list of sensitive files, and limitation details are not yet fully expanded in the materials.