Filesystem

By thumbsupordown

Official Model Context Protocol reference server for secure filesystem access: read, write, edit, move, and search files and directories within configurable allowed paths.

Tools

create_directory

Create a new directory, recursively making any missing parent directories, or confirm that it already exists.

directory_tree

Produce a recursive JSON tree describing the full structure of files and folders under a directory.

edit_file

Make targeted, pattern-based edits to a file, with a dry-run mode to preview the resulting diff before applying it.

get_file_info

Retrieve detailed metadata for a file or directory, including size, timestamps, type, and permissions.

list_allowed_directories

List the directories the server has been granted access to operate within for safety.

list_directory

List the contents of a directory, labeling each entry as either a file or a folder.

list_directory_with_sizes

List a directory's contents including each file's size along with summary statistics for the directory.

move_file

Move or rename a file or directory, failing safely if the destination path already exists.

read_media_file

Read an image or other media file and return it as base64-encoded data together with its MIME type.

read_multiple_files

Read several files at once, returning each file's contents and continuing even if some individual reads fail.

read_text_file

Return the complete text contents of a file, optionally limited to the first or last N lines of the file.

search_files

Recursively search a directory for files matching a glob pattern, with support for exclusion patterns.

write_file

Create a new file or completely overwrite an existing file with the provided text content.

Want to create your own MCP server?

Create an account to add and manage your own MCP servers.