Meganz Account Generator MCP
A minimal MCP-style JSON-over-stdio server in Rust for generating MEGA.nz accounts via the meganz-account-generator crate.
Ask AI about Meganz Account Generator MCP
Powered by Claude · Grounded in docs
I know everything about Meganz Account Generator MCP. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
What does this do? · Installation · Quick Start · Generating Accounts · Options · Other Commands · Troubleshooting · Contributing · Support · License
What does this do?
This tool lets you automatically generate MEGA.nz accounts from the command line. Instead of filling out the MEGA registration form manually, you can create one or more accounts in seconds with a single command.
It works as a lightweight server that you send requests to — useful for automation, testing, or bulk account creation.
Installation
You'll need Rust and Cargo installed. Then run:
cargo install meganz-account-generator-mcp
That's it! The meganz-account-generator-mcp command will now be available on your system.
Quick Start
The server uses the MCP protocol over stdio. You must complete the handshake (initialize → notifications/initialized) before calling tools.
1. Start the server:
cargo run
2. Copy-paste each line below and press Enter after each:
{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","clientInfo":{"name":"test","version":"1.0"},"capabilities":{}}}
{"jsonrpc":"2.0","method":"notifications/initialized"}
{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"mega/generate","arguments":{"count":1,"password":"MyPassword123!"}}}
3. Example response (use structuredContent for clean JSON; content has a human-readable summary):
{
"content": [{"type":"text","text":"Generated 1 account."}],
"structuredContent": {"accounts":[{"email":"...","name":"...","password":"MyPassword123!"}]},
"isError": false
}
Generating Accounts
Use tools/call with name: "mega/generate" and arguments:
Generate a single account (default password)
{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"mega/generate","arguments":{}}}
Generate multiple accounts
{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"mega/generate","arguments":{"count":3}}}
Use a specific password
{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"mega/generate","arguments":{"count":2,"password":"MySecurePass!"}}}
Note: By default, up to 5 accounts can be generated per request. Initialize params must include
protocolVersion,clientInfo, andcapabilities; do not sendparams:{}for initialize.
Options
Using a proxy
If you need to route traffic through a proxy (e.g. for privacy or rate limiting):
# Via environment variable
MEGA_PROXY_URL=http://127.0.0.1:8080 cargo run
# Via command-line flag
cargo run -- --proxy-url http://127.0.0.1:8080
Other Commands
After the handshake (see Quick Start), you can list available tools. Server info is returned in the initialize response.
List available tools
{"jsonrpc":"2.0","id":2,"method":"tools/list"}
Troubleshooting
Account generation is failing
- Try using a proxy — MEGA may rate-limit requests from certain IP addresses.
I'm not seeing any output
- Make sure you're sending newline-delimited JSON (each request on its own line).
- Check
stderror your log file for error messages.
How do I know it's working?
- If the initialize handshake returns a result, the server is running. Then send
notifications/initializedand callmega/generate.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/cool-feature) - Commit your changes (
git commit -m 'Add some cool feature') - Push to the branch (
git push origin feature/cool-feature) - Open a Pull Request
Support
If this crate saves you time or helps your work, support is appreciated:
License
This project is licensed under the MIT License; see the LICENSE for details.
