Gemini Media MCP logo

Gemini Media MCP

by mordor-forge

Generates and edits images, video, speech, and music through Google Gemini models over MCP.

Install Gemini Media MCP

Run the project’s own setup commands, in order.

Setup steps from the project

mordor-forge/gemini-media-mcp installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    mkdir -p ~/.local/bin   # must be on your PATH
    
  2. 2. Install
    curl -fsSL "https://github.com/mordor-forge/gemini-media-mcp/releases/latest/download/$os.$arch.gemini-media-mcp.tar.gz" \
         | tar -xz -C ~/.local/bin gemini-media-mcp
    
  3. 3. Add to Claude Code
    claude mcp add gemini-media -e GEMINI_API_KEY=... -- gemini-media-mcp
    
  4. 4. Add to VS Code
    code --add-mcp '{"name":"gemini-media","command":"gemini-media-mcp"}'
    
  5. 5. Check the setup
    gemini-media-mcp doctor   # checks credentials, backend and model availability
    
  6. 6. Start the server
    docker run -i --rm --user "$(id -u):$(id -g)" -e GEMINI_API_KEY -v "$PWD/media:/output" -v gemini-media-state:/state ghcr.io/mordor-forge/gemini-media-mcp
    

Overview

The mordor-forge/gemini-media-mcp MCP server exposes Google Gemini image, video, speech, and music generation through 12 MCP tools. It runs as a single Go binary over stdio or Streamable HTTP and supports either the Gemini API or Vertex AI. Use it for multi-step media workflows, including image editing and upscaling, asynchronous video jobs, TTS, music generation, and cost tracking. Outputs can be chained between tools using saved-file paths or gemini-media URIs.

Use cases

  • Generate reference-based product images
  • Upscale and restyle photographs
  • Create and extend narrated video clips
  • Produce dialogue WAV files and songs
  • Check model costs before media generation

Key features

  • Image generation, editing, and tiled upscaling
  • Veo and Gemini Omni Flash video workflows
  • Text-to-speech with 30 voices
  • Music generation with lyrics and structure tags
  • Model catalog, pricing, budgets, and usage tracking
  • Stdio and Streamable HTTP transports

Tools14

What Gemini Media MCP lets your agent do. Expand a tool for its parameters.

Self-reported~429 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

23/27 checks healthy over the last 111d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars14Stargazers on the source repository.
Last commit1mo agoMost recent push to the default branch.
Tools exposed14Callable tools this server registers over MCP.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How Gemini Media MCP works

What mordor-forge/gemini-media-mcp does

The mordor-forge/gemini-media-mcp MCP server connects agents to Google's generative media models for image, video, speech, and music work. It packages the functionality as a single Go binary and exposes 12 tools over MCP. The server can use a Gemini API key or Vertex AI credentials, making it suitable for local agent clients and HTTP deployments.

Image workflows include text-to-image generation with reference images, image edits such as restyling or relighting, and a two-step upscale process. tile_image plans crops locally, while stitch_tiles aligns edited tiles, matches color, blends overlaps, and writes a larger PNG. Video tools cover generation, job polling, extension, and edits to clips of up to 10 seconds. Speech generation produces WAV files with either one voice or a two-speaker dialogue. Music generation supports short clips or complete songs with lyrics, structure tags, tempo, instrumental mode, and image inspiration.

How it works

The mordor-forge/gemini-media-mcp MCP server returns saved output paths, gemini-media://files/<name> URIs, and estimated cost information. A URI from one result can be supplied to another tool, which supports chained production workflows. Clients that can access MCP resources can fetch generated files through resources/read; files larger than 64 MB remain on the server's disk.

Video generation is asynchronous. generate_video returns a job ID, and get_video waits for completion with long polling, using a 45-second default interval. Repeating the retrieval is supported. The server also reports progress notifications, includes retries and timeouts, writes files atomically with provenance, and detects the backend and credentials using Google SDK conventions.

Model and spending information is available through list_models, estimate_cost, and get_usage. The model catalog contains IDs, aliases, lifecycle information, parameters, and prices. A YAML catalog can be overridden or extended and is hot-reloaded. Session, daily, and monthly budgets can limit spending, while requests above a configured threshold can require approval.

Setup and configuration

Install the binary from a release on macOS, Linux, or Windows, install it with Go 1.26 or later, or use the supplied Docker image. The Claude Desktop bundle and Gemini CLI extension include the binary. Configure either GEMINI_API_KEY for Google AI Studio or Vertex AI with GOOGLE_CLOUD_PROJECT and Google Application Default Credentials. GOOGLE_API_KEY and GOOGLE_CLOUD_LOCATION are also supported in client environment configuration.

The server works with stdio and Streamable HTTP. Client-specific installation instructions are provided for Claude Desktop, Claude Code, Codex, Gemini CLI, VS Code/Copilot, Cursor, and Windsurf. If a desktop client cannot find the executable, configure its full filesystem path. The configure --api-key-stdin command can store an API key when a client does not forward environment variables, and doctor checks credentials, backend selection, and model availability.

Tools and capabilities

  • Generate images with up to 14 references, multiple aspect ratios, 1K–4K output, variations, and optional Google Search grounding.
  • Edit images while preserving unaffected content, or plan and assemble tiled upscales up to 16K targets.
  • Generate Veo or Gemini Omni Flash video from text, frames, or references, then poll, extend, or edit the result.
  • Produce 30-voice speech output and music with lyrics, structure, tempo, or instrumental settings.
  • Inspect model availability, estimate prices, review usage, and inspect active configuration.

Limitations and notes

Model capabilities and limits vary by backend and selected model. Veo clips are 4–8 seconds, while Gemini Omni Flash supports 3–10 seconds and up to 4K output according to the tool description. Omni extensions add up to 10 seconds, and Veo extensions add about 7 seconds. Video generation and retrieval require handling asynchronous jobs.

The server depends on Google model access, valid credentials, and the applicable model availability or pricing. HTTP deployments should account for file access and authentication in the surrounding environment. Large upscale outputs may stay on the server rather than being readable through MCP resources. The project is licensed under Apache-2.0.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Gemini Media MCP

mordor-forge/gemini-media-mcp is an MCP server that connects agents to Google's Gemini API or Vertex AI for media generation. Its main tools generate and edit images, create and manage video jobs, synthesize speech, generate music, inspect models, estimate costs, review usage, and read active configuration.

Install a platform release, use Go 1.26 or later with go install, or run the Docker image. Claude Desktop and Gemini CLI packages include the binary. Then add gemini-media-mcp to the MCP client configuration and provide the required Google credentials.

Yes, mordor-forge/gemini-media-mcp works with Cursor through an mcpServers-style configuration. Set the command to gemini-media-mcp and provide GEMINI_API_KEY, or configure the relevant Vertex AI environment variables.

Use Vertex AI by setting GOOGLE_CLOUD_PROJECT, authenticating with Google Application Default Credentials, and configuring GOOGLE_CLOUD_LOCATION when needed. The server detects the backend and chooses locations per model.

Video generation returns a job ID first. Call get_video to wait for completion and download the result; polling uses long polling with a 45-second default. Generated clips can then be extended or edited with the corresponding video tools.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGemini Media MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mordor-forge-gemini-media-mcp?style=directory)](https://allmcps.com/mcp/mordor-forge-gemini-media-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/mordor-forge-gemini-media-mcp"><img src="https://allmcps.com/api/badge/mordor-forge-gemini-media-mcp?style=directory" alt="Gemini Media MCP on AllMCPs" /></a>