Enhanced FileSystem MCP server
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:
Weather Mcp Claudedesktop
An MCP (Model Context Protocol) tool that provides real-time weather data, forecasts, and historical weather information using the OpenWeatherMap API, specifically designed for Claude Desktop.
Mcp Brianknows
Unofficial MCP to use BrianKnows API for DeFI knowledge
Yolo Mcp Server