mega-claude-connector
A Mega.nz MCP server and Claude-powered CLI for managing your cloud storage with AI.
Features
- MCP server — plug directly into Claude Code or Claude.ai so Claude can browse, upload, download, search, and manage your Mega.nz files as tools
- CLI — interactive chat interface powered by Claude for natural-language file management
Installation
pip install mega-claude-connector
Setup
Credentials are stored locally on your machine at ~/.config/mega-claude-connector/config and are never included in this package.
On first run you will be prompted:
First-time setup — credentials stored only in ~/.config/mega-claude-connector/config
Mega.nz email: your@email.com
Mega.nz password: ••••••••
Anthropic API key: sk-ant-... # only needed for the CLI, not the MCP server
Or set environment variables instead:
export MEGA_EMAIL=your@email.com
export MEGA_PASSWORD=yourpassword
export ANTHROPIC_API_KEY=sk-ant-... # CLI only
Usage
CLI
mega-claude
Example prompts:
list all my filesshow storage usagesearch for invoicesupload /home/user/report.pdfcreate a folder called Backupsdownload photo.jpg to /tmp
MCP Server
mega-claude-mcp
Add to your Claude Code MCP config (~/.claude/settings.json):
{
"mcpServers": {
"mega": {
"command": "mega-claude-mcp",
"env": {
"MEGA_EMAIL": "your@email.com",
"MEGA_PASSWORD": "yourpassword"
}
}
}
}
Available MCP Tools
| Tool | Description |
|---|---|
mega_storage_info |
Get storage usage and quota |
mega_list_files |
List files and folders |
mega_search |
Search by name |
mega_upload |
Upload a local file |
mega_download |
Download a file |
mega_create_folder |
Create a folder |
mega_delete |
Delete a file or folder |
Requirements
- Python 3.11+
- Mega.nz account
- Anthropic API key (CLI only)
License
MIT
Metadata
Release files for mega-claude-connector 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mega_claude_connector-0.1.9.tar.gz | 18.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mega_claude_connector-0.1.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 40.3 kB
Release files / mega_claude_connector-0.1.9.tar.gz
| Download URL | mega_claude_connector-0.1.9.tar.gz |
|---|---|
| Size | 18.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8cbb231cb15ef794c7babef01b87525b701d4ecc9b06c218a3199e76a322a534
|
|
BLAKE2b-256 checksum How to use checksums |
d14c56501699c006a27c7cf24bba800fc0c25a80e418d3983f8d348792fc9f9a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / mega_claude_connector-0.1.9-py3-none-any.whl
| Download URL | mega_claude_connector-0.1.9-py3-none-any.whl |
|---|---|
| Size | 21.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2a6b54f8e068d07a12defae68241e2477d7745927989ea87ef3b544a9710bbaa
|
|
BLAKE2b-256 checksum How to use checksums |
11acec1d8d7e5d69668f893afd6941bbe1fde56c35ba1bab1352644b745a95af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Security for mega-claude-connector 0.1.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.