MCP FilesystemServer
Go server implementing Model Context Protocol (MCP) for filesystem operations
Overview
MCP Filesystem Server
Description:
A Go-based server for handling filesystem operations through standardized protocols
Category: File System Management
Overview:
This server provides comprehensive filesystem operations capabilities with strict directory access controls. It's implemented in Go and offers essential file management features like reading, writing, moving files, and directory operations.
Key features:
- Secure file read/write operations
- Directory management (create, list, delete)
- File/directory movement
- File search functionality
- Detailed metadata retrieval
- Directory access control
The server enforces operations only within specifically allowed directories, making it secure for production use.
Installation:
go install github.com/mark3labs/mcp-filesystem-server
Configuration:
{
"mcpServers": {
"filesystem": {
"command": "mcp-filesystem-server",
"args": [
"/Users/username/Desktop",
"/path/to/other/allowed/dir"
]
}
}
}
Available Operations:
read_file
: Read file contents (UTF-8)read_multiple_files
: Batch file readingwrite_file
: Create or overwrite filescreate_directory
: Create new directorieslist_directory
: View directory contentsmove_file
: Move/rename files and directoriessearch_files
: Recursive file searchget_file_info
: Retrieve file metadata
Security Note: Operations are restricted to explicitly allowed directories specified during server initialization.
Licensed under MIT License.