Every editing tool takes an imageFileUri and writes a new named file, so a generated image feeds background removal, then outpainting, then an upscale, with no round trip through a desktop editor. stability-ai-0-list-resources exists for the moment the chain gets long enough that the assistant has lost track of what it already produced.
A Stability AI client covering generation and the editing passes that follow it. Images are addressed by file URI, and a listing tool returns the ones already available so an earlier output becomes the next input.
- Generation from a prompt with aspect ratio, negative prompt and style preset, or through Stable Diffusion 3.5 models with cfgScale, seed and output format exposed
- Background removal, and background replacement with relighting driven by light source direction, strength and a reference image
- Outpainting that extends the canvas up, down, left or right while holding the image consistent
- Search-and-replace and search-and-recolor, both driven by describing the object in words rather than masking it
- Upscaling 4x on the fast path, or up to 4K with creative reinterpretation for heavily degraded input
- Structure and style carried over from a reference image, with fidelity and control strength as dials
- Hand-drawn sketches translated into production-grade images
- A listing of the image resources already in the session, so the assistant finds what it made earlier instead of asking you for the path
A Stability AI account with its API key in STABILITY_AI_API_KEY, and npx on your PATH.
One command plus a key — npx @smithery/cli install mcp-server-stability-ai --client claude, then supply credentials
