Server data from the Official MCP Registry
Official three-tool MCP server for MEGA models, datasets, Spaces, Jobs, and inference.
Official three-tool MCP server for MEGA models, datasets, Spaces, Jobs, and inference.
Remote endpoints: streamable-http: https://mega.tensorplay.cn/mcp
Valid MCP server (3 strong, 2 medium validity signals). No known CVEs in dependencies. Imported from the Official MCP Registry.
Endpoint verified · Requires authentication · 1 issue found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
This plugin requests these system permissions. Most are normal for its category.
Remote Plugin
No local installation needed. Your AI client connects to the remote endpoint directly.
Add this to your MCP configuration to connect:
{
"mcpServers": {
"io-github-ohtensorplay-mega-mcp-server": {
"url": "https://mega.tensorplay.cn/mcp"
}
}
}From the project's GitHub README.
Independent Model Context Protocol server for MEGA Hub. It exposes one stable surface across Cloudflare Worker, local Streamable HTTP, and stdio transports:
docs searches current official MEGA guidance.search resolves live OpenAPI operations.execute calls one documented Hub operation within the caller's OAuth scopes.Domain workflows live in Codex Skills. Large transfers, repository sync, Git,
streaming logs, interactive shells, and reproducible automation belong in the
mega CLI. MCP and CLI are parallel clients of the same Hub API; neither wraps
or depends on the other.
The official OAuth endpoint is:
https://mega.tensorplay.cn/mcp
It supports Streamable HTTP, OAuth 2.1 discovery, Dynamic Client Registration, PKCE, and direct bearer tokens for clients that manage their own credentials.
skills CLI.The MCP server, plugin, and Skills use independent repositories and release versions. The plugin pins a tested snapshot of the standalone Skills.
MEGA Hub remains the policy and data owner. Every execute request forwards the
caller's token to Hub, which enforces scopes, resource ownership, organization
policy, budgets, and billing.
The protected-resource document advertises these optional scopes:
repo:readrepo:writerepo:deletecommunity:writejobs:runinference:runaccount:keyswebhooks:manageThe initial OAuth challenge requests only repo:read. MEGA settings and the
actual authorization page share server-backed Read, Write, Full, and Custom
preferences. Inference remains available but is never enabled by default.
Tool availability is not authorization: all three tools are always visible, and the granted token scopes determine which API operations can succeed.
Legacy tools, bouquet, mix, and spaces URL parameters are rejected.
There are no compatibility aliases for the removed domain-specific tools.
execute accepts a structured method, /api/ path, query object, and optional
JSON body. It:
Use the CLI for larger payloads or streaming output.
| Mode | Entry point | Intended use |
|---|---|---|
| Cloudflare Worker | src/worker.ts | Hosted Streamable HTTP service |
| Local stdio | mega-mcp-server | Local agents and development |
| Local HTTP | mega-mcp-server-http | Self-hosting and integration tests |
| Container | Dockerfile | Portable stateless HTTP deployment |
No Durable Object is required. Streamable HTTP uses stateless JSON responses and creates one MCP server per request.
Requires Node.js 22 or newer.
DEFAULT_MEGA_TOKEN=mega_xxx \
npx -y @tensorplay/mega-mcp-server
{
"mcpServers": {
"mega": {
"command": "npx",
"args": ["-y", "@tensorplay/mega-mcp-server"],
"env": {
"DEFAULT_MEGA_TOKEN": "${MEGA_TOKEN}"
}
}
}
}
npm exec --yes --package=@tensorplay/mega-mcp-server -- mega-mcp-server-http
The endpoint is http://127.0.0.1:3000/mcp; health checks use /healthz, and
protected-resource metadata is available at
/.well-known/oauth-protected-resource/mcp.
codex mcp add mega-local \
--url http://127.0.0.1:3000/mcp \
--bearer-token-env-var MEGA_TOKEN
DEFAULT_MEGA_TOKEN is a local-development fallback and must not be configured
on a shared server.
docker build -t mega-mcp-server .
docker run --rm -p 3000:3000 mega-mcp-server
The runtime image is unprivileged and includes a /healthz health check.
401 with resource_metadata and a
read-only default scope request.Direct bearer tokens remain supported for local clients and automation.
| Variable | Default | Applies to | Purpose |
|---|---|---|---|
MEGA_API_BASE_URL | https://mega.tensorplay.cn | All | Optional MEGA Hub API override |
MEGA_API_TIMEOUT_MS | 12500 | All | Per-request Hub timeout |
MCP_PUBLIC_URL | Request origin | Worker | Canonical protected-resource URL |
DEFAULT_MEGA_TOKEN | unset | Local only | stdio token or local HTTP fallback |
HOST | 0.0.0.0 | Local HTTP | Listen address |
PORT | 3000 | Local HTTP | Listen port |
Only HTTPS Hub overrides are accepted outside localhost development.
wrangler.jsonc is a provider-neutral public template. For a real deployment,
copy it to an untracked environment-specific configuration and supply routes
and optional Hub overrides or service bindings there.
npm ci
npm run check
npx wrangler deploy --config /path/to/private-wrangler.jsonc
The optional HUB service binding avoids a public network hop. The optional
METRICS binding records method, tool, status, duration, and count only; it
never records tokens, arguments, file contents, or results.
npm ci
npm run typecheck
npm test
npm run deploy:dry-run
Security reports follow SECURITY.md. Contribution and release expectations are in CONTRIBUTING.md.
MIT
Be the first to review this server!
by Modelcontextprotocol · Developer Tools
Read, search, and manipulate Git repositories programmatically
by Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
by mcp-marketplace · Developer Tools
Create, build, and publish Python MCP servers to PyPI — conversationally.