A secure server for filesystem operations with controlled access to specified directories.
A secure Model Context Protocol (MCP) server that provides filesystem operations with controlled access to specified directories.
go get github.com/gomcpgo/filesys
Set allowed directories using the environment variable:
export MCP_ALLOWED_DIRS="/path1,/path2,/path with spaces/dir3"
read_file
: Read single file contentsread_multiple_files
: Read multiple files simultaneouslywrite_file
: Create or overwrite filescreate_directory
: Create new directorieslist_directory
: List directory contentslist_allowed_directories
: Show accessible directoriesmove_file
: Move or rename files and directoriesget_file_info
: Get file metadatasearch_files
: Search files recursively with pattern matchingAdd to claude_desktop_config.json
:
{
"mcpServers": {
"filesystem": {
"command": "/path/to/filesys",
"env": {
"MCP_ALLOWED_DIRS": "/path1,/path2,/path with spaces/dir3"
}
}
}
}
{
"name": "read_file",
"arguments": {
"path": "/allowed/path/file.txt"
}
}
{
"name": "list_directory",
"arguments": {
"path": "/allowed/path"
}
}
go build -o bin/filesys cmd/main.go
MIT License
Pull requests welcome. Please ensure:
Parses various file formats using the 302.AI API, requiring a 302AI_API_KEY.
Securely browse and read files within an Android project, with built-in validation and access controls for sensitive directories.
Convert files between various formats, including images, documents, audio, video, and more.
Fast Windows file search using Everything SDK
Secure file operations with configurable access controls