Labsco
iplanwebsites logo

Image MCP Server

from iplanwebsites

An MCP server for AI image generation using OpenAI and Replicate APIs.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedAccount requiredAdvanced setup

Image MCP Server

An MCP (Model Context Protocol) server that provides AI image generation capabilities using the ai-image npm module, which wraps around OpenAI and Replicate image inference APIs.

Features

  • generate_ai_image: Generate AI images with customizable prompts, sizes, models, and styles
  • square_image: Generate square images (1024x1024) - shortcut command
  • landscape_image: Generate landscape images (1536x1024) - shortcut command
  • portrait_image: Generate portrait images (1024x1536) - shortcut command
  • Built on the ai-image module for seamless integration with OpenAI and Replicate APIs
  • Simple setup and configuration

Development

# Clone the repository
git clone https://github.com/iplanwebsites/image-mcp.git
cd image-mcp

# Install dependencies
npm install

# Run in development mode
npm run dev

# Start the server
npm start

TODOs

Urgent

  • Fix npm module issue: It only works locally...

Improvements

  • Better guides: Add more detailed setup guides with troubleshooting steps, an Add to cursor button, etc

  • Use ai-image library directly: Replace subprocess CLI calls with direct library imports

  • Return file paths: Return created image file paths in response

  • Local inference support: Add support for local models like Flux

  • Image optimization: Add lightweight image resizing and optimization options

  • Image captioning tool: Add captioning model for basic use cases (useful for models without vision)