Stability AI

v1.0.0Data Science & MLstable

An MCP Server that integrates with Stability AI's API to provide high-quality image generation, editing, and manipulation capabilities including background removal, outpainting, search-and-replace, and upscaling.

stability-ai-mcp-servermcpai-integration
Share:
83
Stars
0
Downloads
0
Weekly
0/5

What is Stability AI?

Stability AI is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp server that integrates with stability ai's api to provide high-quality image generation, editing, and manipulation capabilities including background removal, outpainting, search-and-replace, and u...

An MCP Server that integrates with Stability AI's API to provide high-quality image generation, editing, and manipulation capabilities including background removal, outpainting, search-and-replace, and upscaling.

This server falls under the Data Science & ML category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • An MCP Server that integrates with Stability AI's API to pro

Use Cases

Generate high-quality images from text descriptions.
Edit images, remove backgrounds, and upscale visuals.
Create outpainting and search-and-replace image manipulations.
tadasant

Maintainer

LicenseMIT License
Languagetypescript
Versionv1.0.0
UpdatedMay 6, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx stability-ai-mcp-server

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Stability AI

The Stability AI MCP Server connects AI assistants like Claude directly to Stability AI's image generation and editing API, exposing 12 distinct image tools including text-to-image generation, background removal, outpainting, search-and-replace, upscaling, and relighting. It lets you describe images in natural language and receive generated or modified images without leaving your chat interface. Developers and designers use it to prototype visual assets, automate image workflows, and apply precise edits like replacing backgrounds or extending canvas boundaries — all through conversational prompts.

Prerequisites

  • Node.js 18 or later installed on your system
  • A Stability AI account with an active API key (obtainable at platform.stability.ai)
  • An MCP-compatible client such as Claude Desktop, Cursor, or Windsurf
  • Optionally, a local directory path for storing generated images
1

Get your Stability AI API key

Sign in at platform.stability.ai, navigate to API Keys, and generate a new key. Copy the key value — it starts with 'sk-'. Keep it secret; you will set it as an environment variable in the MCP config.

2

Add the server to your MCP client config

Open your MCP client configuration file (for Claude Desktop on macOS: ~/Library/Application Support/Claude/claude_desktop_config.json) and add the stability-ai server entry with your API key.

{
  "mcpServers": {
    "stability-ai": {
      "command": "npx",
      "args": ["-y", "mcp-server-stability-ai"],
      "env": {
        "STABILITY_AI_API_KEY": "sk-your-api-key-here"
      }
    }
  }
}
3

Optionally configure image storage

By default, generated images are saved to a temporary directory. Set IMAGE_STORAGE_DIRECTORY to an absolute path on your machine to control where images land. Set SAVE_METADATA to false if you do not want sidecar JSON files alongside each image.

"env": {
  "STABILITY_AI_API_KEY": "sk-your-api-key-here",
  "IMAGE_STORAGE_DIRECTORY": "/Users/you/Pictures/stability-output",
  "SAVE_METADATA": "true"
}
4

Restart your MCP client

Save the config file and restart Claude Desktop (or reload the MCP server list in your client). The stability-ai server should appear as connected and its 12 tools will become available.

5

Generate your first image

Open a new conversation in your MCP client and ask Claude to generate an image. The generate-image tool calls the Stability AI API and returns the image file path or renders it inline, depending on your client.

Stability AI Examples

Client configuration

Minimal Claude Desktop configuration to enable all 12 Stability AI image tools.

{
  "mcpServers": {
    "stability-ai": {
      "command": "npx",
      "args": ["-y", "mcp-server-stability-ai"],
      "env": {
        "STABILITY_AI_API_KEY": "sk-your-api-key-here",
        "IMAGE_STORAGE_DIRECTORY": "/tmp/stability-images",
        "SAVE_METADATA": "true"
      }
    }
  }
}

Prompts to try

Example prompts that exercise the main image capabilities of this server.

- "Generate a photorealistic image of a cat sitting in a cyberpunk city at night with neon lights reflecting off wet pavement"
- "Remove the background from product-photo.jpg and make it transparent"
- "Extend vacation-photo.jpg by 500 pixels to the right using outpainting"
- "In portrait.png, replace the plain white wall behind the subject with a sunset over the mountains"
- "Upscale logo.png to 4x resolution using the creative upscaler"
- "Search for the red car in scene.jpg and recolor it to bright blue"

Troubleshooting Stability AI

Error: STABILITY_AI_API_KEY is not set or invalid

Double-check the API key in your config file — it must start with 'sk-'. Confirm the key is active in your Stability AI dashboard and has not been revoked. Restart Claude Desktop after updating the config.

Generated images are not saved or cannot be found

Set IMAGE_STORAGE_DIRECTORY to an absolute directory path that already exists and is writable. If omitted, images land in a system temp directory that may be cleared on reboot.

Tool call fails with 'insufficient credits'

Stability AI image operations consume credits. Log in to platform.stability.ai to check your credit balance and purchase more if needed. Some tools (creative upscale, relighting) cost more credits than basic generation.

Frequently Asked Questions about Stability AI

What is Stability AI?

Stability AI is a Model Context Protocol (MCP) server that mcp server that integrates with stability ai's api to provide high-quality image generation, editing, and manipulation capabilities including background removal, outpainting, search-and-replace, and upscaling. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Stability AI?

Follow the installation instructions on the Stability AI GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Stability AI?

Stability AI works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Stability AI free to use?

Yes, Stability AI is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Data Science & ML MCP Servers

Explore all data science & ml servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "stability-ai-mcp-server": { "command": "npx", "args": ["-y", "stability-ai-mcp-server"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Stability AI?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides