Gemini Gen MCP Server

MCP Server for Gemini Image and Audio generation using Google's Gemini AI models.

Local serverstdioPython

What is the Gemini Gen MCP MCP server?

MCP Server for Gemini Image and Audio generation using Google's Gemini AI models. That is what the gemini gen mcp mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.

The short version

  • Generate images from text — using Gemini's Flash Image model
  • Generate audio from text — using Gemini 2.5 Flash Preview TTS model

The tools it exposes

The server publishes 2 tools. What each one is for:

  • text_to_image — Generate images from text descriptions using Gemini's image generation models
  • text_to_audio — Generate audio/speech from text using Gemini's TTS models. Output is saved as WAV format

Getting it running

The server ships on PyPI as gemini-gen-mcp, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

What it needs from you

Configuration is passed through the environment: GEMINI_API_KEY, GEMINI_DOWNLOAD_PATH. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

You need a Google Gemini API key to use this server. Get one from Google AI Studio.

How it compares

Among the AI and media services options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Gemini Gen MCP's toolset — text_to_image, text_to_audio — is a fair guide to whether it matches your workflow. It is maintained by servicestack; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Gemini Gen MCP's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
text_to_imageGenerate images from text descriptions using Gemini's image generation models.
text_to_audioGenerate audio/speech from text using Gemini's TTS models. Output is saved as WAV format.

How to install the Gemini Gen MCP MCP server

{
  "mcpServers": {
    "gemini-gen": {
      "description": "Gemini Image and Audio TTS generation",
      "command": "uvx",
      "args": [
        "gemini-gen-mcp"
      ],
      "env": {
        "GEMINI_API_KEY": "$GEMINI_API_KEY"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

You need a Google Gemini API key to use this server. Get one from Google AI Studio.

VariableDescriptionRequired
GEMINI_API_KEYCredential the server authenticates with.Yes
GEMINI_DOWNLOAD_PATHFilesystem location the server is allowed to use.Optional

Example prompts to try

  • Use Gemini Gen MCP to text to image.
  • Use Gemini Gen MCP to text to audio.

Frequently asked questions

It connects Gemini Gen MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 2 tools (text_to_image, text_to_audio) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Gemini Gen MCP directly.