home / mcp / mega cloud storage mcp server
Provides MEGA cloud storage integration with Claude Code, enabling file management, transfer, sharing, and sync via an MCP server.
Configuration
View docs{
"mcpServers": {
"expertvagabond-mega-mcp-server": {
"command": "node",
"args": [
"/Users/matthewkarsten/mcp-servers/mega-mcp/dist/index.js"
]
}
}
}You can connect to MEGA cloud storage through this MCP server to manage files, transfer data, share links, and synchronize folders directly from Claude Code. This enables seamless cloud interactions within your workflows, with secure client-side encryption and convenient commands.
You use an MCP client to talk to the MEGA MCP Server. The server acts as a bridge to MEGAcmd, letting you list, upload, download, share, and synchronize files on MEGA from Claude Code.
Prerequisites and setup steps ensure you can run the MEGA MCP Server locally and connect it to Claude Code.
1) Install MEGAcmd from https://mega.io/cmd
On macOS:
```
bash
brew install --cask megacmd
```
2) Login to your MEGA account:
```
mega-login [email protected] password
```
3) Install MCP server dependencies and build:
```
cd ~/mcp-servers/mega-mcp
npm install
npm run build
```
4) Prepare Claude Code client configuration (example shown below). Replace paths as needed.
```
{"mcpServers": {
"mega": {
"type": "stdio",
"command": "node",
"args": ["/Users/matthewkarsten/mcp-servers/mega-mcp/dist/index.js"]
}
}}
```
5) Ensure your Claude Code environment picks up the MCP by placing the config in your user profile, such as `~/.claude.json`.The MEGA MCP Server is designed to work with Claude Code via a local process. After starting, you can issue commands through your MCP client to manage files on MEGA through the provided tools.
- Use file listing to explore folders, create directories, and inspect remote content. - Use upload/download to transfer between local and MEGA cloud. - Create public links or share folders with other users. - Set up folder synchronization to keep local and cloud content aligned.
Authenticate with MEGA and establish a session for subsequent operations.
List files and folders in a remote MEGA path.
Download files from MEGA to the local filesystem.
Upload files from the local system to MEGA.
Create a new directory on MEGA.
Remove files or folders on MEGA.
Copy files or folders within MEGA.
Move or rename files or folders on MEGA.
Create a public link for a MEGA item.
Share a MEGA folder with another user.
Import a public MEGA link into your account.
Set up and manage synchronization between local and MEGA folders.
Show storage space usage for MEGA.
Show disk usage of a remote MEGA path.
Display contents of a remote file on MEGA.
Show the directory tree structure on MEGA.
Search for files or folders on MEGA.
Get current logged-in account information.
Print the current working directory.