Stability Ai MCP server

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.

What you can do with the Stability Ai MCP server

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.

Connect Stability Ai to your AI client

Every client uses the same Magic MCP URL, and so does any other MCP client. Add it once and sign in with SSO.

  1. 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.
  2. Add a custom connector. Open Customize, then Connectors. Select Add, then Custom, then Web.
  3. Paste your Metorial MCP URL. Name it Metorial, paste your Magic MCP URL (<your-magic-mcp-url>) and continue.
  4. Sign in. Select Add and sign in to load Stability Ai tools.

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.

More integrations teams use with Stability Ai

Notion

Create, read, update, and archive pages and databases in a Notion workspace. Manage blocks (paragraphs, lists, headings, embeds, etc.) within pages. Query databases with filters and sorts across rich property types including text, numbers, dates, selects, relations, and formulas. Search across pages and databases by title. Add and read comments on pages and blocks. Upload files to pages. Manage workspace users and retrieve user profiles.

Google Sheets

Create, read, and update spreadsheets and their cell data. Read and write values to individual cells, ranges, or multiple ranges using A1 notation or named ranges. Apply cell formatting including text styles, backgrounds, borders, number formats, and conditional formatting. Manage sheets (tabs) within a spreadsheet—add, delete, copy, rename, and reorder them. Create and manage embedded charts, pivot tables, filter views, data validation rules, protected ranges, named ranges, and merged cells. Perform batch operations to apply multiple updates atomically.

GitHub

Manage repositories, issues, and pull requests. Create and configure branches, star repositories, review code, and merge changes. Automate CI/CD workflows with GitHub Actions, manage workflow runs, secrets, and artifacts. Track issues with labels, milestones, and assignees. Search across code, repositories, issues, and users. Manage organizations, teams, and memberships. Create and manage projects, gists, packages, deployments, and environments. Access security alerts including code scanning, secret scanning, and Dependabot alerts. Read and write file contents in repositories. Manage webhooks, notifications, and codespaces.

Salesforce

Manage CRM data including Accounts, Contacts, Leads, Opportunities, Cases, and custom objects. Create, read, update, and delete records. Query data using SOQL and search across objects using SOSL. Perform bulk data operations for large-scale imports, exports, and migrations. Execute composite requests to batch multiple operations in a single API call. Access analytics, reports, and dashboards. Manage files and attachments associated with records. Interact with Chatter feeds, posts, and groups for social collaboration. Manage org metadata including custom objects, fields, layouts, and workflows. Query data using GraphQL for precise data retrieval across related objects.

Sharepoint

Manage SharePoint sites, document libraries, lists, and files. Create, read, update, and delete lists and list items with custom columns. Resolve site users to numeric Person/Group LookupId values. Upload, download, move, copy, and version files in document libraries. Search across sites, files, folders, lists, and list items using Microsoft Search. Manage permissions at site, list, and item levels with granular access control. Define and manage content types and site columns. Retrieve site properties and search for sites across Microsoft 365.

Airtable

Create, read, update, and delete records in Airtable bases and tables. Manage base schemas including creating tables and fields. Filter records using formulas, sort by fields, and scope queries to specific views. Upsert records to find, create, or update in a single call. Upload attachments to records, read and write record comments, list accessible bases, and receive real-time base change events through webhooks.

Technical notes for Stability Ai

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.

  1. 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.
  2. Stability Ai exposes tools your agents call on demand; it does not publish event triggers yet. Everything still runs through one governed MCP URL.
  3. Any MCP client, including VS Code, Windsurf, Zed, OpenCode and Grok. Each one reaches the Stability Ai MCP server through the same Metorial URL.
  4. Use role-based access control to decide which teams, users, and agents can use Stability Ai and which of its tools they can call.
  5. 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.