MEGA Hub
MEGA

Welcome to the MEGA MCP Server

Connect assistants to the models, datasets, and spaces your account can access.

Connection primer

Start a trusted session

Point a compatible client at MEGA, then approve the smallest useful scope set.

OAuth required
01
Set the endpoint

Use this remote Streamable HTTP URL in your client.

https://mega.tensorplay.cn/mcp
02
Authorize in MEGA

Your client opens the real MEGA permission screen. Read access is selected by default.

03
Elevate only when needed

Choose Write, Full, or a custom scope set in settings or during authorization.

Setup with your AI assistant

One OAuth connection, focused domain tools. Skills route each task to MCP or the MEGA CLI.

Add the remote server, then complete OAuth login in the browser.

Terminal
codex mcp add mega --url 'https://mega.tensorplay.cn/mcp'
codex mcp login mega

Focused domain tools

Each tool has a typed, bounded purpose and explicit read, write, or destructive behavior.

MCP documentation
23 tools, always discoverableGranted OAuth scopes control which actions can complete.
01IdentityShow the connected MEGA account, organizations, role, and scopes.mega_whoami
02Model searchFind ranked model repositories with typed filters.model_search
03Dataset searchFind ranked dataset repositories with typed filters.dataset_search
04Space searchFind ranked MEGA Spaces with typed filters.space_search
05Repository searchSearch models, datasets, and Spaces through one shared contract.hub_repo_search
06Model detailsRead normalized metadata and bounded model-card context.model_details
07Dataset detailsRead normalized metadata and bounded dataset-card context.dataset_details
08Repository detailsInspect up to ten canonical repositories.hub_repo_details
09MEGA filesystemList, read, or stat bounded mega:// repository paths.mega_fs
10Filesystem writeWrite or remove one verified repository file.mega_fs_write
11Create repositoryCreate or server-side duplicate a model, dataset, or Space.create_repo
12Paper searchSearch MEGA research papers.paper_search
13Paper detailsInspect one paper by arXiv identifier.paper_details
14Duplicate SpaceCopy a Space to a new canonical destination.duplicate_space
15Space informationList Spaces and their runtime-oriented links.space_info
16Space runtimeInspect runtime state, bounded logs, and environment keys.space_runtime
17Space filesBrowse a bounded Space repository file listing.space_files
18Manage SpacePause or restart a verified Space.manage_space
19Use SpaceOpen the current browser access URL for a Space.use_space
20Dynamic SpaceInspect and invoke a running Gradio Space's MCP tools.dynamic_space
21MEGA JobsList, inspect, run, cancel, and schedule Jobs.mega_jobs
22Documentation searchSearch ranked current MEGA guidance.mega_doc_search
23Documentation fetchFetch one canonical guide in bounded Markdown chunks.mega_doc_fetch

Protocol path

Focused tools, full platform

MEGA domain tools provide stable contracts for live platform work. OAuth scopes and Hub policy enforce the connection boundary.

01model_search, dataset_search, and space_search discover canonical resources.02hub_repo_details and mega_fs read bounded context.03dynamic_space, mega_jobs, and focused write tools perform explicit actions.