flux-img-mcp
1
The Flux Image MCP Server is designed to generate images via the Flux Schnell model using the Replicate platform. It supports image generation based on textual descriptions, providing a JSON response with the image URL if successful.
Flux Image MCP Server
This project is an MCP server that enables image generation using the Flux Schnell model on the Replicate platform.
Installation
- Install the MCP SDK globally and clone the repository.
- Build the server and configure it by adding it to the MCP settings file.
Configuration
- Requires
REPLICATE_API_TOKEN
from Replicate account settings.
Usage
- Provides the
generate_image
tool, generating images based on a text prompt.
Development
- Modify source code, rebuild, and restart the server to apply changes.
Error Handling
- Handles errors such as missing API tokens, invalid parameters, and network issues.
Security
- Advises never to commit tokens to version control and validate input parameters.