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:
Manage files and downloads on Synology NAS devices using an AI assistant.
Provides shell access to execute commands and interact with the local file system.
Securely browse and read files within an Android project, with built-in validation and access controls for sensitive directories.
Batch convert PNG, JPG, and JPEG images to WebP format with options for quality, lossless mode, and multi-threaded processing.
A read-only MCP server for querying live FTP data using the CData JDBC Driver.
Perform filesystem operations within specified directories.
Convert files between various formats, including images, documents, audio, video, and more.
A high-performance MCP server for comprehensive JSON file operations, including reading, writing, and advanced querying, optimized for LLM interactions.
Extract text, images, and perform OCR on PDF documents using Tesseract OCR.
Fast Windows file search using Everything SDK