MEGA cloud storage CLI 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.
| 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 |
| 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 |
| 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 |
| 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 |
Install MEGAcmd:
brew install --cask megacmd
Log in to your MEGA account:
mega-login your@email.com password
npm install
npm run build
{
"mcpServers": {
"mega": {
"type": "stdio",
"command": "node",
"args": ["/path/to/mega-mcp/dist/index.js"]
}
}
}
@modelcontextprotocol/sdk -- MCP protocol SDKSource-derived launch command. Check the maintainer’s required arguments and credentials before running:
npx -y mega-mcp-serverMerge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.
{
"mcpServers": {
"io-github-expertvagabond-mega": {
"command": "npx",
"args": [
"-y",
"mega-mcp-server"
]
}
}
}Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.
Claude Desktop setup referencemega-mcp-servernpmio.github.ExpertVagabond/mega works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.
~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.~/.cursor/mcp.jsonRestart Cursor for changes to take effect..vscode/mcp.jsonReload VS Code window for changes to take effect.~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect..mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.