
Image Generator
STDIOAI-powered image generation server using Replicate with saving capabilities
AI-powered image generation server using Replicate with saving capabilities
An MCP server that uses Replicate to generate images and allows users to save them.
The server implements an image storage system with:
The server provides a single prompt:
The server implements three tools:
To use this image generator, you need a Replicate API token:
.env
file based on the provided .env.example
template:REPLICATE_API_TOKEN=your_replicate_api_token_here
Important: The
.env
file is excluded from version control via.gitignore
to prevent accidentally exposing your API token. Never commit sensitive information to your repository.
git clone https://github.com/yourusername/image-generator.git cd image-generator
# Using venv python -m venv .venv # On Windows .venv\Scripts\activate # On macOS/Linux source .venv/bin/activate
pip install -r requirements.txt
.env
file as described aboveOn MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
Once the server is running, you can:
To prepare the package for distribution:
uv sync
uv build
This will create source and wheel distributions in the dist/
directory.
uv publish
Note: You'll need to set PyPI credentials via environment variables or command flags:
--token
or UV_PUBLISH_TOKEN
--username
/UV_PUBLISH_USERNAME
and --password
/UV_PUBLISH_PASSWORD
Since MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we strongly recommend using the MCP Inspector.
You can launch the MCP Inspector via npm
with this command:
npx @modelcontextprotocol/inspector uv --directory B:\NEWTEST\image-generator run image-generator
Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.