Skip to main content
Glama
README.md
# InvokeAI MCP

A bridge between AI coding agents (Claude, Cursor, opencode) and your local
**InvokeAI** creative engine - text-to-image, image-to-image, masked inpaint,
and upscaling on your own GPU, plus full queue, model, gallery, board, and
workflow management, with a polished dark webapp.

## What this wraps

This repo wraps **InvokeAI**, the open-source professional Stable Diffusion /
Flux creative engine (Apache-2.0, 27k+ stars). InvokeAI runs as a local web
server (default `http://127.0.0.1:9090`) and is installed separately through
its launcher - it is never bundled here. See [docs/WRAPPEE.md](docs/WRAPPEE.md).

## Preview

| Dashboard | Generate |
|-----------|----------|
| ![Dashboard](docs/screenshots/dashboard.png) | ![Generate](docs/screenshots/generate.png) |

## What You Can Do

**How it runs**: headless bridge - this MCP server talks to your running
InvokeAI instance over its REST API. InvokeAI must be installed and running
(launcher install, model download, first run). Nothing is bundled.

| Direction | Artifacts | Notes |
|-----------|-----------|-------|
| **Hands-in** | prompts, negative prompts, images (img2img/inpaint), mask images, model sources | Text or uploaded images |
| **Hands-out** | generated PNGs, image URLs, local file paths, queue state | `invokeai_queue result` + gallery download |

- Generate SD1.5 / SDXL / Flux / SD3.5 / Qwen Image images on your RTX 4090
- 8 generation modes with horizontal tabs: txt2img, img2img, inpaint, outpaint, upscale, ControlNet, IP-Adapter, seamless tiling
- 60-style catalog + 24 material presets with select-all batch generation and live per-item progress
- AI prompt refiner (local LLM) that understands the selected style/material
- Plugin surface: install custom node packs from git, browse 250+ built-in engine nodes
- Transform existing images (img2img) and repair regions (masked inpaint)
- 4x RealESRGAN upscaling
- Install models from HuggingFace or Civitai without leaving the chat
- Full queue control: status, cancel, clear, resume, result polling
- Gallery search, boards, star/favorite organization; sort/filter by style,
  painter, franchise, board, starred; batch ops (star/unstar/delete/zip/move)
  with exact per-image attribution
- 76 curated styles + 23 franchise presets + 60 painters + 1321 A1111 community
  style pack entries - all batchable in any combination
- Workflow library management (save/load node workflows)
- Dark SOTA webapp: Generate, Gallery, Models, Queue, Boards, Workflows,
  Inbox, Tools, Skills, Chat (local LLM), Settings, Help, Logs

## Supported models (engine catalog, 2026)

| Model | Family | VRAM (fp16) | License / gating | Notes |
|-------|--------|-------------|------------------|-------|
| FLUX.1 Dev / Schnell | flux | 12-16 GB (fp8 ~7 GB) | Gated (token) / schnell Apache-2.0 | Schnell: 4-step, structural quality |
| FLUX.2 Dev / Klein 9B / 4B | flux2 | 18 GB / 9 GB / 4 GB | Gated (token) | Current flagship |
| SD 3.5 Large / Medium | sd-3 | 16 GB / 5 GB | License accept + token | Rivals FLUX.1-dev |
| SDXL + community (Juggernaut XL, RealVis) | sdxl | 8 GB | Mostly open | Default: Juggernaut XL v9 |
| CogView4-6B | cogview4 | 12 GB (fp8 ~7 GB) | **Apache-2.0, no gating** | Great text rendering, bilingual |
| Z-Image Turbo / Base | z-image | 12 GB (fp8 ~6 GB) | Permissive | Turbo is very fast |
| Qwen-Image 20B | qwen-image | ~40 GB (fp8 ~20 GB) | **Apache-2.0, no gating** | Best prompt adherence; too heavy for 24 GB with desktop apps |
| SD 1.5 / 2.x | sd-1 | 4 GB | Open | Legacy, fast iteration |
| Krea 2, Ideogram 4, Anima, ERNIE | external | varies | Closed / API | Engine supports; not self-hostable |

