Back to Directory/Cloud Providers

io.github.ExpertVagabond/mega

MEGA cloud storage CLI MCP server

Cloud ProvidersTypeScriptv1.0.1

mega-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

ToolDescription
mega_whoamiGet current logged-in account info
mega_pwdPrint current working directory
mega_cdChange current directory
mega_dfShow storage space usage
mega_duShow disk usage of a remote path

File Operations

ToolDescription
mega_lsList files and folders (supports -l and -R)
mega_mkdirCreate a directory (supports -p)
mega_rmRemove files or folders
mega_mvMove or rename files and folders
mega_cpCopy files and folders
mega_catDisplay contents of a remote file
mega_treeShow directory tree structure
mega_findSearch for files with wildcard patterns

Transfer

ToolDescription
mega_getDownload files to local filesystem
mega_putUpload files to MEGA cloud
mega_transfersShow current upload/download progress
mega_syncSet up bidirectional folder sync

Sharing

ToolDescription
mega_exportCreate a public link (with optional expiry and password)
mega_shareShare a folder with another MEGA user (r/rw/full)
mega_importImport a public MEGA link to your account

Prerequisites

Install MEGAcmd:

brew install --cask megacmd

Log in to your MEGA account:

mega-login your@email.com 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

MIT

Installation

Source-derived launch command. Check the maintainer’s required arguments and credentials before running:

bash
npx -y mega-mcp-server

Set up in your AI client

Merge 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.

json
{
  "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 reference

Package

mega-mcp-servernpm

Compatible MCP Clients

io.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.

  • Claude Desktop~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.
  • Cursor~/.cursor/mcp.jsonRestart Cursor for changes to take effect.
  • VS Code.vscode/mcp.jsonReload VS Code window for changes to take effect.
  • Windsurf~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect.
  • Claude Code.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.

Learn More