drio
Open app

Gemini Flash MCP - Image Generation for Roo Code

Source

MCP server for Google Gemini 2.0 Flash image generation

Catalog onlyCatalog onlySTDIO

Overview

Gemini Flash MCP is a Model Context Protocol (MCP) server designed for connecting to Google's Gemini 2.0 Flash image generation model, specifically tailored for use with Roo Code and other MCP-compatible AI assistants.

To use Gemini Flash MCP, install the package globally or clone the repository, set up your Google AI API key, and utilize the generate_image tool in Roo Code or other compatible assistants to generate images based on text prompts.

  • Text-to-image generation using Google's Gemini 2.0 Flash model - Full support for all available API parameters - Simple web interface for testing and demonstration - Easy installation for Roo Code and Claude Desktop - Comprehensive documentation and examples
  1. Generating images from textual descriptions for creative projects.
  2. Assisting developers in integrating image generation capabilities into their applications.
  3. Providing a testing platform for AI assistants to demonstrate image generation features.

Add to your AI client

Use these steps to connect Gemini Flash MCP - Image Generation for Roo Code in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "gemini-image-generation-mcp-jezweb": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-gemini-image-generation-mcp-jezweb"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "gemini-image-generation-mcp-jezweb": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-gemini-image-generation-mcp-jezweb"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "gemini-image-generation-mcp-jezweb": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-gemini-image-generation-mcp-jezweb"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "gemini-image-generation-mcp-jezweb": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-gemini-image-generation-mcp-jezweb"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "gemini-image-generation-mcp-jezweb": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-gemini-image-generation-mcp-jezweb"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "gemini-image-generation-mcp-jezweb": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-gemini-image-generation-mcp-jezweb"
      ]
    }
  }
}

FAQ

What are the prerequisites for installation?

You need Node.js 18 or higher and a Google AI Studio API key with access to the Gemini 2.0 Flash model.

How do I troubleshoot API key issues?

Verify your API key is correct and ensure you have access to the Gemini 2.0 Flash model.

Is there a web interface available?

Yes, a web interface is available for testing the image generation.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":2867,"uuid":"f8890473-ad7d-4b83-8632-d21b25cec055","name":"gemini-image-generation-mcp","title":"Gemini Flash MCP - Image Generation for Roo Code","description":"MCP server for Google Gemini 2.0 Flash image generation","avatar_url":"https://avatars.githubusercontent.com/u/13249054?v=4","created_at":"2025-03-15T13:56:00.674Z","updated_at":"2025-03-15T14:14:45.206Z","status":"created","author_name":"jezweb","author_avatar_url":"https://avatars.githubusercontent.com/u/13249054?v=4","tags":"[]","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/jezweb/gemini-image-generation-mcp","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"4\",\"license\":\"MIT license\",\"language\":\"HTML\",\"is_official\":false,\"latest_commit_time\":\"2025-03-19 14:18:54\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]