A secure, high-performance MCP server that gives AI agents safe access to your local filesystem.
940
A secure, high-performance Model Context Protocol (MCP) server that gives AI coding agents safe access to your local filesystem. Built in Go with directory sandboxing, symlink attack prevention, and atomic writes.
docker run -i \
-v /path/to/dir:/path/to/dir \
portertech/filesystem-mcp-server /path/to/dir
docker run -i \
-v /home/user/projects:/home/user/projects \
-v /home/user/documents:/home/user/documents \
portertech/filesystem-mcp-server /home/user/projects /home/user/documents
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"filesystem": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"-v", "/Users/username/Documents:/Users/username/Documents",
"-v", "/Users/username/Projects:/Users/username/Projects",
"portertech/filesystem-mcp-server",
"/Users/username/Documents", "/Users/username/Projects"
]
}
}
}
| Tool | Description |
|---|---|
read_text_file | Read text files with optional line ranges |
read_multiple_files | Read multiple files concurrently |
read_media_file | Read media files as base64 |
write_file | Create or overwrite files (atomic) |
edit_file | Find/replace edits with diff output |
copy_file | Copy files with streaming |
move_file | Move or rename files/directories |
delete_file | Delete files |
delete_directory | Delete directories |
create_directory | Create directories |
list_directory | List directory contents |
list_directory_with_sizes | List with sizes and sorting |
directory_tree | Recursive tree view (JSON) |
search_files | Search files by glob pattern |
get_file_info | Get file metadata |
list_allowed_directories | List allowed directories |
.. cannot escape allowed directoriesMIT
Content type
Image
Digest
sha256:f7a9fdd80…
Size
2 MB
Last updated
8 months ago
docker pull portertech/filesystem-mcp-server