image-mcp
Provides image generation and editing through the Google Gemini API, including text-to-image generation, image editing/stylization, and background removal.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP Gemini Image — Image Generation for Claude Code
MCP server for generating and editing images via Google Gemini API. Works as a Claude Code plugin — the agent gets tools for creating illustrations directly in the project context.
Tools
Tool | Description |
| Text → Image. Generate from a text prompt |
| Image + Text → Image. Edit/stylize an existing image |
| Remove background. Methods: |
Related MCP server: Nano Banana MCP
Cost
Gemini 3 Pro Image Preview (
gemini-3-pro-image-preview): ~$0.134 / imageWith ~$290 credits ≈ 2,100 images
Setup
1. Clone / copy the project
cd ~/Developer/gemini-mcp2. Install dependencies and build
npm install
npm run build3. Get an API key
Create a key for your project
Make sure Gemini API is enabled
4. Connect to Claude Code
claude mcp add gemini-image \
--scope user \
-- node ~/Developer/gemini-mcp/build/index.jsThen add the API key to the config. Open ~/.claude.json and add env to the server configuration:
{
"mcpServers": {
"gemini-image": {
"type": "stdio",
"command": "node",
"args": ["/Users/yuraist/Developer/gemini-mcp/build/index.js"],
"env": {
"GEMINI_API_KEY": "AIza...",
"IMAGE_OUTPUT_DIR": "/Users/yuraist/Developer/gemini-mcp/output"
}
}
}
}5. Verify
Restart Claude Code and ask:
"What image tools do you have?"
The agent should see generate_image, edit_image, and remove_background.
Usage Examples
Generate illustrations
Example prompt for Claude Code:
"Analyze the onboarding screens. For each screen, suggest an illustration concept in a flat minimal style with pastel colors. Describe your idea, and after my approval, generate the images."
Iterative refinement
"Take the generated image /path/to/image.png and make the character friendlier, add soft shadows."
Style transfer from reference
"Here's a reference illustration [path]. Generate a set of illustrations in the same style for screens: Welcome, Features, Get Started."
Environment Variables
Variable | Description | Default |
| Google AI Studio API key | required |
| Directory for saving generated images |
|
Notes
Transparency: Gemini doesn't generate with transparent backgrounds. Use
remove_background(defaultmlmethod) after generation — it uses a local U2Net segmentation model for high-quality results. First run downloads model weights (~30 MB), subsequent runs are fast.Iterations: Feed the previous result through
edit_imagewith new instructions.Size: Supports up to 4K resolution. For different aspect ratios, add "landscape" / "portrait" to the prompt.
Rate limits: Paid tier 1 = 500 RPM. More than enough for most projects.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Generate and edit images (PNG, transparent, GIF, SVG) with GPT Image and Nano Banana models.
LLM chat, text tools, image generation, editing, batch image jobs, and asynchronous video generation
Edit images over MCP with object removal, background removal, and guided generative edits.
Generate and edit realistic images from a prompt. Returns the image and a download link.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables generating, editing, and manipulating images using Google Gemini Flash 2.5 through natural language prompts. Supports text-to-image generation, image editing, multi-image composition, and batch processing with direct file management.4MIT
- FlicenseNot gradedqualityCmaintenanceEnables image generation and editing using Google's Gemini models with support for model selection and custom aspect ratios. Users can generate high-quality images or modify existing ones through natural language prompts while controlling specific parameters like quality and dimensions.-
- AlicenseAqualityCmaintenanceEnables AI image generation and editing using Google's Gemini Multimodal Image APIs.61MIT
- AlicenseAqualityCmaintenanceEnables AI image generation and editing using Google's Gemini models via natural language, supporting multi-turn editing, search grounding, storyboards, icon sets, and video-to-image.511 npm1MIT