Stability AI MCP Server logo

Stability AI MCP Server

by tadasant

This MCP Server integrates MCP Clients with Stability AI's Stable Diffusion image manipulation functionalities. It allows users to generate, edit, upscale images, and more using Stability AI's hosted REST API.

View on GitHub

Last updated: N/A

What is Stability AI MCP Server?

This is an MCP (Model Context Protocol) Server that connects MCP Clients to Stability AI, enabling image generation and manipulation using Stable Diffusion models. It leverages Stability AI's API to provide functionalities like generating, editing, and upscaling images.

How to use Stability AI MCP Server?

To use this server, you need a Stability AI API key. Configure the server with the API key and an image storage directory. Then, use an MCP client like Claude Desktop to interact with the server using natural language commands, such as 'Generate an image of a cat' or 'Remove the background from the image I just generated.'

Key features of Stability AI MCP Server

  • Easy to use with sensible defaults

  • Chain image manipulations in a single conversation

  • Minimal configuration (only API key required)

  • Leverages best-in-class Stability AI image models

  • Supports various image manipulation tools like generate, upscale, remove background, etc.

  • Supports Stable Diffusion 3.5 models

Use cases of Stability AI MCP Server

  • Generating high-quality images from text prompts

  • Removing backgrounds from images for e-commerce or other purposes

  • Upscaling images for better resolution

  • Replacing objects or elements within an image

  • Extending images beyond their original boundaries (outpainting)

  • Translating hand-drawn sketches to production-grade images

FAQ from Stability AI MCP Server

Do I need to be technical to use this?

No, the server is designed with sensible defaults and a simple UX, so you don't need to understand image models to use it effectively.

How much does it cost to use?

Stability AI provides 25 free credits. Afterward, it's pay-as-you-go pricing, around $0.01/credit. Generating an image on their Core model costs about 3 credits.

Where are the generated images stored?

Images are automatically saved to the IMAGE_STORAGE_DIRECTORY you configure.

Can I upload images to Claude to work with them?

No, you cannot copy/paste or upload image files to Claude. Images must be saved to the IMAGE_STORAGE_DIRECTORY to be accessible by the server.

What is SSE Mode?

SSE mode allows the server to be deployed for third-party usage over HTTP, storing images in Google Cloud Storage instead of the local filesystem. This requires setting up Google Cloud Storage credentials.