Image Generator
About
Generate and save images using the Replicate API.
Details
- Author
- rmcendarfer2017
- Categories
- Developer Tools, AI, Other, API
Jump to
Setup
Install Image Generator in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/rmcendarfer2017/MCP-image-gen
Follow the installation instructions in the repository README, then restart your MCP client.
Generate and save images using the Replicate API.
An MCP server that uses Replicate to generate images and allows users to save them.
The server implements an image storage system with:
- Custom image:// URI scheme for accessing individual generated images
- Each image resource has a name based on its prompt, description with creation date, and image/png mimetype
- generate-image: Creates prompts for generating images using Stable Diffusion
- Optional "style" argument to control the image style (realistic/artistic/abstract)
- Generates a prompt template with style-specific guidance
- generate-image: Generates an image using Replicate's Stable Diffusion model
- Takes "prompt" as a required string argument
- Optional parameters include "negative_prompt", "width", "height", "num_inference_steps", and "guidance_scale"
- Returns the generated image and its URL
- Takes "image_url" and "prompt" as required string arguments
- Generates a unique ID for the image and saves it to the "generated_images" directory
- Returns a list of all saved images with their metadata and thumbnails
To use this image generator, you need a Replicate API token:
- Create an account atReplicate
- Get your API token fromhttps://replicate.com/account
- Create a.envfile based on the provided.env.exampletemplate:
REPLICATE_API_TOKEN=your_replicate_api_token_here
Important:The.envfile is excluded from version control via.gitignoreto 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
- Create and activate a virtual environment:
# Using venv python -m venv .venv # On Windows .venv\Scripts\activate # On macOS/Linux source .venv/bin/activate
- Set up your.envfile as described above
On MacOS:~/Library/Application\ Support/Claude/claude_desktop_config.jsonOn Windows:%APPDATA%/Claude/claude_desktop_config.json
- Generate an image by using the "generate-image" tool with a descriptive prompt
- Save the generated image using the "save-image" tool with the image URL and prompt
- View all saved images using the "list-saved-images" tool
- Access saved images through the resource list
To prepare the package for distribution:
This will create source and wheel distributions in thedist/directory.
Note: You'll need to set PyPI credentials via environment variables or command flags:
- Token:--tokenorUV_PUBLISH_TOKEN
- Or username/password:--username/UV_PUBLISH_USERNAMEand--password/UV_PUBLISH_PASSWORD
Since MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we strongly recommend using theMCP Inspector.
You can launch the MCP Inspector vianpmwith 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.
This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.
Generate images using the Together AI API. Supports custom aspect ratios, save paths, and batch generation.
Generate 3D models from text or image. Browse 10K+ free 3D models. AI creative platform with API.
A TypeScript-based server for generating images using the Together AI API.
Pay-per-call AI API marketplace with 47 endpoints — OCR, LLM chat, image-gen, TTS
Product mockup rendering API. Upload PSD templates, render photorealistic mockups with 9 MCP tools including AI render.
Generate images using Amazon Nova Canvas with text prompts and color guidance.
Server for advanced AI-driven video editing, semantic search, multilingual transcription, generative media, voice cloning, and content moderation.
Identity infrastructure for the AI economy. 33-trait psychometric engine — belonging probability, trait vectors, attunement depth. Remote streamable-HTTP. Free tier: 16 tools, 10 req/min.
An unofficial MCP server for the Artificial Analysis API
Access 30+ AI models in Claude Code with zero API keys. One wallet, pay-per-request.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





