Stability Ai MCP Server — Hosted Ai Integration
MCP Server language Hosted language PublicGenerate images, upscale photos, remove backgrounds, run inpainting, and create videos from images using Stable Diffusion 3.5 and Stability AI's Stable Image API.
Use with AI AssistantsMCP
Connect Claude, Cursor, or any MCP-compatible client — then call tools directly
① Add This MCP Server
Paste into your AI client config — then all its tools are available instantly.
{
"mcpServers": {
"stability-ai": {
"url": "https://mcp.aerostack.dev/s/aerostack/mcp-stability-ai",
"headers": {
"Authorization": "Bearer YOUR_AEROSTACK_TOKEN"
}
}
}
}Replace YOUR_AEROSTACK_TOKEN with your API token from the dashboard.
② Call a Tool
Ask your AI assistant to call a specific tool, or send raw JSON-RPC:
Natural Language Prompt
“Use the _ping tool to verify stability ai credentials by calling a lightweight read endpoint. used internally by aerostack to validate credentials”
Using a Workspace?
Add this MCP to your Workspace — your team shares one token, secrets are stored securely, and every AI agent in the workspace can call it without per-user setup.
description Overview
mcp-stability-ai — Stability AI MCP Server
Generate images, upscale photos, remove backgrounds, run inpainting, and create videos from images using Stable Diffusion 3.5 and Stability AI's Stable Image API.
Live endpoint: https://mcp.aerostack.dev/s/aerostack/mcp-stability-ai
What You Can Do
This MCP server gives AI agents access to Stability AI via 10 tools. Connect it to any Aerostack workspace and your agents can interact with Stability AI directly.
Available Tools
| Tool | Description |
|---|---|
generate_image |
Generate an image from a text prompt using Stable Diffusion 3.5. Returns base64-encoded PNG/JPEG image |
generate_image_core |
Fast image generation using Stable Image Core — optimised for speed and cost. Returns base64-encoded image |
generate_image_ultra |
Highest quality image generation using Stable Image Ultra — best detail, coherence, and typography. Returns base64-encoded image |
upscale_image |
Upscale an image by 4x using Stable Fast 4x Upscaler. Input image must be provided as a base64-encoded string |
remove_background |
Remove the background from an image, returning the subject with a transparent background. Input as base64-encoded string |
image_to_video |
Generate a short video clip from a static image using Stable Video Diffusion. Returns an async generation ID to poll |
get_video_result |
Poll for the result of an image-to-video generation. Returns base64-encoded video when complete |
search_and_replace |
Replace a specific object or area in an image using a text search prompt. Returns the edited image as base64 |
inpaint |
Erase and regenerate a masked area of an image. Provide the image and a mask as base64-encoded strings |
get_account_balance |
Get your Stability AI account credits balance |
Configuration
| Variable | Required | Description |
|---|---|---|
STABILITY_AI_API_KEY |
Yes | Your Stability AI API key — found at platform.stability.ai/account/keys |
Quick Start
Add to Aerostack Workspace
- Go to aerostack.dev → Your Project → MCPs
- Search for "Stability AI" and click Add to Workspace
Add the following secrets under Project → Secrets:
STABILITY_AI_API_KEY
Once added, every AI agent in your workspace can use Stability AI tools automatically.
Direct API Call
curl -X POST https://mcp.aerostack.dev/s/aerostack/mcp-stability-ai \
-H 'Content-Type: application/json' \
-H 'X-Mcp-Secret-STABILITY-AI-API-KEY: your-stability-ai-api-key' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"generate_image","arguments":{}}}'
License
MIT
terminal Tools (11)
Available tools on this MCP server. Each tool can be called directly from any AI agent.
_ping #1 Verify Stability AI credentials by calling a lightweight read endpoint. Used internally by Aerostack to validate credentials.
generate_image #2 Generate an image from a text prompt using Stable Diffusion 3.5. Returns base64-encoded PNG/JPEG image
generate_image_core #3 Fast image generation using Stable Image Core — optimised for speed and cost. Returns base64-encoded image
generate_image_ultra #4 Highest quality image generation using Stable Image Ultra — best detail, coherence, and typography. Returns base64-encoded image
upscale_image #5 Upscale an image by 4x using Stable Fast 4x Upscaler. Input image must be provided as a base64-encoded string
remove_background #6 Remove the background from an image, returning the subject with a transparent background. Input as base64-encoded string
image_to_video #7 Generate a short video clip from a static image using Stable Video Diffusion. Returns an async generation ID to poll
get_video_result #8 Poll for the result of an image-to-video generation. Returns base64-encoded video when complete
search_and_replace #9 Replace a specific object or area in an image using a text search prompt. Returns the edited image as base64
inpaint #10 Erase and regenerate a masked area of an image. Provide the image and a mask as base64-encoded strings
get_account_balance #11 Get your Stability AI account credits balance
Details
language Live Endpoint
https://mcp.aerostack.dev/s/aerostack/mcp-stability-ai
Sub-50ms globally · Zero cold start
Publisher
Pre-built functions for the most common MCP tool patterns. Clone, extend, and deploy.
More in AI
Browse AI MCPs →Canva Design Platform
by @aerostack
Design creation, AI generation, editing, export, assets, brand kits, folders via Canva's official MCP
Intercom Messaging
by @aerostack
Conversations, contacts, tickets, articles via Intercom's official MCP
Anthropic
by @aerostack
Call Claude models directly — run AI conversations, tool-use chains, batch jobs, and model comparisons from any agent.
Vercel Deployments
by @aerostack
Deployments, projects, domains, env vars, logs via Vercel's official MCP
Gmail
by @aerostack
Read, send, and search Gmail messages — manage labels, drafts, and attachments with full inbox control.
Mailchimp
by @aerostack
Manage audiences, campaigns, and subscriber tags in Mailchimp — automate your email marketing with AI.
Frequently asked questions
What is the Stability Ai MCP server and what can it do? +
The Stability Ai MCP server is hosted on Aerostack and exposes these tools to your AI agent: `_ping`, `generate_image`, `generate_image_core`, `generate_image_ultra`, `upscale_image`. You get one hosted URL — no self-hosting — that works from Claude, Cursor, ChatGPT, Gemini, VS Code, or any MCP-compatible client, and you can share it with your team or combine it with other MCP servers in a workspace.
Is the Stability Ai MCP server hosted, or do I have to run it myself? +
It's hosted on Aerostack's edge infrastructure — you don't deploy or maintain anything. Add it to a workspace and you get one authenticated URL, with secrets encrypted, that any AI agent or editor can connect to. Use it solo or share the same URL across your whole team.
Which AI agents and editors can use the Stability Ai MCP server? +
Any MCP client: Claude and Claude Code, Cursor, ChatGPT, Gemini, Windsurf, Cline, VS Code, and custom agents. Because it's one hosted URL, the same Stability Ai MCP server works everywhere — and you can compose it with other MCP servers, skills, and functions behind a single workspace URL.
How do I install the Stability Ai MCP server in Claude Desktop? +
Add the following to your Claude Desktop config (`claude_desktop_config.json`): ```json { "mcpServers": { "@aerostack/mcp-stability-ai": { "command": "npx", "args": ["-y", "@aerostack/@aerostack/mcp-stability-ai"] } } } ``` Then restart Claude Desktop and the tools will appear automatically.
How do I use the Stability Ai MCP server in Cursor? +
In Cursor, open **Settings → MCP** and add: ```json { "name": "@aerostack/mcp-stability-ai", "command": "npx", "args": ["-y", "@aerostack/@aerostack/mcp-stability-ai"] } ``` Save and reload Cursor. The MCP tools will be available in Agent mode.
Does Stability Ai MCP require authentication? +
Yes. Stability Ai requires authentication. Check the MCP's documentation for the required credentials.