MCP Filesystem Server provides secure local filesystem access through the Model Context Protocol, offering comprehensive file and directory operations with built-in security features.
Read the complete contents of a file from the file system.
Read the contents of multiple files in a single operation.
Create a new file or overwrite an existing file with new content.
Copy files and directories.
Move or rename files and directories.
Delete a file or directory from the file system.
Update file by finding and replacing text using string matching or regex.
Get a detailed listing of all files and directories in a specified path.
Create a new directory or ensure a directory exists.
Returns a hierarchical JSON representation of a directory structure.
Recursively search for files and directories matching a pattern.
Search for text within file contents across directory trees.
Retrieve detailed metadata about a file or directory.
Returns the list of directories that this server is allowed to access.
{
"mcpServers": {
"filesystem": {
"command": "mcp-filesystem-server",
"args": ["/path/to/allowed/directory", "/another/allowed/directory"]
}
}
}