# Filesystem MCP
> A local MCP reference server that provides controlled file and directory operations within explicitly allowed directories.
Canonical: https://www.mcpfolio.com/servers/filesystem
Last updated: 2026-10-28
## Catalog record

- Publisher: Model Context Protocol maintainers
- Categories: search, file-system

## Website

https://github.com/modelcontextprotocol/servers/tree/main/src/filesystem

## Repository

https://github.com/modelcontextprotocol/servers

## Transports

stdio

## Authentication

No remote authentication; access is restricted to configured allowed directories and may be updated through MCP Roots when supported by the client.

## Tools

- **read_text_file**: Read a complete text file, or only its head/tail lines.
- **read_media_file**: Return file content as base64/MCP image, audio, or resource content.
- **read_multiple_files**: Read several files; an individual failure does not stop other reads.
- **write_file**: Create or overwrite a file; destructive because it replaces existing content.
- **edit_file**: Apply text edits to a file; repeated application may be unsafe.
- **create_directory**: Create a directory within the allowed paths.
- **list_directory**: List directory entries.
- **list_directory_with_sizes**: List directory entries with sizes.
- **directory_tree**: Return a recursive directory tree.
- **move_file**: Move a file or directory within allowed paths.
- **search_files**: Search for files by pattern.
- **get_file_info**: Return metadata for a file.
- **list_allowed_directories**: Show the directories currently allowed to the server.
- **directory_size**: Calculate directory size.

## Sources

- [official_tool_reference](https://github.com/modelcontextprotocol/servers/blob/main/src/filesystem/README.md)
- [official_documentation](https://github.com/modelcontextprotocol/servers/blob/main/src/filesystem/index.ts)

## Setup

Use the interactive setup panel on [the detail page](https://www.mcpfolio.com/servers/filesystem) to view instructions for each supported client.