Gemini 2.5 Flash Image▌
by nanameru
Gemini 2.5 Flash Image is an AI image generator for text-to-image creation, editing, and style transfer using artificial
Integrates with Google Gemini 2.5 Flash to provide text-to-image generation, image editing, composition, and style transfer capabilities with support for base64 and file path inputs.
Both formats append explainx.ai attribution and the canonical URL for this MCP server listing.
best for
- / Content creators needing quick image generation
- / Developers building image-focused applications
- / Artists experimenting with AI-assisted image editing
capabilities
- / Generate images from text descriptions
- / Edit existing images with natural language instructions
- / Compose new images from multiple input images
- / Transfer artistic styles between images
- / Save generated images to files or return as base64
what it does
Connects to Google's Gemini 2.5 Flash to generate, edit, compose, and apply style transfers to images using text prompts and existing images.
about
Gemini 2.5 Flash Image is a community-built MCP server published by nanameru that provides AI assistants with tools and capabilities via the Model Context Protocol. Gemini 2.5 Flash Image is an AI image generator for text-to-image creation, editing, and style transfer using artificial It is categorized under ai ml. This server exposes 4 tools that AI clients can invoke during conversations and coding sessions.
how to install
You can install Gemini 2.5 Flash Image in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
license
MIT
Gemini 2.5 Flash Image is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
readme
Gemini 2.5 Flash Image MCP
A Model Context Protocol (MCP) server for conversational image generation and editing with Google's Gemini 2.5 Flash Image Preview. Designed to be easy to install and use from Claude Code and other MCP clients.
Key Features
- Text-to-Image: Generate images from detailed prompts
- Image Editing: Edit images with natural language instructions
- Multi-Image Composition / Style Transfer: Combine images or transfer styles
- File Save Option: Return base64 image and optionally save to file
- Provider-Agnostic MCP: Works in any MCP-enabled client
Requirements
- Node.js 18 or newer
- An MCP client (Claude Code, Cursor, VS Code, Windsurf, etc.)
- Google Gemini API Key: set
GEMINI_API_KEY
Get a Gemini API key
Follow these steps to obtain an API key from Google AI Studio:
- Open Google AI Studio and sign in: https://aistudio.google.com/apikey
- Click “Create API key” (or “Manage keys” if you already have one)
- Copy the generated key
- Set it as an environment variable on your machine when running this server
Examples:
# macOS / Linux (bash/zsh)
export GEMINI_API_KEY="YOUR_API_KEY"
# Windows PowerShell
$env:GEMINI_API_KEY="YOUR_API_KEY"
Getting Started
First, install the MCP server with your client. The following examples center on Claude Code usage.
Standard config works in most tools:
{
"mcpServers": {
"gemini-2-5-flash-mcp": {
"command": "npx",
"args": ["@taiyokimura/gemini-2-5-flash-mcp@latest"]
}
}
}
Quick usage (Claude Code)
# npx(非対話フラグ付き) + APIキー同時指定(Claudeの -e 指定)
claude mcp add gemini-2-5-flash-mcp -s user -e GEMINI_API_KEY="YOUR_API_KEY" -- npx -y @taiyokimura/gemini-2-5-flash-mcp@latest
# グローバルインストール + APIキー同時指定(Claudeの -e 指定)
npm i -g @taiyokimura/gemini-2-5-flash-mcp \
&& claude mcp add gemini-2-5-flash-mcp -s user -e GEMINI_API_KEY="YOUR_API_KEY" -- gemini-2-5-flash-mcp
# HTTP モードで登録(SSE既定)例(対応クライアントのみ)
# ※ HTTP モードはこのプロセス自体がHTTPサーバとして常駐します
claude mcp add gemini-2-5-flash-mcp -s user \
-e GEMINI_API_KEY="YOUR_API_KEY" \
-e MCP_TRANSPORT="http" \
-e MCP_HTTP_PORT="7801" \
-e MCP_HTTP_PATH="/mcp" \
-- npx -y @taiyokimura/gemini-2-5-flash-mcp@latest
Streamable HTTP mode(実験的)
STDIO の代わりに Streamable HTTP を使うこともできます。MCP クライアントが Streamable HTTP に対応している場合のみ利用してください。
- サーバーを HTTP モードで起動
export MCP_TRANSPORT=http
export GEMINI_API_KEY=YOUR_API_KEY
# 任意(既定: 7801, /mcp, SSE)
export MCP_HTTP_PORT=7801
export MCP_HTTP_PATH=/mcp
export MCP_HTTP_ENABLE_JSON=false
npm run build
node ./build/index.js
# => HTTP transport listening on http://localhost:7801/mcp
- クライアント側設定(例: Streamable HTTP対応クライアント)
- Type: HTTP (Streamable)
- URL:
http://localhost:7801/mcp
注:
- SSE ストリーミングが既定。JSONレスポンスで使いたい場合は
MCP_HTTP_ENABLE_JSON=true。 - セッションはサーバー側で生成(stateful)。完全 stateless にしたい場合はコード側で
sessionIdGenerator: undefinedに変更可能です。
Use the Claude Code CLI to add the MCP server:
claude mcp add gemini-2-5-flash-mcp -s user -- npx @taiyokimura/gemini-2-5-flash-mcp@latest
Remove if needed:
claude mcp remove gemini-2-5-flash-mcp
</details>
<details>
<summary>Claude Desktop</summary>
Follow the MCP install guide and use the standard config above.
</details> <details> <summary>Cursor</summary>Go to Cursor Settings → MCP → Add new MCP Server.
Use the following:
- Name: gemini-2-5-flash-mcp
- Type: command
- Command: npx
- Args: @taiyokimura/gemini-2-5-flash-mcp@latest
- Auto start: on (optional)
Add via CLI:
code --add-mcp '{"name":"gemini-2-5-flash-mcp","command":"npx","args":["@taiyokimura/gemini-2-5-flash-mcp@latest"]}'
Or use the standard config in settings.
</details> <details> <summary>LM Studio</summary>Add MCP Server with:
- Command: npx
- Args: ["@taiyokimura/gemini-2-5-flash-mcp@latest"]
Advanced settings → Extensions → Add custom extension:
- Type: STDIO
- Command: npx
- Args: @taiyokimura/gemini-2-5-flash-mcp@latest
- Enabled: true
Example ~/.config/opencode/opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"gemini-2-5-flash-mcp": {
"type": "local",
"command": [
"npx",
"@taiyokimura/gemini-2-5-flash-mcp@latest"
],
"enabled": true
}
}
}
</details>
<details>
<summary>Qodo Gen</summary>
Open Qodo Gen → Connect more tools → + Add new MCP → Paste the standard config above → Save.
</details> <details> <summary>Windsurf</summary>Follow Windsurf MCP documentation and use the standard config above.
</details>Environment Variables
GEMINI_API_KEY(required)GEMINI_IMAGE_ENDPOINT(optional) default:https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash-image-preview:generateContentMCP_NAME(optional, default:gemini-2-5-flash-mcp)
Available Tools
1. generate_image
Generate an image from a text prompt.
Parameters:
prompt(required): Detailed description to generatesaveToFilePath(optional): Path to save the image
Example input:
{
"prompt": "Create a picture of a nano banana dish in a fancy restaurant with a Gemini theme",
"saveToFilePath": "./gemini-native-image.png"
}
2. edit_image
Edit an image using a prompt.
Parameters:
prompt(required): Edit instructionimage(required):{ dataBase64?: string, path?: string, mimeType?: string }saveToFilePath(optional)
Example input:
{
"prompt": "Add a small, knitted wizard hat to the cat",
"image": { "path": "./cat.jpeg", "mimeType": "image/jpeg" },
"saveToFilePath": "./gemini-edited-image.png"
}
3. compose_images
Combine elements from multiple images.
Parameters:
prompt(required)images(required): Array of image inputs (2-3 recommended)saveToFilePath(optional)
4. style_transfer
Transfer the style of one image to another.
Parameters:
prompt(optional)baseImage(required)styleImage(required)saveToFilePath(optional)
Development
Run locally:
npm install
npm run build
npx .
Name Consistency & Troubleshooting
- Always use CANONICAL_ID (
gemini-2-5-flash-mcp) for identifiers and keys. - Use CANONICAL_DISPLAY (
Gemini 2.5 Flash MCP) only for UI labels. - Do not mix different names across clients.
Consistency Matrix:
- npm package name →
gemini-2-5-flash-mcp - Binary name →
gemini-2-5-flash-mcp - MCP server name (SDK metadata) →
gemini-2-5-flash-mcp - Env default MCP_NAME →
gemini-2-5-flash-mcp - Client registry key →
gemini-2-5-flash-mcp - UI label →
Gemini 2.5 Flash MCP
Conflict Cleanup:
- Remove any old entries like "GeminiFlash" and re-add with
gemini-2-5-flash-mcp. - Ensure global registries only use
gemini-2-5-flash-mcpfor keys. - Cursor: configure in the UI only. This project does not include
.cursor/mcp.json.
References
- MCP SDK: https://modelcontextprotocol.io/docs/sdks
- Architecture: https://modelcontextprotocol.io/docs/learn/architecture
- Server concepts: https://modelcontextprotocol.io/docs/learn/server-concepts
- Server spec (2025-06-18): https://modelcontextprotocol.io/specification/2025-06-18/server/index
- Gemini image generation: https://ai.google.dev/gemini-api/docs/image-generation
FAQ
- What is the Gemini 2.5 Flash Image MCP server?
- Gemini 2.5 Flash Image is a Model Context Protocol (MCP) server profile on explainx.ai. MCP lets AI hosts (e.g. Claude Desktop, Cursor) call tools and resources through a standard interface; this page summarizes categories, install hints, and community ratings.
- How do MCP servers relate to agent skills?
- Skills are reusable instruction packages (often SKILL.md); MCP servers expose live capabilities. Teams frequently combine both—skills for workflows, MCP for APIs and data. See explainx.ai/skills and explainx.ai/mcp-servers for parallel directories.
- How are reviews shown for Gemini 2.5 Flash Image?
- This profile displays 54 aggregated ratings (sample rows for discoverability plus signed-in user reviews). Average score is about 4.6 out of 5—verify behavior in your own environment before production use.
Use Cases▌
Extended AI Capabilities
Add new capabilities to Claude beyond text generation
Example
Access external data sources, execute code, interact with tools and services
Transform Claude from chatbot to action-taking agent
Context Enhancement
Provide Claude with access to relevant context and data
Example
Load project documentation, access knowledge bases, query databases
Get more accurate, context-aware responses
Workflow Automation
Automate multi-step workflows combining AI and external tools
Example
Research → Summarize → Create document → Send notification
Complete complex tasks end-to-end without manual steps
Implementation Guide▌
Prerequisites
- ›Claude Desktop 0.7.0+ or Cursor IDE with MCP support
- ›Basic understanding of MCP architecture and capabilities
- ›Access credentials for integrated services (if required)
- ›Willingness to experiment and iterate on configuration
Time Estimate
15-60 minutes depending on server complexity
Installation Steps
- 1.Install MCP server: npm install -g [package-name] or via GitHub
- 2.Add server configuration to ~/.claude/mcp.json
- 3.Provide required credentials and configuration
- 4.Restart Claude Desktop to load new server
- 5.Test basic functionality with simple prompts
- 6.Explore capabilities and experiment with use cases
- 7.Document successful patterns for reuse
Troubleshooting
- ⚠MCP server not loading: Check config syntax, verify installation
- ⚠Connection errors: Check network, firewall, credentials
- ⚠Feature not working: Read server docs, check required parameters
- ⚠Performance issues: Monitor resource usage, check for network latency
- ⚠Conflicts with other servers: Check port assignments, namespace collisions
Best Practices▌
✓ Do
- +Read server documentation thoroughly before setup
- +Start with simple use cases to validate functionality
- +Test in non-production environment first
- +Monitor resource usage and performance
- +Keep servers updated for bug fixes and new features
- +Document configuration for team members
- +Use environment variables for sensitive configuration
✗ Don't
- −Don't grant overly permissive access to MCP servers
- −Don't skip reading security considerations in docs
- −Don't expose sensitive data without proper controls
- −Don't run untrusted MCP servers without code review
- −Don't ignore error messages—investigate root cause
💡 Pro Tips
- ★Combine multiple MCP servers for powerful workflows
- ★Create custom MCP servers for your specific needs
- ★Share successful configurations with team
- ★Use MCP inspector for debugging
- ★Join MCP community for tips and troubleshooting
Technical Details▌
Architecture
Model Context Protocol standardizes how AI hosts (Claude, Cursor) communicate with external tools and data sources through server implementations.
Protocols
- Model Context Protocol (MCP)
- JSON-RPC 2.0
- stdio or HTTP transport
Compatibility
- Claude Desktop
- Cursor IDE
- Custom MCP clients
When to Use This▌
✓ Use When
Use when you need Claude to access external data, execute actions, or integrate with tools. Best for extending AI capabilities beyond conversation.
✗ Avoid When
Avoid when native integrations exist (use official APIs directly), for real-time critical systems, or when security/compliance requires zero external dependencies.
Integration▌
- →Tool composition: Chain multiple MCP tools in workflows
- →Context augmentation: Provide AI with relevant external data
- →Action delegation: Let AI execute tasks on external systems
- →Bidirectional sync: Keep AI context and external systems in sync
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
List & Promote Your MCP Server
Share your MCP server with the developer community
Ratings
4.6★★★★★54 reviews- ★★★★★Soo Jain· Dec 20, 2024
I recommend Gemini 2.5 Flash Image for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
- ★★★★★Ama Sethi· Dec 20, 2024
Gemini 2.5 Flash Image reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
- ★★★★★Meera Farah· Dec 20, 2024
Strong directory entry: Gemini 2.5 Flash Image surfaces stars and publisher context so we could sanity-check maintenance before adopting.
- ★★★★★Chaitanya Patil· Dec 16, 2024
Gemini 2.5 Flash Image has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
- ★★★★★Ama Reddy· Dec 8, 2024
Gemini 2.5 Flash Image has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
- ★★★★★Rahul Santra· Nov 27, 2024
According to our notes, Gemini 2.5 Flash Image benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
- ★★★★★Advait Patel· Nov 27, 2024
We evaluated Gemini 2.5 Flash Image against two servers with overlapping tools; this profile had the clearer scope statement.
- ★★★★★Meera Garcia· Nov 19, 2024
According to our notes, Gemini 2.5 Flash Image benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
- ★★★★★Ama Taylor· Nov 11, 2024
Useful MCP listing: Gemini 2.5 Flash Image is the kind of server we cite when onboarding engineers to host + tool permissions.
- ★★★★★Mia Agarwal· Nov 11, 2024
Gemini 2.5 Flash Image is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
showing 1-10 of 54