Skip to main content Switch to mobile version pixelforge-mcp 0.9.0 AI-powered image generation MCP server with multi-model support
pip install pixelforge-mcp==0.9.0 Copy PIP instructions
An MCP server for AI-powered image generation, editing, analysis, and transformation using Google's Gemini image models.
19 MCP tools for image generation, editing, analysis, transformation, and more
4 stable Gemini image models (Nano Banana 2.1, 2 Lite, 2, and Pro) plus configurable analysis models
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
Generative upscale and mode-driven editing — upscale to the next 1K/2K/4K tier, inpaint, outpaint, background swap, style transfer, product shots
Two backends — Gemini API key, or Vertex AI with a service account / Application Default Credentials
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)
Requirements: Python 3.11+ and a Google API key or a Google Cloud project with Vertex AI (see Authentication)
The quickest route in Claude Code, Codex or Cursor is the plugin, which starts the server with uvx pixelforge-mcp@latest (needs uv) and adds seven workflow skills:
# Claude Code /plugin install pixelforge --marketplace Tehnolabs/pixelforge-mcp # Codex codex plugin marketplace add Tehnolabs/pixelforge-mcp && codex plugin add pixelforge@pixelforge # Cursor: Customize -> From GitHub Repository -> https://github.com/Tehnolabs/pixelforge-mcp See plugins/pixelforge/README.md for credentials per client and the skill list. For any other client, or a manual setup, install the server once:
pipx install pixelforge-mcp Configure
The examples below use a Gemini API key. To use a Google Cloud service account instead, replace GOOGLE_API_KEY with GOOGLE_CLOUD_PROJECT and GOOGLE_APPLICATION_CREDENTIALS as shown in Use a service account instead of an API key.
claude mcp add pixelforge --scope user -e GOOGLE_API_KEY="your-key" -- pixelforge-mcp Cursor
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:
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:
Ask Claude to generate, edit, or analyze images — all 19 tools are available automatically.
PixelForge talks to Google through one of two backends. Every tool runs on either.
Set any one of these variables. Get a key at Google AI Studio.
Use a Google Cloud project with the Vertex AI API enabled and Application Default Credentials: a service account key file, gcloud auth application-default login, or the attached identity when running on Google Cloud. The identity needs the Vertex AI User role (roles/aiplatform.user). No extra packages are required.
Use a service account instead of an API key
A service account runs every tool through Vertex AI, with no Gemini API key. One-time setup with the gcloud CLI, using your own project ID:
PROJECT_ID="YOUR_PROJECT_ID" SA="pixelforge-sa@${PROJECT_ID}.iam.gserviceaccount.com" # 1. Enable Vertex AI in the project gcloud services enable aiplatform.googleapis.com --project="$PROJECT_ID" # 2. Create the service account and grant it the Vertex AI User role gcloud iam service-accounts create pixelforge-sa --project="$PROJECT_ID" gcloud projects add-iam-policy-binding "$PROJECT_ID" \ --member="serviceAccount:$SA" --role="roles/aiplatform.user" # 3. Create a key file outside any repository mkdir -p ~/.config/pixelforge gcloud iam service-accounts keys create ~/.config/pixelforge/service-account.json \ --iam-account="$SA" Then configure your client with the project and the key path in place of GOOGLE_API_KEY. Claude Code:
An API key variable set anywhere in the environment (a shell profile, for example) takes precedence, and the service account is ignored. Unset it, or add "GOOGLE_GENAI_USE_VERTEXAI": "true" to the same env block.
The key file grants access to your project. Keep it out of version control, give the service account only roles/aiplatform.user, and delete keys you no longer use (gcloud iam service-accounts keys list --iam-account="$SA").
No key file is needed when credentials come from gcloud auth application-default login (optionally with --impersonate-service-account="$SA") or from the attached identity on Google Cloud. Set only GOOGLE_CLOUD_PROJECT in that case.
An API key selects the Gemini API.
GOOGLE_CLOUD_PROJECT with no API key selects Vertex AI.
Both set: the API key wins unless GOOGLE_GENAI_USE_VERTEXAI=true.
get_server_info reports the active backend under backend.name.
Analysis tools and optimize_prompt accept a model override and optional thinking_level (minimal, low, medium, high, xhigh). The default is gemini-3.5-flash-lite; use gemini-4-hydrogen, gemini-4-neon, gemini-4-argon, gemini-4-carbon, gemini-3.8-flash, or gemini-3.6-flash for harder OCR or reasoning.
PixelForge supports per-request model switching with 4 stable Gemini image models:
gemini-2.5-flash-image is deprecated (Google has announced its shutdown) and remains only for existing setups. Use gemini-3.1-flash-lite-image instead.
0.5K is gemini-3.1-flash-image only and is sent to the API as 512px. generate_image rejects a size the chosen model cannot output.
upscale_image and advanced_edit re-render with gemini-nano-banana-2.1 unless model is set. upscale_image outputs the smallest of 1K/2K/4K that covers the source times the factor (capped at 4K) and needs a model with 2K/4K output (gemini-nano-banana-2.1, gemini-3.1-flash-image, or gemini-3-pro-image); gemini-3.1-flash-lite-image is rejected. Both tools pin the nearest aspect ratio the model supports; models without panoramic output get a standard ratio and a warning.
Analysis Models (text)
Used by analyze_image, extract_text, detect_objects, compare_images, and optimize_prompt. Override per request with model= and thinking_level=.
Instead of choosing a model manually, use quality presets:
generate_image(prompt="...", quality="fast") # gemini-3.1-flash-lite-image generate_image(prompt="...", quality="balanced") # gemini-nano-banana-2.1 + 1K generate_image(prompt="...", quality="quality") # gemini-3-pro-image + 2K Supported Aspect Ratios
* Panoramic ratios require gemini-nano-banana-2.1 or gemini-3.1-flash-image
"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. If you meant to use a service account, an API key variable set anywhere in the environment takes precedence: unset it or set GOOGLE_GENAI_USE_VERTEXAI=true.
"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 pixelforge "Publisher model ... was not found" (Vertex AI)
With a regional location in the message, the request went to a regional Vertex AI endpoint. The current Gemini image and text models are served from the global endpoint: set GOOGLE_CLOUD_LOCATION=global (the default) or remove a regional override. With locations/global in the message, the model ID is unknown or retired on Vertex AI (list_available_models lists current IDs), or the project cannot access it yet. The same 404 is returned for retired Imagen model IDs, which PixelForge no longer calls.
"Rate limit exceeded" or "Permission denied"
The message carries Google's own text. A quota limit: 0, or "has not been used in project ... or it is disabled", is a project setup limit rather than a model problem: enable the Vertex AI API (or the Generative Language API for an API key), grant roles/aiplatform.user, or request a quota increase.
"No credentials found"
Set an API key, or GOOGLE_CLOUD_PROJECT with Application Default Credentials. See Authentication.
Plugin for Claude Code, Codex and Cursor and ADR-004 on how the bundle is laid out
Configuration Guide — detailed setup and environment options
Changelog — version history
See CONTRIBUTING.md for development setup, code standards, and pull request guidelines.
Built with FastMCP, Pydantic, and google-genai.
Ahmed Al-Eryani @ Tehnolabs
PixelForge MCP - Forging pixels with AI
Released: Nov 28, 2026
Author: Ahmed Al-Eryani
Both files in this release have provenance metadata.
View provenance details
AGPL-3.0-or-later View SPDX License List
mcp image-generation gemini ai model-context-protocol
Development Status 4 - Beta
Framework Pydantic :: 2
Intended Audience Developers
Programming Language Python :: 3
Topic Multimedia :: Graphics
Software Development :: Libraries
Release files for pixelforge-mcp 0.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 169.5 kB
Release files / pixelforge_mcp-0.9.0.tar.gz
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Release files / pixelforge_mcp-0.9.0-py3-none-any.whl
Security for pixelforge-mcp 0.9.0
Both files in this release have been uploaded with provenance metadata.
With provenance pixelforge_mcp-0.9.0.tar.gz Nov 28, 2026
With provenance pixelforge_mcp-0.9.0-py3-none-any.whl Nov 28, 2026
Attestation for pixelforge_mcp-0.9.0.tar.gz
Attestation for pixelforge_mcp-0.9.0-py3-none-any.whl
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Nov 29, 2026 2 release files Full provenance
Nov 28, 2026 2 release files Full provenance
Nov 4, 2026 2 release files No provenance
Oct 29, 2026 2 release files No provenance
Oct 28, 2026 2 release files No provenance
Mar 29, 2026 2 release files No provenance
Mar 22, 2026 2 release files No provenance
Mar 21, 2026 2 release files No provenance
Feb 28, 2026 2 release files No provenance
Feb 9, 2026 2 release files No provenance
Feb 8, 2026 2 release files No provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation
Deployed from fc0d8e6











