SuperAPIAI Directory

gemini-media-mcp

github.com · AI images

Gemini media generation: Nano Banana images and editing, Veo video, text-to-speech and Lyria music, via the Gemini API or Vertex AI.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux

About this tool

Purpose: To provide AI agents with unified media generation capabilities, covering four categories of Google generative media models—image, video, speech, and music—and can be integrated as an MCP server into various MCP-supporting clients.

Main capabilities: The built-in model catalog records IDs, aliases, lifecycle, parameters, and prices; retired models are automatically redirected to replacement models; new model IDs can be used before the catalog is updated; and the catalog can be overridden or extended via hot-reloaded YAML. Each call returns an estimated cost, and estimate_cost allows comparing options before spending; expenditures are recorded in a ledger and are subject to session, daily, and monthly budget limits, with explicit approval required when thresholds are exceeded. Image results include inline previews, and outputs can be chained via URI; videos run as asynchronous tasks, supporting long polling and progress notifications. It comes with six Agent Skills, covering each media type, multi-asset production, and upscaling beyond 4K (re-rendering in tiles and stitching into an 8K image).

How to use: Credentials must first be obtained, either an optional Google AI Studio API key (GEMINI_API_KEY), or a Google Cloud project with Vertex AI enabled (GOOGLE_CLOUD_PROJECT plus gcloud auth application-default login). To install the binary, on macOS/Linux download the release package and extract it into PATH, on Windows download the zip, or use go install github.com/mordor-forge/gemini-media-mcp/cmd/gemini-media-mcp@latest. Then add the server to the client, for example Claude Code with claude mcp add gemini-media -e GEMINI_API_KEY=... -- gemini-media-mcp, Codex configured in ~/.codex/config.toml, Gemini CLI with gemini extensions install https://github.com/mordor-forge/gemini-media-mcp,VS Code/Copilot with code --add-mcp, and Cursor, Windsurf, etc. using mcpServers configuration. If the client does not forward environment variables, you can store the key with gemini-media-mcp configure --api-key-stdin, and use gemini-media-mcp doctor to check credentials, backend, and model availability. It can also be run with Docker.

Use cases: Developers and teams that need to generate or edit images, generate videos, speech, and music in agent workflows, and want to control costs and budgets.

Limitations: Google will shut down Veo 3.1 preview and gemini-omni-flash-preview on the Gemini API on 2026-10-22, after which the server will switch to omni; Veo 3.1 will still be available on Vertex AI. On Vertex, when there is only an API key and no project, express mode is used, and video is not supported. Costs are estimates; if a hard stop is needed, limits must also be set in AI Studio or Cloud Billing. HTTP mode is stateless Streamable HTTP, has security restrictions by default, and requires a token for non-loopback addresses.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools