Filesystem
Reference server for reading, writing and searching files inside folders you allow.
- Checks
- 9 of 9 passed
- License
- Apache-2.0 and MIT
- Last commit
- 7 days ago
- GitHub stars
- 93k
- Reviewed at
b502fd9· Dec 4, 2026
Install
npm · @modelcontextprotocol/server-filesystem
claude mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem /path/to/allowed/folder{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/path/to/allowed/folder"
]
}
}
}Tools
14 tools listed by secure-filesystem-server 1.0.0 in our sandbox on Dec 4, 2026.
read_fileRead-onlyRead the complete contents of a file as text.
read_text_fileRead-onlyRead the complete contents of a file from the file system as text.
read_media_fileRead-onlyRead a file and return it as a base64-encoded content block with its MIME type.
read_multiple_filesRead-onlyRead the contents of multiple files simultaneously.
write_fileDestructiveCreate a new file or completely overwrite an existing file with new content.
edit_fileDestructiveMake line-based edits to a text file.
create_directoryCreate a new directory or ensure a directory exists.
list_directoryRead-onlyGet a detailed listing of all files and directories in a specified path.
list_directory_with_sizesRead-onlyGet a detailed listing of all files and directories in a specified path, including sizes.
directory_treeRead-onlyGet a recursive tree view of files and directories as a JSON structure.
move_fileDestructiveMove or rename files and directories.
search_filesRead-onlyRecursively search for files and directories matching a pattern.
get_file_infoRead-onlyRetrieve detailed metadata about a file or directory.
list_allowed_directoriesRead-onlyReturns the list of directories that this server is allowed to access.
Related MCP servers
More reference serversFetch
OfficialReference server that fetches a URL and returns it as markdown.
Git
OfficialReference server for reading and committing in local git repositories.
Memory
OfficialReference server for a persistent knowledge graph of entities and relations.
Sequential Thinking
OfficialReference server that gives the model a scratchpad for step-by-step reasoning.