Graph builders ship for sd-1, sdxl, flux, cogview4 (verified against engine 6.13.7);
sd-3, qwen-image, z-image, flux2 wiring is mechanical follow-up on request.
Models install to `N:\InvokeAI-models` (configurable via `models_dir` in invokeai.yaml).

## Quick Install

The fastest path is the MCPB bundle for Claude Desktop:

1. Download `invokeai-mcp-0.1.0.mcpb` from
   [Releases](https://github.com/sandraschi/invokeai-mcp/releases/latest)
2. Open Claude Desktop and drag the file onto the window
3. Complete onboarding (install InvokeAI, download a model) - see
   [docs/ONBOARDING.md](docs/ONBOARDING.md)

Other methods (mcpb CLI, manual config, webapp dev stack) are in
[INSTALL.md](INSTALL.md).

## Example Prompts

- "Generate a neon cyberpunk city at night, rain, cinematic lighting"
- "Use this image and make it a watercolor painting:
  [gallery image]"
- "What models do I have installed? Install SDXL base from HuggingFace"
- "Show me my recent images and download the last one to disk"

## Documentation

| Doc | Contents |
|-----|----------|
| [Installation](INSTALL.md) | All install methods, prerequisites |
| [Onboarding](docs/ONBOARDING.md) | First-timer InvokeAI setup, model downloads, pitfalls |
| [Wrapped app](docs/WRAPPEE.md) | What InvokeAI is, official links, community |
| [Architecture](docs/ARCHITECTURE.md) | System architecture, graph builders, ports |
| [Configuration](docs/CONFIGURATION.md) | Env vars, config options |
| [Tool Reference](docs/TOOLS.md) | All available tools |
| [Development](docs/DEVELOPMENT.md) | Contributing, local setup |
| [Troubleshooting](docs/TROUBLESHOOTING.md) | Common issues |

## Requirements

- **InvokeAI** installed and running (launcher install; models downloaded) -
  free, Apache-2.0
- GPU with 6-12 GB VRAM recommended (SD1.5: 4 GB, SDXL: 8 GB, Flux: 12 GB+)
- Engine install: `invokeai-web` manual install (`uv venv` + `uv pip install invokeai`)
  or the official launcher; the engine serves its full canvas GUI on 9090
- Claude Desktop (or any MCP client) for chat use; a browser for the webapp
- Python 3.12+ and uv for source installs; Node/Bun for the webapp

## License

MIT

TDQS

A3.9/5.0

Scored across 13 tools

Disambiguation4/5

Each tool targets a distinct domain (queue, gallery, models, generation, workflows, boards, system), and the operation-based tools (invokeai_generate, invokeai_queue) are clearly separated. Minor overlap exists between show_invokeai_dashboard_card and invokeai_system (both report health/version), but descriptions mitigate confusion.

Naming Consistency3/5

Naming is inconsistent: four tools use a 'show_invokeai_*_card' pattern while the rest use bare 'invokeai_*' nouns with operation parameters. Some tools are verb-like (invokeai_help, invokeai_shutdown), others are noun-objects (invokeai_gallery, invokeai_boards), making the pattern unpredictable.

Tool Count5/5

13 tools is well within the ideal range for a server covering a rich creative domain. Each tool addresses a distinct area (generation, queueing, model management, gallery, workflows, system), and the card-based display tools serve as convenient views rather than redundant functionality.

Completeness4/5

Core workflows are well covered: generation includes txt2img, img2img, inpaint, and upscale; queue handles lifecycle and result retrieval; models support CRUD; gallery and boards manage images; workflows have full CRUD. Minor gaps exist (e.g., no explicit single-image delete outside 'manage' operations, and no batch generation interface), but agents can accomplish tasks without major dead ends.

Maintenance

ActivityMaintained
ResponsivenessNo issues