PixelForge MCP
Provides AI-powered image generation, editing, analysis, and transformation using Google's Gemini and Imagen 4 models.
Enables advanced features like image upscaling (x2/x4) and advanced editing modes (inpainting, outpainting, background swap, style transfer) via Vertex AI.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@PixelForge MCPgenerate an image of a serene lake at sunset with mountains in the background"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
PixelForge MCP
An MCP server for AI-powered image generation, editing, analysis, and transformation using Google's Gemini and Imagen 4 models.
Features
21 MCP tools for image generation, editing, analysis, transformation, and more
6 models including Gemini image models and Imagen 4 family
Quality presets (fast/balanced/quality) for simplified model selection
Parallel multi-image generation via asyncio.gather
Image transforms — crop, resize, rotate, flip, blur, sharpen, grayscale, watermark
Prompt template library — 24 curated templates across 10 categories
Generation history — full audit trail with search and pagination
Batch processing — generate up to 10 images in parallel
Optional Vertex AI — upscaling (x2/x4) and advanced editing modes
Thinking mode & grounding — extended reasoning and Google Search for analysis
14 aspect ratios (including panoramic) and temperature control
Async-first architecture with full Pydantic validation
EXIF metadata embedding (prompt, model, timestamp)
Related MCP server: Gemini Gen MCP
Quick Start
Requirements: Python 3.10+ and a Google API key
Install
pipx install pixelforge-mcpConfigure
Claude Code
claude mcp add pixelforge --scope user -e GOOGLE_API_KEY="your-key" -- pixelforge-mcpCursor
Add to .cursor/mcp.json:
{
"mcpServers": {
"pixelforge": {
"command": "pixelforge-mcp",
"env": {
"GOOGLE_API_KEY": "your-key"
}
}
}
}VS Code
code --add-mcp '{"name":"pixelforge","command":"pixelforge-mcp","env":{"GOOGLE_API_KEY":"your-key"}}'Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"pixelforge": {
"command": "pixelforge-mcp",
"env": {
"GOOGLE_API_KEY": "your-key"
}
}
}
}Kiro
kiro-cli mcp add --name pixelforge --scope global --command pixelforge-mcp --env "GOOGLE_API_KEY=your-key"Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"pixelforge": {
"command": "pixelforge-mcp",
"env": {
"GOOGLE_API_KEY": "your-key"
}
}
}
}Restart Claude Desktop after saving.
Use
Ask Claude to generate, edit, or analyze images — all 21 tools are available automatically.
Available Tools
Generation
Tool | Description |
| Generate images from text (6 models, 14 aspect ratios, quality presets, parallel multi-image) |
| Modify existing images with text prompts |
| Remove image background (transparent or white) |
| Crop, resize, rotate, flip, blur, sharpen, grayscale, or watermark |
| Generate up to 10 images in parallel from multiple prompts |
Analysis
Tool | Description |
| AI-powered image description with optional grounding |
| OCR — extract text with confidence levels |
| Detect objects with bounding boxes |
| Compare 2-10 images for differences |
Utility
Tool | Description |
| Enhance prompts for better image generation (14 styles) |
| Calculate generation costs per model/operation |
| Browse 24 curated prompt templates across 10 categories |
| Fill a template with your subject for a ready-to-use prompt |
| Model capabilities, speed, quality, and selection guidance |
| Server configuration and status |
History
Tool | Description |
| Browse generation history with pagination and filtering |
| Get full details of a specific generation |
Vertex AI (Optional)
Tool | Description |
| Upscale images x2 or x4 (requires Vertex AI) |
| Inpainting, outpainting, background swap, style transfer (requires Vertex AI) |
Model Selection
PixelForge supports per-request model switching with 6 models:
Gemini Models (via Gemini API)
Use case | Model | Why |
Fast iterations |
| Cheapest, lowest latency |
Panoramic & grounded |
| 1:4/4:1/1:8/8:1, web+image grounding |
Max text fidelity |
| ~94% accuracy, complex multi-turn edits |
Imagen 4 Models (via Gemini API)
Use case | Model | Why |
Cost-effective batch |
| $0.04/img, excellent quality |
Cheapest generation |
| $0.02/img, fastest |
Maximum quality |
| $0.06/img, best output |
Quality Presets
Instead of choosing a model manually, use quality presets:
generate_image(prompt="...", quality="fast") # gemini-2.5-flash-image
generate_image(prompt="...", quality="balanced") # gemini-3.1-flash-image-preview + 1K
generate_image(prompt="...", quality="quality") # gemini-3-pro-image-preview + 2KVertex AI (Optional)
For advanced features like image upscaling and specialized editing modes:
Set up a Google Cloud project with Vertex AI enabled
Set the environment variable:
GOOGLE_CLOUD_PROJECT=your-project-idInstall the Vertex AI dependency:
pip install pixelforge-mcp[vertex]
PixelForge auto-detects Vertex AI credentials and unlocks upscale_image and advanced_edit tools.
Supported Aspect Ratios
Ratio | Description |
| Square (default) |
| Widescreen landscape |
| Mobile portrait |
| Classic portrait |
| Classic landscape |
| Portrait |
| Traditional landscape |
| Instagram portrait |
| Medium format |
| Ultrawide |
| Tall panoramic* |
| Wide panoramic* |
| Extra tall panoramic* |
| Extra wide panoramic* |
* Panoramic ratios require gemini-3.1-flash-image-preview model
Troubleshooting
"Invalid API key" or "Authentication failed"
Double-check your Google API key is correct and has access to the Gemini API. Get a key at Google AI Studio.
"Command not found: pixelforge-mcp"
Ensure the pipx bin directory is in your PATH:
export PATH="$HOME/.local/bin:$PATH""Server not starting"
Check that pixelforge-mcp is installed:
pipx list | grep pixelforgeVertex AI features not available
Ensure GOOGLE_CLOUD_PROJECT is set and google-cloud-aiplatform is installed:
pip install pixelforge-mcp[vertex]Documentation
Configuration Guide — detailed setup and environment options
Changelog — version history
Contributing
See CONTRIBUTING.md for development setup, code standards, and pull request guidelines.
License
Acknowledgments
Built with FastMCP, Pydantic, and google-genai.
Author
Ahmed Al-Eryani @ Tehnolabs
PixelForge MCP - Forging pixels with AI
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Tehnolabs/pixelforge-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server