Mega
MCP server giving AI clients file management and transfer access to MEGA cloud storage
- Pricing
- Open source
- Platforms
- CLI, macOS, Linux
- Runs
- Locally
- Version
- 1.0.1
- Listing updated
- today
Similar MCP servers
About Mega
Mega is an open-source MCP server for files and documents. It runs locally on your machine and is started by your AI client.
The README says this server wraps MEGAcmd, MEGA's command-line client, so an MCP-compatible assistant can browse, move, and transfer files in a MEGA account without a separate desktop app. Its 18 tools cover account and navigation commands, file operations such as listing, copying, moving, and searching, uploads and downloads, and sharing through public links or folder shares with other MEGA users.
Setup requires installing MEGAcmd separately and logging in with a MEGA account before the server is pointed at the built entry file from an MCP client configuration. The project is published on npm and released under the MIT license.
It suits developers and power users who want an AI assistant to handle routine storage chores on MEGA, such as tidying folders or generating share links, while keeping the MEGAcmd login on their own machine.
Install
Run in a terminal
claude mcp add mega -- npx -y mega-mcp-serverAdd to claude_desktop_config.json
{
"mcpServers": {
"mega": {
"command": "npx",
"args": [
"-y",
"mega-mcp-server"
]
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"mega": {
"command": "npx",
"args": [
"-y",
"mega-mcp-server"
]
}
}
}Add to .vscode/mcp.json
{
"servers": {
"mega": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mega-mcp-server"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mega": {
"command": "npx",
"args": [
"-y",
"mega-mcp-server"
]
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"mega": {
"command": "npx",
"args": [
"-y",
"mega-mcp-server"
]
}
}
}Using several servers? Build one config file with the MCP config generator.
Tools this server provides (20)
Taken from the project documentation; the running server may differ.
- 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
- 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
- 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
- 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
What it does
- Account and navigation tools
- Check the logged-in account, print the working directory, change directories, and view storage usage.
- File management commands
- List, create, remove, move, copy, search, and print remote files and directory trees.
- Upload and download transfers
- Move files between the local filesystem and MEGA and check transfer progress.
- Folder sync setup
- Configure bidirectional synchronisation between a local folder and a MEGA folder.
- Public links and sharing
- Create public links with optional expiry and password, share folders with other users, and import public links.
- Local MEGAcmd dependency
- Relies on the separately installed MEGAcmd client and a prior login rather than storing credentials in the server.
Good for
- Letting an AI assistant search and organise files in a MEGA account
- Uploading local build artefacts or backups to MEGA from an agent workflow
- Generating password-protected or time-limited MEGA share links
- Checking storage usage and disk usage of remote folders
- Setting up a bidirectional sync between a local folder and MEGA
Pricing
Open source
Free and MIT licensed; requires a MEGA account
Mega FAQ
What does this server need to run?
The README says MEGAcmd must be installed separately, the user must log in to their MEGA account with it, and the server is then built with npm and configured as a stdio MCP server.
How many tools does it expose?
The README lists 18 tools across account and navigation, file operations, transfers, and sharing.
Is it free to use?
The repository is MIT licensed. The README mentions a 20 GB free storage allowance on MEGA accounts, but does not describe any paid plan for this server.
Is Mega free?
Yes. Mega is open source, so you can use and self-host it for free.
How do I add Mega to Claude Code?
Run this command in your terminal: claude mcp add mega -- npx -y mega-mcp-server
What are the best alternatives to Mega?
The closest alternatives to Mega are Filesystem, MCP Server Filesystem, Pandafile, Filesystem MCP and Pixeldrain.
Where this comes from
- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.