mcp filesystem server
Go server implementing Model Context Protocol (MCP) for filesystem operations.
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 interfacepath
(string)Reads complete file contents with UTF-8 encoding
read_multiple_files
paths
(string[])Failed reads Will not stop the entire operation
write_file
Inputs:
path
(string): File locationcontent
(string): File contentcreate_directory
path
(string)Succeeds silently if directory exists
list_directory
Input: path
(string)
move_file
source
(string)destination
(string)Fails if destination exists
search_files
path
(string): Starting directorypattern
(string): Search patternReturns full paths to matches
get_file_info
path
(string)Returns:
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.