Image Generation

Image Generation

This MCP server provides image generation capabilities using the Replicate Flux model.

45
Stars
8
Forks
0
Releases

Overview

This MCP server exposes image generation functionality via the Replicate Flux model. It can be installed and run in several ways: via Smithery for automatic deployment, directly with NPX (no local setup), or through local npm installations (global or local). Claude Desktop can be configured to run the server under the image-gen MCP server name, with two configuration approaches: an NPX-based setup that runs from npm, and a Local Installation setup that runs node against the built index.js. The server requires a Replicate API token (REPLICATE_API_TOKEN) and can select the Flux model with the MODEL environment variable (defaulting to black-forest-labs/flux-schnell). Configuration parameters include disabled (to enable/disable the server) and autoApprove (which tools can run without confirmation). The Available Tool generate_image creates images from text prompts and supports prompt, seed, aspect_ratio, output_format, and num_outputs. The tool returns an array of URLs to the generated images. An example usage demonstrates calling use_mcp_tool with server_name 'image-gen' and tool_name 'generate_image'. The project is MIT licensed.

Details

Owner
GongRzhe
Language
JavaScript
License
MIT License
Updated
2025-12-07

Features

Image generation via Flux model

Generates images using the Flux model on Replicate through the image-gen MCP server's generate_image tool.

Replicate Flux model integration

Integrates with the Replicate Flux model and allows selecting the model via the MODEL environment variable (default: black-forest-labs/flux-schnell).

NPX-based quick start

Supports running the server directly from npm with NPX without local installation.

Local installation support

Provides both global and local npm installation options for the image-gen server.

Claude Desktop configuration

Configures Claude Desktop to run the MCP server (image-gen) with NPX-based or Local Installation setups in a dedicated configuration block.

API token authentication

Requires REPLICATE_API_TOKEN to authenticate with the Replicate API.

Configurable runtime options

Exposes disabled and autoApprove parameters to control enablement and tool confirmation behavior.

generate_image tool with flexible parameters

The generate_image tool accepts prompt, seed, aspect_ratio, output_format, and num_outputs to generate images and returns URLs.

Tags

image-generationflux-modelreplicatemcp-serverclaude-desktopimage-genprompt-based-generationapi-token