Filesystem MCP
open sourcestdioOfficial Anthropic MCP server for reading and writing files on disk
Updated 2026-03-01
The official Anthropic-maintained MCP server that gives AI agents secure, configurable access to the local filesystem. Supports reading, writing, listing, and searching files with access controls that restrict agents to specified directories.
Install
npx -y @modelcontextprotocol/server-filesystem /path/to/allowed/dirRuntime: node
Tools (11)
read_fileRead the complete contents of a file from the filesystem
read_multiple_filesRead the contents of multiple files simultaneously
write_fileCreate a new file or overwrite an existing file with content
edit_fileMake line-based edits to a text file using search/replace
create_directoryCreate a new directory or ensure a directory exists
list_directoryGet a detailed listing of all files and directories in a path
directory_treeGet a recursive tree view of files and directories
move_fileMove or rename files and directories
search_filesRecursively search for files and directories matching a pattern
get_file_infoRetrieve detailed metadata about a file or directory
list_allowed_directoriesReturns the list of directories the server is allowed to access
Use Cases
- ·Give agents access to project files and codebases
- ·Enable agents to read configuration files and write outputs
- ·Build agents that generate and save documents or reports
- ·Allow agents to search and navigate large file trees
Key Points
- •Official Anthropic-maintained server, most stable and well-documented filesystem MCP
- •Access control via allowed directories configured at startup
- •Supports read, write, edit, search, tree listing, and file metadata
- •Runs as a stdio process, works with any MCP-compatible client
Do-Nothing Score
Find out how close you are to Ghost CEO.