Go server implementing Model Context Protocol (MCP) for filesystem operations.
Go server implementing Model Context Protocol (MCP) for filesystem operations.
Note: The server will only allow operations within directories specified via args
.
file://system
: File system operations interfaceread_file
path
(string)read_multiple_files
paths
(string[])write_file
path
(string): File locationcontent
(string): File contentcreate_directory
path
(string)list_directory
path
(string)move_file
source
(string)destination
(string)search_files
path
(string): Starting directorypattern
(string): Search patternget_file_info
path
(string)list_allowed_directories
Install the server
go install github.com/mark3labs/mcp-filesystem-server
Add this to your claude_desktop_config.json
:
{
"mcpServers": {
"filesystem": {
"command": "mcp-filesystem-server",
"args": [
"/Users/username/Desktop",
"/path/to/other/allowed/dir"
]
}
}
}
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.