mega-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MEGA_LINK | No | Default public MEGA link so tools work without repeating it. Per-call link args override it. | |
| OPENAI_API_KEY | No | Required if MEGA_TRANSCRIBE is 'openai'. Your OpenAI API key or compatible endpoint key. | |
| MEGA_TRANSCRIBE | No | Transcription backend to enable. Values: 'openai' or 'command'. If not set, transcription is disabled. | |
| OPENAI_BASE_URL | No | Optional base URL for OpenAI-compatible API. | https://api.openai.com/v1 |
| MEGA_MAX_PDF_BYTES | No | Max bytes to download for a PDF before extracting text. | 25000000 |
| MEGA_MAX_READ_BYTES | No | Max bytes to download for a text-file read / content search. | 2000000 |
| MEGA_TRANSCRIBE_CMD | No | Required if MEGA_TRANSCRIBE is 'command'. Shell command where {input} is replaced by audio chunk path; stdout is transcript. | |
| MEGA_TRANSCRIBE_MODEL | No | Optional model to use for OpenAI transcription. | whisper-1 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| mega_browseA | List files and folders in a public MEGA folder link. Use |
| mega_searchA | Search a public MEGA link's entire tree for files/folders whose name matches a query (case-insensitive substring, or regex with |
| mega_read_fileA | Download and return the text contents of a file. PDFs are extracted to text automatically. Provide either a |
| mega_search_contentA | Search inside text files and PDFs under a MEGA folder link for a query string (or regex). Returns matching files with line snippets. By default PDFs are included; set includePdf:false to skip them (faster). |
| mega_video_infoA | Probe a video or audio file's technical metadata (duration, resolution, codecs, bitrate, fps) using ffprobe. Streams only the header, not the whole file. Provide |
| mega_transcribeA | Transcribe spoken audio from a video/audio file to text, so it can be used as knowledge. OPT-IN: disabled unless a backend is configured via MEGA_TRANSCRIBE (openai or command) — see README. Audio is extracted and segmented with ffmpeg, then sent to the backend. The file is downloaded first; use |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 6 tools
Each tool targets a distinct operation: browsing folders, reading file contents, searching file names, searching file contents, transcribing audio, and extracting video metadata. There is no overlap, as even the two search tools are clearly separated by scope (names vs. content).
All tools share the 'mega_' prefix and use snake_case, but the pattern is slightly inconsistent: most are verb or verb_noun (browse, read_file, search, search_content, transcribe), while 'video_info' is a noun phrase. Otherwise predictable.
With 6 tools, the server is well-scoped for accessing public MEGA folders. Each tool serves a clear purpose, and the count is neither too sparse nor too heavy for the domain.
The tool set covers the core workflows for a read-only MEGA access server: browsing, reading text/PDF files, searching by name and content, transcribing audio, and probing video metadata. No obvious gaps exist for the intended use case.