Skip to main content

Mega.nz MCP server and Claude-powered CLI for cloud storage management

Project description

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 files
  • show storage usage
  • search for invoices
  • upload /home/user/report.pdf
  • create a folder called Backups
  • download 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mega_claude_connector-0.1.5.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mega_claude_connector-0.1.5-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file mega_claude_connector-0.1.5.tar.gz.

File metadata

  • Download URL: mega_claude_connector-0.1.5.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for mega_claude_connector-0.1.5.tar.gz
Algorithm Hash digest
SHA256 f5c95e44ec587e6c9b26b4e3d6abc8f999eb4937efd8537e7513a53294c0ae56
MD5 dcdbfc7b624d3951fdcf5799c8797c81
BLAKE2b-256 2baae70b0f86ef5c7c5fe9009bf3b33ff5fc8a38fa543e64337f763330456db1

See more details on using hashes here.

File details

Details for the file mega_claude_connector-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for mega_claude_connector-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f904fb65fe58b8d41beaa9d649e91b7e79fb8404d49201f9d555117ca1ec7df7
MD5 9833e4ed1efe3bf16f1b33b0bdb0e95f
BLAKE2b-256 ae7e949778ad26449ba8cad2183db898d01ded90abdb4e0e4cc897c8acb68db2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page