Loading...
{
"mcpServers": {
"filesystem": {
"command": "mcp-filesystem-server",
"args": ["/path/to/allowed/directory", "/another/allowed/directory"]
}
}
}read_fileReads the complete contents of a specified file.
Read-only operation, no side effects.
read_multiple_filesReads the contents of multiple files in a single operation.
Read-only operation, no side effects.
write_fileCreates a new file or overwrites an existing file with specified content.
Can overwrite or create files, potentially leading to data loss or corruption.
copy_fileCopies files and directories from a source to a destination.
Can create copies of sensitive files in unintended locations.
move_fileMoves or renames files and directories.
Can move files to unintended locations, potentially disrupting workflows or hiding data.
delete_fileDeletes a file or directory from the file system.
Can permanently delete files and directories, leading to data loss.
modify_fileUpdates a file by finding and replacing text using string matching or regex.
Can modify file contents, potentially introducing errors or malicious code.
list_directoryGets a detailed listing of all files and directories in a specified path.
Read-only operation, no side effects.
create_directoryCreates a new directory or ensures a directory exists.
Can create new directories, potentially altering the file system structure.
treeReturns a hierarchical JSON representation of a directory structure.
Read-only operation, no side effects.
search_filesRecursively searches for files and directories matching a pattern.
Read-only operation, no side effects.
search_within_filesSearches for text within file contents across directory trees.
Read-only operation, no side effects.
get_file_infoRetrieves detailed metadata about a file or directory.
Read-only operation, no side effects.
list_allowed_directoriesReturns the list of directories that this server is allowed to access.
Read-only operation, no side effects.
This server is relatively safe when configured with carefully chosen allowed directories and used for read-only operations. However, the write and delete capabilities pose a significant risk if the allowed directories are too broad or if the server is used by untrusted actors.