About mega
mega is an MCP server for managing MEGA encrypted cloud storage through MEGAcmd. It covers file operations, transfers, search, synchronization, and sharing.
Key features
- 01Browse and manage files and folders
- 02Upload and download files
- 03Search with wildcard patterns
- 04Set up bidirectional folder sync
- 05Create links and share folders
Use cases
- 01Organize files in a MEGA account
- 02Transfer files between local storage and MEGA
- 03Find files or share folders and public links
MCP support
Exposes MEGAcmd-based MEGA account, file, transfer, synchronization, search, and sharing operations as tools for MCP clients.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
20Saved tool list · updated 2w ago
This tool takes no parameters.
Details
From the project READMEmega-mcp-server
[!License: MIT](https://opensource.org/licenses/MIT) [!MCP](https://modelcontextprotocol.io) [!TypeScript](https://www.typescriptlang.org)
MCP server for MEGA encrypted cloud storage. Provides file management, uploads, downloads, sharing, folder sync, and search via MEGAcmd.
Tools (18 total)
Account and Navigation
| Tool | Description |
|---|---|
mega_whoami | Get current logged-in account info |
mega_pwd | Print current working directory |
mega_cd | Change current directory |
mega_df | Show storage space usage |
mega_du | Show disk usage of a remote path |
File Operations
| Tool | Description |
|---|---|
mega_ls | List files and folders (supports -l and -R) |
mega_mkdir | Create a directory (supports -p) |
mega_rm | Remove files or folders |
mega_mv | Move or rename files and folders |
mega_cp | Copy files and folders |
mega_cat | Display contents of a remote file |
mega_tree | Show directory tree structure |
mega_find | Search for files with wildcard patterns |
Transfer
| Tool | Description |
|---|---|
mega_get | Download files to local filesystem |
mega_put | Upload files to MEGA cloud |
mega_transfers | Show current upload/download progress |
mega_sync | Set up bidirectional folder sync |
Sharing
| Tool | Description |
|---|---|
mega_export | Create a public link (with optional expiry and password) |
mega_share | Share a folder with another MEGA user (r/rw/full) |
mega_import | Import a public MEGA link to your account |
Prerequisites
Install MEGAcmd:
brew install --cask megacmd
Log in to your MEGA account:
mega-login [email protected] password
Install
npm install
npm run build
Configuration
{
"mcpServers": {
"mega": {
"type": "stdio",
"command": "node",
"args": ["/path/to/mega-mcp/dist/index.js"]
}
}
}
MEGA Features
- End-to-end encryption -- all files encrypted client-side with zero-knowledge architecture
- 20 GB free storage -- included with every account
- File versioning -- automatic version history
- Cross-platform sync -- desktop and mobile clients
Dependencies
@modelcontextprotocol/sdk-- MCP protocol SDK- MEGAcmd -- MEGA command-line client (must be installed separately)
License
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.