Get the FREE Ultimate OpenClaw Setup Guide →

flux-imagegen

MCP server from falahgs/flux-imagegen-mcp-server

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio falahgs-flux-imagegen-mcp-server node server.js

How to use

Flux ImageGen MCP Server exposes a Model Context Protocol (MCP) interface dedicated to image generation and manipulation powered by Pollinations AI. It supports generating image URLs from prompts, directly generating and saving images, and listing available image generation models. Use the configured MCP tools to integrate image capabilities into your MCP-enabled clients, such as Claude Desktop, or any other MCP consumer that can call these tools. The server is designed for high performance and can manage multiple models, enabling flexible workflows for both URL-based results and on-disk image generation.

How to install

Prerequisites:\n- Node.js (v16+ recommended) and npm installed on your system.\n- Git to clone the repository.\n\nInstallation steps:\n1) Clone the repository:\n git clone https://github.com/yourusername/flux-imagegen-mcp-server.git\n\n2) Navigate to the project folder:\n cd flux-imagegen-mcp-server\n\n3) Install dependencies:\n npm install\n\n4) (Optional) Configure environment variables if needed.\n- You may set up any required API keys or model configurations in a local config file or environment, depending on your deployment.\n\n5) Run the server:\n node server.js\n\n6) Verify the server is running by sending a test MCP command or hitting any health endpoint if provided by the server.

Additional notes

Tips and notes:\n- Ensure Node.js version compatibility (v16+).\n- If running on Windows, you may adapt the startup command to your shell (e.g., using cmd or PowerShell) but the standard invocation is node server.js.\n- The MCP tools exposed by the server include generateImageUrl, generateImage, and listImageModels. Use these in your MCP client configuration as shown in the README example.\n- If you experience model loading or image generation delays, check your model configuration and any API rate limits from Pollinations AI.\n- Keep your dependencies up to date by running npm install regularly.\n- For production deployments, consider containerization (Docker) or process managers (pm2, systemd) to ensure reliability and automatic restarts.

Related MCP Servers

Sponsor this space

Reach thousands of developers