Gemini Image and Audio generation

by servicestack

Not rated
GitHub

About

MCP Server for Gemini Image and Audio generation

Details

Author
servicestack
Categories
Cloud Service, Other, AI, Infrastructure

Setup

Install Gemini Image and Audio generation in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/servicestack/gemini-gen-mcp

Follow the installation instructions in the repository README, then restart your MCP client.

MCP Server for Gemini Image and Audio generation

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

- Generate images from textusing Gemini's Flash Image model
- Generate audio from textusing Gemini 2.5 Flash Preview TTS model

git clone https://github.com/ServiceStack/gemini-gen-mcp.git cd gemini-gen-mcp pip install -e .

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

export GEMINI_API_KEY='your-api-key-here' export GEMINI_DOWNLOAD_PATH='/path/to/downloads' # optional

Generated files are organized by type and date:

- Images:$GEMINI_DOWNLOAD_PATH/images/YYYY-MM-DD/
- Audio:$GEMINI_DOWNLOAD_PATH/audios/YYYY-MM-DD/

Each generated file includes a companion.info.jsonfile with generation metadata.

SeeCLAUDE_CONFIG.mdfor detailed instructions.

Add this to your orclaude_desktop_config.json:

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

Or paste server configuration intollms .py MCP Servers:

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

For development, you can run this server usinguv:

{ "mcpServers": { { "command": "uv", "args": [ "run", "--directory", "/path/to/ServiceStack/gemini-gen-mcp", "gemini-gen-mcp" ], "env": { "GEMINI_API_KEY": "$GEMINI_API_KEY" } } } }

Generate images from text descriptions using Gemini's image generation models.

- prompt(string, required): Text description of the image to generate
- model(string, optional): Gemini model to use

- gemini-2.5-flash-image(default)
- gemini-3-pro-image-preview

- Supported:1:1,2:3,3:2,3:4,4:3,4:5,5:4,9:16,16:9,21:9

{ "prompt": "A serene mountain landscape at sunset with a lake", "model": "gemini-2.5-flash-image", "aspect_ratio": "16:9", "temperature": 1.0 }

Generate audio/speech from text using Gemini's TTS models. Output is saved as WAV format.

- text(string, required): Text to convert to speech
- model(string, optional): Gemini TTS model to use

- gemini-2.5-flash-preview-tts(default)
- gemini-2.5-pro-preview-tts

{ "text": "Hello, this is a test of the Gemini text to speech system.", "model": "gemini-2.5-flash-preview-tts", "voice": "Kore" }
# Clone the repository git clone https://github.com/ServiceStack/gemini-gen-mcp.git cd gemini-gen-mcp # Install in editable mode with dependencies pip install -e .
# Install test dependencies pip install pytest pytest-asyncio # Run tests 
bash # uv run pytest tests -v npm test ```

This project is licensed under the MIT License - see theLICENSEfile for details.

Contributions are welcome! Please feel free to submit a Pull Request.

For issues and questions, please use theGitHub Issuespage.

- Built withFastMCP
- Powered by
Google Gemini AI

- PyPI Package
-
GitHub Repository
-
Google AI Studio
-
MCP Documentation

Competitive intelligence platform with 24 tools — monitor competitor pricing, content, positioning, tech stacks, and how ChatGPT, Claude, and Gemini rank your brand.

Security-hardened NotebookLM MCP with post-quantum encryption, GDPR/SOC2 compliance, and 14 security layers. Query Google's Gemini-grounded research from any MCP-compatible AI assistant.

Interact with Google Cloud's Vertex AI Gemini models for coding assistance and general query answering.

An integrated MCP server combining Azure DevOps, Gmail, Browser, and Gemini AI functionalities on a Node.js server.

Atlas Cloud MCP Server (Image / Video / LLM APIs)

A powerful MCP server for AI image, video, and LLM APIs. Integrate models like Seedance and Nano Banana into your workflow with a simple, unified interface powered by Atlas Cloud.

MCP Server for full Easypanel control via Claude Code, Cursor and Claude Desktop.

A Model Context Protocol (MCP) server for managing app publishing on Huawei AppGallery Connect. Integrates directly with Claude Desktop or any MCP-compatible client.

Interact with Infactory APIs using Claude and other large language models.

Connect your Shopify store to Claude, Cursor, or Windsurf and get 100+ pre-calculated ecommerce metrics like net profit, blended CAC, per-channel ROAS, and customer LTV segments.

Administer Keycloak by managing users, realms, roles, and other resources through an LLM interface.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.