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 |
Capabilities
Features and capabilities supported by this server
| 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 | |
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Anicodeth/mega-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server