
Store and retrieve entities, relations and observations in a persistent local knowledge graph.

An MCP server that forwards image generation requests to a bundled Stable Diffusion service started in the same process, returning formatted MCP image objects with URLs and metadata.
MCP server with integrated Stable Diffusion image generation is cataloged as an MCP server attributed to aymec. An MCP server that forwards image generation requests to a bundled Stable Diffusion service started in the same process, returning formatted MCP image objects with URLs and metadata. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for MCP server with integrated Stable Diffusion image generation are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
They are integrated into a single application; the image generation service runs in a separate thread within the same process as the MCP server, and Ctrl+C stops both.
Images are written to the folder set by the IMAGE_GEN_DIR environment variable.
README.md · 7dd57bc23d37 · Fetched 2026-11-13 10:46:03 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
This project provides a Model Context Protocol (MCP) server with integrated Stable Diffusion image generation capabilities, enabling AI agents to request and receive generated images.
This project is based on the example provided by Block's Goose Custom Extension tutorial.
Create a virtual environment, use .venv mandatorily:
virtualenv .venv
Activate the virtual environment:
source .venv/bin/activate
Install the MCP package (for Goose integration):
pip install -e .
The MCP server includes the integrated image generation service. You can start both with a single command:
Standard mode:
source .venv/bin/activate # Activate your virtualenv
export IMAGE_GEN_DIR=/absolute/path/to/folder # Set generated images target folder
image-gen-mcp
Development mode with FastMCP Inspector: Open two terminals:
Terminal 1
source .venv/bin/activate # Activate your virtualenv
export IMAGE_GEN_DIR=/absolute/path/to/folder # Set generated images target folder
image-gen-mcp # Start image generation service (and a MCP server we won't use)
Terminal 2
source .venv/bin/activate # Activate your virtualenv
export IMAGE_GEN_DIR=/absolute/path/to/folder # Set generated images target folder
mcp dev src/image_gen_mcp/server.py # Start MCP server with Inspector
Note: Only when using development mode, the image generation service must be started separately.
This will start the MCP server with the FastMCP Inspector, which provides:
Using the FastMCP Inspector:
generate_image tool with your own promptsCustom port for image generation service:
source .venv/bin/activate # Activate your virtualenv
export IMAGE_GEN_DIR=/absolute/path/to/folder # Set generated images target folder
image-gen-mcp --port 5001
Generate an image by sending a POST request to the image generation service:
curl -X POST http://localhost:5000/generate \
-H "Content-Type: application/json" \
-d '{"prompt": "A futuristic cityscape at sunset"}'
The response will include the URL to access the generated image along with metadata:
{
"type": "image",
"format": "png",
"url": "http://localhost:5000/images/123e4567-e89b-12d3-a456-426614174000.png",
"width": 512,
"height": 512,
"filename": "123e4567-e89b-12d3-a456-426614174000.png",
"filepath": "generated_images/123e4567-e89b-12d3-a456-426614174000.png",
"mime_type": "image/png",
"prompt": "A futuristic cityscape at sunset",
"alt_text": "AI-generated image of: A futuristic cityscape at sunset"
}
You can access the generated image directly via the returned image_url.
src/image_gen_mcp/ - Package directory containing the implementation
server.py - The MCP server implementationgenerator.py - The image generation service__init__.py - Package initialization and CLI entry point__main__.py - Enables running the package as a moduleTo add this MCP server as an extension in Goose:
Settings > Extensions > Add.Type to StandardIO.Command field, provide the absolute path to your executable:
uv run /full/path/to/your/project/.venv/bin/image-gen-mcp
IMAGE_GEN_DIR and pick a folder where generated images will be storedOnce integrated, you can use the image generation tool in Goose by asking it to generate an image with a specific prompt.
It works immediately when using OpenAI GPT-4o.
It is possible to run everytthing locally with Ollama, After trying a few models, the only one that worked is mistral-small3.1.
Even on a high-end MacBookPro, the response from mistral-small3.1 is much slower than with OpenAI GPT-4o.
Both services are integrated into a single application:
Image Generation Service (src/image_gen_mcp/generator.py)
MCP Server (src/image_gen_mcp/server.py)
Use Ctrl+C to stop both services, as they now run within the same process.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MCP server with integrated Stable Diffusion image generation from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/image_gen_with_mcp)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

Organize problem solving into revisable, branching thought steps through an MCP tool.

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.