Official

File System MCP Server

Local directory and file management for MCP clients with path-based access control.

Data last scanned today · Reviewed today

713 dangerous tools13 tools88,628TypeScriptNOASSERTION

Overview

This Node.js server provides full filesystem integration, enabling AI assistants to read, write, move, and delete files, as well as manage directory structures. It supports searching for files and retrieving detailed metadata to inform AI interactions with local storage. Access is strictly limited to authorized directories defined at startup via command-line arguments or dynamically through the MCP Roots protocol. The server requires at least one defined root directory to function and supports runtime updates when paired with compatible clients.

Our verdict

This server carries a high risk level with a security score of 56/100. The primary security concern is the lack of any authentication method, meaning any user or process with access to the configuration can execute arbitrary filesystem operations. Additionally, the server does not enforce a read-only mode, providing full write and delete permissions by default. It is recommended for use only in isolated, trusted environments.

  • Maintained directly by the official Model Context Protocol organization
  • Small footprint with only four direct project dependencies
  • Supports dynamic directory updates through the MCP Roots protocol
  • Active development with commits recorded within the last week
  • No built-in authentication mechanism for incoming connections
  • Default implementation allows write and delete operations without read-only restrictions
  • License status is marked as NOASSERTION

Setup

Claude Desktop
{
  "mcpServers": {
    "filesystem": {
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem"
      ],
      "command": "npx"
    }
  }
}

Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows), then restart Claude Desktop. Some servers require API keys or tokens as environment variables — check the project's README and add an "env" object if needed.

  • No read-only mode — running this grants full read/write access.
  • No built-in authentication — anyone with access to this config can invoke every tool it exposes.

Tools

ToolDescriptionRisk
read_text_fileRead complete contents of a file as textlow
read_media_fileRead a file and return it as a base64-encoded content block with its MIME typelow
read_multiple_filesRead multiple files simultaneouslylow
write_fileCreate new file or overwrite existing (exercise caution with this)high
edit_fileMake selective edits using advanced pattern matching and formattinghigh
create_directoryCreate new directory or ensure it existsmedium
list_directoryList directory contents with [FILE] or [DIR] prefixeslow
list_directory_with_sizesList directory contents with [FILE] or [DIR] prefixes, including file sizeslow
move_fileMove or rename files and directorieshigh
search_filesRecursively search for files/directories that match or do not match patternslow
directory_treeGet recursive JSON tree structure of directory contentslow
get_file_infoGet detailed file/directory metadatalow
list_allowed_directoriesList all directories the server is allowed to accesslow

Compatibility

ClientLocalDockerRemoteRead-only
ChatGPT
Claude Desktop
Cursor
VS Code
Windsurf

Alternatives

Badge

File System MCP Server security score, rated on RepoAI

Maintain this server? Add the live badge to your README.