LogoSTMCP
Download
mcp-filesystem-server

MCP Filesystem Server

MCP Filesystem Server provides secure local filesystem access through the Model Context Protocol, offering comprehensive file and directory operations with built-in security features.

Tools

1. read_file

Read the complete contents of a file from the file system.

2. read_multiple_files

Read the contents of multiple files in a single operation.

3. write_file

Create a new file or overwrite an existing file with new content.

4. copy_file

Copy files and directories.

5. move_file

Move or rename files and directories.

6. delete_file

Delete a file or directory from the file system.

7. modify_file

Update file by finding and replacing text using string matching or regex.

8. list_directory

Get a detailed listing of all files and directories in a specified path.

9. create_directory

Create a new directory or ensure a directory exists.

10. tree

Returns a hierarchical JSON representation of a directory structure.

11. search_files

Recursively search for files and directories matching a pattern.

12. search_within_files

Search for text within file contents across directory trees.

13. get_file_info

Retrieve detailed metadata about a file or directory.

14. list_allowed_directories

Returns the list of directories that this server is allowed to access.

Open Graph image for MCP Filesystem Server

JSON Config

{
  "mcpServers": {
    "filesystem": {
      "command": "mcp-filesystem-server",
      "args": ["/path/to/allowed/directory", "/another/allowed/directory"]
    }
  }
}

Useful Links

Information