LLM-operable Midjourney pipeline: 21 MCP tools to compose, generate, curate with vision, and log.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.

Generate Midjourney images by conversation instead of by hand. You describe what you want; your AI assistant composes the prompt, fires it, inspects the grid with vision, crops the best quadrant, cleans it up, and logs what worked.
cascade-img is an MCP server with 23 tools that plugs into Claude, Cursor, Codex, or anything that speaks MCP. Midjourney is the first backend; Flux, DALL-E, and Imagen are on the roadmap. There's also a CLI.
Not a programmer? Open an AI assistant that can run commands (Claude Code, Cursor, or Cline), point it at this repo, and say: "Read RUNBOOK.md and set up cascade-img on this machine, then let me make images by describing them to you." It does the technical parts. You just need a Midjourney subscription and to copy a few values from Discord.
You need: a paid Midjourney subscription, a Discord account with the MJ bot in a channel, and Python 3.12 or newer.
Or from source:
This puts three commands for operating cascade-img on your PATH: cascade-mj-bridge (the daemon), cascade-mcp (the MCP server), and cascade-mj (the CLI). Installing also adds a fourth command, cascade-trace-check β a diagnostics validator (not part of the generation loop) that replays a recorded event log and checks it against the vocabulary's declared event ordering and timing rules.
Configure β you need four values from the Discord desktop app (channel ID, server ID, imagine version, and your user token). Takes about five minutes. RUNBOOK.md walks through each one step by step.
Start the daemon in one terminal, then connect from another:
Connect your AI assistant β add to your MCP config (Claude Desktop, Cursor, Cline):
Or point your assistant at this repo and ask it to read AGENTS.md β it'll wire everything up.
Or use the CLI:
| Category | Tools | What they do |
|---|---|---|
| Onboarding | cascade_guide | Returns the full operating manual in one call β the loop, every tool, the failureβaction table. Call it first; the generation and curation tools are gated until it's read. |
| Generation | imagine, generate_video, wait, status, bridge_health, mj_action | Compose and fire prompts, poll for results, check daemon health, trigger Midjourney actions (upscale, vary, pan) |
| Catch-up | channel_recent, adopt_message | See what the human did by hand in Discord and claim those results into the pipeline β adopted messages become normal jobs that curation and mj_action work on |
| Composition | compose_prompt, compose_video | Build prompts from structured parts β subject, moodboard, style refs, aspect ratio, negatives β not freeform text |
| Curation | crop_grid, alpha_key, auto_trim, palette_quantize, contact_sheet, sprite_sheet, score_grid, video_filmstrip, loop_seam_delta, promote | Extract quadrants from grids, remove backgrounds, trim whitespace, build sprite sheets, score results with vision, promote winners to final output |
| Working memory | log_append, read_prompt_log | Append-only prompt log the agent reads before every run β what was tried, what worked, what didn't. Persists across sessions. |
Every call returns {ok, result} or {ok: false, error: {code, remediation}}. Branch on the stable code, not the message. Full tool reference in AGENTS.md.
Other open-source Midjourney tools focus on the generation step β fire the prompt, hand back the image. cascade-img does the work around that:
One daemon, two stateless clients, all over local HTTP:
cascade-mj-bridge β the daemon. Only process that talks to Discord. Holds the live connection and tracks in-flight jobs. Must stay running.cascade-mcp β the MCP server. Stdio by default (Claude Desktop / Cursor / Cline); --http <port> for HTTP. Stateless β start and stop freely.cascade-mj β the CLI. Takes an asset ID and a registry, composes the prompt, fires, waits, writes to the log.Prompts are composed from structured parts, not written as raw strings:
All three entry points emit structured JSON and follow the same {ok, result | error: {code, remediation}} envelope. Every failure carries a stable error code (e.g. DISCORD_401, MJ_UUID_MISSING, UPSCALE_BUTTON_FAILED) with a machine-readable remediation β so a caller branches on the code, not the message. The full catalog of log events and error codes is in vocabulary/0.1.json, and a trace checker (cascade-trace-check) enforces event ordering over recorded runs.
prompt β the text + flags you send Midjourney. grid β the 2x2 set of four candidates returned per prompt. quadrant / U1-U4 β the four cells; "U2" means upscale the second. upscale β render one cell at full resolution. aspect ratio (--ar) β output shape. sref β an image whose style to borrow. oref β an image whose subject identity to keep across poses. moodboard (--p) β a saved personalization profile. stylize (--s) β how strongly MJ applies its own aesthetic.
| Doc | What it covers |
|---|---|
| AGENTS.md | The LLM operator's guide. Read this when handing cascade-img to an agent. |
| RUNBOOK.md | Install, env capture, setup, reconnect lifecycle, every failure mode with error codes and fixes. |
| CAPABILITIES.md | Every Midjourney feature cascade-img drives β prompt parameters, mj_actions, the V8.1/V7 split. |
| ARCHITECTURE.md | Internal architecture and design decisions. |
| examples/ | Three walkthroughs: single image, batch, video. Read AGENTS.md first. |
| CHANGELOG.md | Release history. |
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/cascade-img)<a href="https://allmcps.com/mcp/cascade-img"><img src="https://allmcps.com/api/badge/cascade-img?style=directory" alt="Cascade Img on AllMCPs" /></a>