Design Engineer Logo
Visit Repo
Open Graph preview

MCP FilesystemServer

Go server implementing Model Context Protocol (MCP) for filesystem operations

Site favicon
⚡️ System Operation

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 reading
  • write_file: Create or overwrite files
  • create_directory: Create new directories
  • list_directory: View directory contents
  • move_file: Move/rename files and directories
  • search_files: Recursive file search
  • get_file_info: Retrieve file metadata

Security Note: Operations are restricted to explicitly allowed directories specified during server initialization.

Licensed under MIT License.