Basic information
About AI Image Generation Server with MCP Interface
This project provides an HTTP server for image generation using Stable Diffusion, along with a Model Context Protocol (MCP) server that enables AI agents to request image generation.
AI Image Generation Server with MCP Interface is a MCP server in the Media & Design category listed in the AddMCP.net directory, published by aymec. Supported transport: stdio. Runtime: python. License: MIT. The repository has 2 GitHub stars. Source code is hosted on github.com.
AI Image Generation Server with MCP Interface (aymec/image_gen_mcp) config
No standard config provided
This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.
AI Image Generation Server with MCP Interface (aymec/image_gen_mcp) tools
Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is AI Image Generation Server with MCP Interface?
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. It is built for developers who want to add AI-powered image generation to agent workflows such as those using Goose or FastMCP Inspector.
How to use AI Image Generation Server with MCP Interface?
Set up a Python virtual environment (named .venv), activate it, and install the package with pip install -e .. Then set the IMAGE_GEN_DIR environment variable to your target folder and run image-gen-mcp. For testing, use development mode with the FastMCP Inspector (web UI at http://127.0.0.1:6274). Integrate with Goose by adding a StandardIO extension with the command uv run /full/path/to/your/project/.venv/bin/image-gen-mcp and the same environment variable.
Key features of AI Image Generation Server with MCP Interface
- Integrated Stable Diffusion for image generation
- Model Context Protocol (MCP) interface for AI agents
- Returns image URL, dimensions, MIME type, and metadata
- Customizable port for the image generation service (default 5000)
- Works with Goose extension system
- Supports local inference via Ollama (tested with mistral-small3.1) or remote models like GPT-4o
Use cases of AI Image Generation Server with MCP Interface
- AI agents autonomously generating images from text prompts
- Integrating visual outputs into multi‑step agent workflows (e.g., Goose)
- Debugging and testing MCP tools with the FastMCP Inspector web interface
- Direct API access for standalone image generation via
curlor scripts
Frequently asked questions
1 What models does it support?
It uses Stable Diffusion for generation. When integrated with Goose, it works immediately with OpenAI GPT-4o and locally with Ollama using the mistral-small3.1 model (slower than GPT-4o).
2 How do I stop the services?
Press Ctrl+C in the terminal where the server is running. Both the image generation service and MCP server stop together.
3 Where are generated images stored?
Images are saved to the folder specified by the IMAGE_GEN_DIR environment variable. A direct HTTP endpoint serves them from that folder.
4 Can I change the default port?
Yes. Use the --port flag when starting the service, for example: image-gen-mcp --port 5001.
5 What are the runtime dependencies?
Python, a virtual environment, the MCP package (installed via pip install -e .), and the Stable Diffusion backend bundled in the project. For full agent integration, Goose or another MCP client is needed.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In