
cascade-img
io.github.laffeypPublished by GitHub account laffeypv0.1.1Updated Oct 24, 2026
LLM-operable Midjourney pipeline: 21 MCP tools to compose, generate, curate with vision, and log.
The publisher's own server: Ephemeris Time-Series Forecasting
Overview
Lets an assistant compose Midjourney prompts, fire them through Discord, inspect the resulting grids with vision, crop and clean the best quadrant, and log…
- What you can do
- cascade-img exposes about 23 MCP tools covering the whole image loop: structured prompt composition, firing imagine and video jobs, polling status, triggering Midjourney actions such as upscale, vary and pan, and catching up on results a human made by hand in Discord. A curation group crops quadrants from grids, removes backgrounds, trims, quantizes palettes, builds contact and sprite sheets, scores grids with vision, and promotes winners. An append-only prompt log persists across sessions so each run can read what was tried before. All calls return a structured ok/error envelope with stable error codes.
- When to use it
- Use it when you want an assistant to run Midjourney image generation end to end rather than hand-writing prompts and picking quadrants yourself, especially for repeated batches, icon or sprite work, or workflows where the agent should learn from earlier attempts. It is not for users without a Midjourney subscription or who want a supported official API.
- Requirements
- A local Python 3.12+ environment (installed from PyPI, run with uvx) plus a running cascade-mj-bridge daemon, which holds the Discord connection. Needs a paid Midjourney subscription, a Discord account with the Midjourney bot in a channel, and four captured values: CASCADE_BRIDGE_URL, DISCORD_USER_TOKEN, MJ_CHANNEL_ID and MJ_IMAGINE_VERSION. Desktop only; no authentication is declared for the MCP server itself.
Installation
In SourceWeft
- Open cascade-img in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
[CI] [PyPI] [License: Apache 2.0] [Python 3.12+] [MCP Tools: 23]
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.
Quick Start
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:
The 23 Tools
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.
How This Differs
Other open-source Midjourney tools focus on the generation step — fire the prompt, hand back the image. cascade-img does the work around that:
- Vision-based self-curation — the agent inspects its own output and picks the best quadrant
- Structured prompt composition — prompts built from parts (subject, style, identity, constraints), not raw strings
- Working memory — append-only log persists across sessions; each run reads what came before
- Curation pipeline — crop grids, remove backgrounds, build sprite sheets, promote winners
- MCP-native — 23 tools that plug into Claude, Cursor, Codex, or anything that speaks MCP
- Pluggable backends — Midjourney now, Flux/DALL-E/Imagen on the roadmap
How It Works
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.
Midjourney terminology
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.
Documentation
Roadmap
Every backend implements one interface, so a later release can chain them — generate on one provider, refine on a second (e.g. Flux Kontext), upscale on a third.
Repository Layout
Disclaimer
This tool automates Midjourney through a Discord user account. A paid Midjourney subscription is required. Both Discord and Midjourney's Terms of Service prohibit user-account automation. This is the same mechanism used by every open-source MJ tool (midjourney-proxy, midjourney-api, etc.) — there is no public Midjourney API. Use at your own risk.
The backend interface is pluggable — Flux, DALL-E, and Imagen are on the roadmap.
License
Apache-2.0. See LICENSE.
Source: README.md at commit 7c87496
Tools
0Version history
1- v0.1.1LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Other Cascade integrations

Ephemeris Time-Series Forecasting
industries.cascadeOfficial publisher
Lets an assistant forecast numeric time series with prediction intervals using hosted time-series foundation models, and inspect, plot and track the results.
SCRIPTMASTERLABS — Cascade Graph
com.scriptmasterlabs
Remote MCP server for deterministic macro market analysis, SHA256 decision capsules, and optional Jev jury review over a hash-chained calibration log.

SigRank SignalAF — AI Operator Cascade & Leaderboard
Published by GitHub account SunrisesIllNeverSee
Local SigRank scanner that lets an assistant read your AI token usage, compute cascade metrics, view the public leaderboard, and optionally publish a signed, re

Forge Cascade MCP Memory Server
Published by GitHub account SunFlash12
Returns public Forge/Froggit buyer routes, pricing and paid checkout links so an assistant can recommend a purchase path from buyer context.