ai-image-gen-mcp

ai-image-gen-mcp

Provides multi-model AI image generation via MCP tools, supporting Seedream, SDXL, and FLUX models with GPU acceleration.

Category
Visit Server

README

🎨 AI Image Gen MCP Server

Multi-model AI image generation MCP Server. Supports Seedream (Doubao), SDXL, FLUX.1 Schnell/Dev. 30x RTX 4090 GPU accelerated.

Features

  • 10 MCP Tools: generate_image, generate_from_image, list_models, get_model_info, upscale_image, remove_background, batch_generate, get_generation_status, style_transfer, image_variation
  • 4 Models: Seedream 5.0 (API), SDXL (local), FLUX.1 Schnell (local), FLUX.1 Dev (local)
  • 8 Art Styles: photorealistic, anime, oil-painting, watercolor, 3d-render, pixel-art, chinese-ink, cyberpunk
  • GPU Accelerated: 30x RTX 4090 for local models, Seedream API for cloud generation

Quick Start

# Install
pip install -r requirements.txt

# Run (stdio mode - for Claude/WorkBuddy)
python server.py

# Run (HTTP mode - for remote access)
python server.py --transport http --port 8009

Tools

Tool Description
generate_image Text-to-image generation
generate_from_image Image-to-image transformation
list_models List available models
get_model_info Get model details and pricing
upscale_image Super-resolution upscaling (2x/4x)
remove_background Background removal
batch_generate Generate multiple images at once
get_generation_status Check task status
style_transfer Apply artistic styles
image_variation Generate image variations

Models

Model Provider Speed Quality Cost
Seedream 5.0 Doubao API ~17s High ¥0.04/image
SDXL Local 4090 ~5s High Free
FLUX.1 Schnell Local 4090 ~3s Good Free
FLUX.1 Dev Local 4090 ~15s Best Free

Environment Variables

  • SEEDREAM_API_KEY: Seedream API key (default: built-in)
  • SEEDREAM_BASE_URL: Seedream API base URL
  • COMFYUI_URL: Local ComfyUI endpoint (default: http://localhost:8188)
  • IMAGE_OUTPUT_DIR: Output directory for generated images

MCP Config

{
  "mcpServers": {
    "ai-image-gen": {
      "command": "python",
      "args": ["server.py"],
      "cwd": "/path/to/ai-image-gen-mcp"
    }
  }
}

<<<<<<< HEAD

在线访问(推荐)

无需本地安装,直接在MCP客户端配置:

{
  "mcpServers": {
    "ai-image-gen-mcp": {
      "url": "http://www.mzse.com/image-gen-mcp/"
    }
  }
}

REST API

curl http://www.mzse.com/image-gen-mcp/

部署状态

项目 地址
域名 http://www.mzse.com/image-gen-mcp/
GitHub https://github.com/zhaohongyuziranerran/ai-image-gen-mcp

=======

ec2630c (Initial commit: AI Image Gen MCP Server v1.0.0 - 10 tools, 4 models, Seedream/SDXL/FLUX)

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured