Skip to main content
Glama
Anicodeth

mega-mcp

by Anicodeth

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MEGA_LINKNoDefault public MEGA link so tools work without repeating it. Per-call link args override it.
OPENAI_API_KEYNoRequired if MEGA_TRANSCRIBE is 'openai'. Your OpenAI API key or compatible endpoint key.
MEGA_TRANSCRIBENoTranscription backend to enable. Values: 'openai' or 'command'. If not set, transcription is disabled.
OPENAI_BASE_URLNoOptional base URL for OpenAI-compatible API.https://api.openai.com/v1
MEGA_MAX_PDF_BYTESNoMax bytes to download for a PDF before extracting text.25000000
MEGA_MAX_READ_BYTESNoMax bytes to download for a text-file read / content search.2000000
MEGA_TRANSCRIBE_CMDNoRequired if MEGA_TRANSCRIBE is 'command'. Shell command where {input} is replaced by audio chunk path; stdout is transcript.
MEGA_TRANSCRIBE_MODELNoOptional model to use for OpenAI transcription.whisper-1

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
mega_browseA

List files and folders in a public MEGA folder link. Use recursive to walk the entire tree, or path to scope into a subfolder. Returns name, path, type, and size for each entry.

mega_searchA

Search a public MEGA link's entire tree for files/folders whose name matches a query (case-insensitive substring, or regex with regex).

mega_read_fileA

Download and return the text contents of a file. PDFs are extracted to text automatically. Provide either a path within a folder link, or a direct file link. Other binary files are rejected. Text reads are capped at MEGA_MAX_READ_BYTES; PDFs at MEGA_MAX_PDF_BYTES.

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 path within a folder link or a direct file link.

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 maxMinutes to transcribe only the start of a long file.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

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