Connect Stability Ai to Claude, ChatGPT, Cursor, Claude Code, Codex, Gemini, GitHub Copilot and any other MCP client, for your whole team. Metorial adds security, governance, and tracing, and gives everyone one Magic MCP URL to connect.
Ask your agent in plain language. Each of these maps to a real tool on the server.
Use the control image generation tool in Stability Ai
Use the generate image tool in Stability Ai
Use the generate audio tool in Stability Ai
Use the generate 3d model tool in Stability Ai
Use the edit image tool in Stability Ai
Use the upscale image tool in Stability Ai
Supported Tools
control_image
Control Image Generation
Generate images guided by structural inputs using Stability AI's control tools. Four control modes:
- **sketch**: Generate production-grade images from hand-drawn sketches or line drawings.
- **structure**: Generate images that maintain the structural composition and edges of a reference image.
- **style**: Generate new content in the visual style of a reference image (Style Guide).
- **style_transfer**: Restyle an existing image with a separate style reference while preserving composition.
Sketch, structure, and style guide require a reference image and prompt. Style transfer requires an input image and styleImage; prompt is optional.
generate_image
Generate Image
Generate images from text prompts using Stability AI models. Supports three model tiers:
- **Ultra**: Top-tier quality powered by Stable Diffusion 3.5, excels at typography, complex compositions, and photorealism.
- **Core**: Fast, affordable generation with good quality. Supports style presets.
- **SD3.5**: Access to specific SD3.5 model variants with advanced controls like CFG scale.
Optionally provide a reference image for image-to-image generation (Ultra and SD3.5 only).
generate_audio
Generate Audio
Generate or transform audio using Stability AI's current Stable Audio APIs. Supports:
- **text_to_audio**: Generate audio from a text prompt.
- **audio_to_audio**: Transform an input audio clip with prompt guidance.
- **inpaint**: Regenerate a time range inside an input audio clip.
Describe the desired audio including genre, mood, instruments, tempo, and style for best results.
generate_3d
Generate 3D Model
Generate 3D models from a single image using Stability AI's 3D generation models. Two models available:
- **stable-fast-3d**: Generates high-quality 3D assets in ~0.5 seconds. Best for quick prototyping.
- **spar3d** (Stable Point Aware 3D): More detailed generation with point cloud sampling. Better for complex objects and unseen backside details.
Both models output UV-unwrapped and textured GLB files ready for use in 3D applications and game engines.
edit_image
Edit Image
Edit images using Stability AI's suite of editing tools. Supports multiple operations:
- **erase**: Remove unwanted elements using a prompt and optional mask.
- **inpaint**: Fill or replace masked areas with new content based on a prompt.
- **outpaint**: Extend image boundaries in any direction while maintaining visual consistency.
- **search_and_replace**: Swap objects by describing what to find and what to replace it with (no mask needed).
- **search_and_recolor**: Change colors of specific objects described in plain language (no mask needed).
- **remove_background**: Remove the background from an image, leaving the subject on a transparent background.
upscale_image
Upscale Image
Enhance image resolution using Stability AI's upscaling models. Three modes available:
- **fast**: Quick 4x resolution increase without prompt guidance. Best for simple upscaling tasks.
- **conservative**: Upscales up to 4K while preserving details and minimizing alterations. Requires a descriptive prompt.
- **creative**: Significantly reinterprets and enhances images up to 4K resolution. Best for heavily degraded images. Accepts a creativity scale parameter. This is an async operation that may take longer.
replace_background
Replace Background & Relight
Replace the background of a subject image with a new AI-generated scene and adjust lighting. Useful for e-commerce product shots, real estate photography, and creative compositing.
Provide a subject image and describe the desired background. Optionally control the lighting direction and intensity to match the new scene.
get_account
Get Account Info
Retrieve Stability AI account information and credit balance. Returns the account email, profile picture, organizations, and current credit balance for monitoring API usage.
Enable Stability Ai in Metorial. In your Metorial portal, enable the Stability Ai MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add a custom connector. Open Customize, then Connectors. Select Add, then Custom, then Web.
Paste your Metorial MCP URL. Name it Metorial, paste your Magic MCP URL (<your-magic-mcp-url>) and continue.
Sign in. Select Add and sign in to load Stability Ai tools.
Enable Stability Ai in Metorial. In your Metorial portal, enable the Stability Ai MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add a custom MCP server. On ChatGPT web, open Plugins, select +, then Add custom MCP server.
Paste your Metorial MCP URL. Name it Metorial, paste your Magic MCP URL (<your-magic-mcp-url>), choose OAuth and accept the risk notice.
Create and install the plugin. Select Create as a plugin, install it and sign in to load Stability Ai tools.
Enable Stability Ai in Metorial. In your Metorial portal, enable the Stability Ai MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add Metorial to your MCP config. Use ~/.cursor/mcp.json for every project, or .cursor/mcp.json for one.
Sign in. Open Customize in the sidebar, find Metorial and sign in to load Stability Ai tools.
{
"mcpServers":{
"metorial":{
"url":"<your-magic-mcp-url>"
}
}
}
Enable Stability Ai in Metorial. In your Metorial portal, enable the Stability Ai MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add the server over HTTP. Add --scope user to use it in every project.
Sign in. Run /mcp, select Metorial and sign in to load Stability Ai tools.
claude mcp add --transport http metorial <your-magic-mcp-url>
Enable Stability Ai in Metorial. In your Metorial portal, enable the Stability Ai MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add the server and sign in. The Codex CLI, IDE extension and ChatGPT desktop app share this config.
Check the connection. Type /mcp in Codex to see Metorial and its Stability Ai tools.
codex mcp add metorial --url <your-magic-mcp-url>
codex mcp login metorial
Run Stability Ai through the Metorial gateway
One governed layer for every app your agents reach, not a separate connector per tool.
Give Stability Ai and every other app to your whole team through one MCP gateway, behind your SSO.
Scope which teams and agents can use Stability Ai tools with role-based access control, and trace every call.
Prefer to run it yourself? Metorial is open source and self-hostable.
Generate images from text prompts using Stable Diffusion models, edit images with tools like inpainting, outpainting, erase, search-and-replace, search-and-recolor, and background removal. Upscale images to 4K resolution with conservative, creative, or fast modes. Apply style guide and style transfer controls to images guided by references. Replace backgrounds and adjust lighting on subject images. Generate or transform audio with Stable Audio text-to-audio, audio-to-audio, and inpaint workflows. Create 3D assets from single images. Check account credit balance and usage.
Frequently asked questions
Common questions about connecting Stability Ai to AI agents with Metorial.
How many tools does the Stability Ai MCP server have?
The Stability Ai MCP server exposes 8 tools, including Control Image Generation, Generate Image, Generate Audio. Each one is governed and traced through Metorial.
Does the Stability Ai MCP server support triggers?
Stability Ai exposes tools your agents call on demand; it does not publish event triggers yet. Everything still runs through one governed MCP URL.
Which AI clients can use the Stability Ai MCP server?
Any MCP client, including VS Code, Windsurf, Zed, OpenCode and Grok. Each one reaches the Stability Ai MCP server through the same Metorial URL.
How do I give only some teams access to Stability Ai?
Use role-based access control to decide which teams, users, and agents can use Stability Ai and which of its tools they can call.
Can I self-host the Stability Ai MCP server?
Yes. Metorial is open source, so you can run the Stability Ai MCP server yourself or use the hosted gateway.
Connect Stability Ai to production AI agents
See how Metorial gives your team governed access to Stability Ai, with tracing and security controls built in.