npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@purplesquirrel/mega-mcp-server

v1.0.3

Published

MCP server for MEGA cloud storage CLI

Downloads

310

Readme

License: MIT

npm version npm downloads License: MIT

MCP MEGA CI OpenSSF Scorecard

MEGA Cloud Storage MCP Server

MCP server for MEGA cloud storage integration with Claude Code. Provides comprehensive file management, synchronization, and sharing capabilities using MEGAcmd.

Features

  • File Management - List, copy, move, delete files and folders
  • Upload/Download - Transfer files between local and cloud
  • Sharing - Create public links and share with other users
  • Sync - Set up folder synchronization
  • Storage Info - View usage and quotas

Available Tools (18 total)

Account & 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 remote path |

File Operations

| Tool | Description | |------|-------------| | mega_ls | List files and folders | | mega_mkdir | Create a directory | | mega_rm | Remove files or folders | | mega_mv | Move or rename files/folders | | mega_cp | Copy files/folders | | mega_cat | Display contents of a remote file | | mega_tree | Show directory tree structure | | mega_find | Search for files/folders |

Transfer

| Tool | Description | |------|-------------| | mega_get | Download files to local filesystem | | mega_put | Upload files to MEGA cloud | | mega_transfers | Show current transfers | | mega_sync | Set up folder synchronization |

Sharing

| Tool | Description | |------|-------------| | mega_export | Create a public link | | mega_share | Share folder with another user | | mega_import | Import a public MEGA link |

Setup

1. Prerequisites

Install MEGAcmd from https://mega.io/cmd

On macOS:

brew install --cask megacmd

Login to your MEGA account:

mega-login [email protected] password

2. Install Dependencies

cd ~/mcp-servers/mega-mcp
npm install
npm run build

3. Add to Claude Code

Add to ~/.claude.json:

{
  "mcpServers": {
    "mega": {
      "type": "stdio",
      "command": "node",
      "args": ["/Users/matthewkarsten/mcp-servers/mega-mcp/dist/index.js"]
    }
  }
}

Architecture

Claude Code (Opus 4.5)
         │
         └──▶ MEGA MCP Server
                    │
                    └──▶ MEGAcmd CLI
                              │
                              └──▶ MEGA Cloud Storage
                                        │
                                        ├── 20 GB Free Storage
                                        ├── End-to-End Encryption
                                        ├── File Versioning
                                        └── Sharing & Sync

MEGA Features

  • End-to-End Encryption - All files encrypted client-side
  • 20 GB Free Storage - Free tier included
  • File Versioning - Automatic version history
  • Cross-Platform Sync - Desktop and mobile apps
  • Public Links - Share files with anyone
  • Folder Sharing - Collaborate with other MEGA users

Usage Examples

User: Show my MEGA storage usage

Claude: [Uses mega_df tool]
Result:
Account: [email protected]
Used: 2.3 GB of 20 GB (11.5%)
Available: 17.7 GB

User: List files in my Documents folder

Claude: [Uses mega_ls tool with path=/Documents]
Result:
- project-files/
- presentations/
- backup.zip (156 MB)
- notes.txt (2.3 KB)

User: Create a public link for backup.zip

Claude: [Uses mega_export tool]
Result: https://mega.nz/file/xxxxx#yyyyy

Transfer Features

Upload

User: Upload ~/reports/ to MEGA

Claude: [Uses mega_put tool]
Uploading 15 files...
Completed: ~/reports/ -> /reports/

Download

User: Download /Documents/backup.zip

Claude: [Uses mega_get tool]
Downloaded: /Documents/backup.zip -> ~/Downloads/backup.zip

Sync

User: Set up sync between ~/Projects and /Projects

Claude: [Uses mega_sync tool]
Sync established: ~/Projects <-> /Projects

Files

mega-mcp/
├── src/
│   └── index.ts    # MCP server implementation
├── dist/           # Compiled JavaScript
├── package.json
├── tsconfig.json
└── README.md

Dependencies

  • @modelcontextprotocol/sdk - MCP SDK
  • MEGAcmd - MEGA command-line client

Security

  • All data encrypted with your account key
  • Zero-knowledge encryption (MEGA can't read your files)
  • Two-factor authentication supported
  • Session-based authentication via MEGAcmd

Author

Matthew Karsten

License

MIT

💜 Support This Project

If this MCP server is useful to you, consider supporting its development:

GitHub Sponsors Buy Me a Coffee

Enterprise support available - Contact us for SLAs, custom development, and priority support.