
Filesystem
The Mcp Filesystem Server provides secure local filesystem access through the Model Context Protocol, enabling AI models to read, write, modify, and manage files and directories. It offers tools for file operations (read, write, copy, move, delete, modify), directory management (list, create, traverse), and content search (pattern matching and text search within files). This server solves the problem of safely integrating filesystem capabilities into AI applications while maintaining controlled access to the local file system.
- GitHub stars
- 640
- tools
- 14
- last updated
- Mar 9, 2026
Tools
14 toolsPublic tool metadata for what this MCP can expose to an agent.
read_fileRead the complete contents of a file from the file system
Read the complete contents of a file from the file system
No parameter schema in public metadata yet.
read_multiple_filesRead the contents of multiple files in a single operation
Read the contents of multiple files in a single operation
No parameter schema in public metadata yet.
write_fileCreate a new file or overwrite an existing file with new content
Create a new file or overwrite an existing file with new content
No parameter schema in public metadata yet.
copy_fileCopy files and directories
Copy files and directories
No parameter schema in public metadata yet.
move_fileMove or rename files and directories
Move or rename files and directories
No parameter schema in public metadata yet.
delete_fileDelete a file or directory from the file system
Delete a file or directory from the file system
No parameter schema in public metadata yet.
modify_fileUpdate file by finding and replacing text using string matching or regex
Update file by finding and replacing text using string matching or regex
No parameter schema in public metadata yet.
list_directoryGet a detailed listing of all files and directories in a specified path
Get a detailed listing of all files and directories in a specified path
No parameter schema in public metadata yet.
create_directoryCreate a new directory or ensure a directory exists
Create a new directory or ensure a directory exists
No parameter schema in public metadata yet.
treeReturns a hierarchical JSON representation of a directory structure
Returns a hierarchical JSON representation of a directory structure
No parameter schema in public metadata yet.
search_filesRecursively search for files and directories matching a pattern
Recursively search for files and directories matching a pattern
No parameter schema in public metadata yet.
search_within_filesSearch for text within file contents across directory trees
Search for text within file contents across directory trees
No parameter schema in public metadata yet.
get_file_infoRetrieve detailed metadata about a file or directory
Retrieve detailed metadata about a file or directory
No parameter schema in public metadata yet.
list_allowed_directoriesReturns the list of directories that this server is allowed to access
Returns the list of directories that this server is allowed to access
No parameter schema in public metadata yet.
Sponsors
Readme
MCP Filesystem Server
This MCP server provides secure access to the local filesystem via the Model Context Protocol (MCP).
Components
Resources
- file://
- Name: File System
- Description: Access to files and directories on the local file system
Tools
File Operations
-
read_file
- Read the complete contents of a file from the file system
- Parameters:
path(required): Path to the file to read
-
read_multiple_files
- Read the contents of multiple files in a single operation
- Parameters:
paths(required): List of file paths to read
-
write_file
- Create a new file or overwrite an existing file with new content
- Parameters:
path(required): Path where to write the file,content(required): Content to write to the file
-
copy_file
- Copy files and directories
- Parameters:
source(required): Source path of the file or directory,destination(required): Destination path
-
move_file
- Move or rename files and directories
- Parameters:
source(required): Source path of the file or directory,destination(required): Destination path
Details
- Repository
- github.com/mark3labs/mcp-filesystem-server
- Category
- Developer Tools