Flux ImageGen MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Flux ImageGen MCP Servergenerate a photo of a futuristic city at night with neon lights"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Flux ImageGen MCP Server
A specialized Model Context Protocol (MCP) server for image generation and manipulation, powered by Pollinations AI.
Developer
Author: Falah.G.Salieh
Copyright: © 2025 All rights reserved
Related MCP server: DALL-E MCP Server
Overview
ImageGen MCP Server is a streamlined server implementation that provides powerful image generation capabilities through the Model Context Protocol (MCP). This server specializes in three core functionalities:
Image URL Generation
Direct Image Generation
Model Listing and Management
Features
🖼️ Image Generation: Create stunning images from text prompts
🎨 Multiple Models: Support for various image generation models
🔧 Flexible Configuration: Easy to set up and customize
🚀 High Performance: Optimized for quick response times
🔄 MCP Compatible: Fully compliant with Model Context Protocol
Installation
# Clone the repository
git clone https://github.com/yourusername/flux-imagegen-mcp-server.git
# Install dependencies
npm installConfiguration
Claude Desktop Configuration
To use this server with Claude Desktop, update your configuration file at:
C:\Users\[YourUsername]\AppData\Roaming\Claude\claude_desktop_config.json
{
"mcpServers": {
"mcpollinations": {
"command": "cmd",
"args": [
"/c",
"node",
"PATH_TO_YOUR_SERVER\\server.js"
],
"tools": [
"generateImageUrl",
"generateImage",
"listImageModels"
]
}
}
}Replace PATH_TO_YOUR_SERVER with your actual server path.
Available Tools
1. Generate Image URL (generateImageUrl)
Generates a URL for an image based on a text prompt.
{
"prompt": "A beautiful sunset over mountains",
"model": "flux", // optional, defaults to 'flux'
"width": 1024, // optional
"height": 1024, // optional
"enhance": true, // optional
"safe": false // optional
}2. Generate Image (generateImage)
Generates and saves an image directly from a text prompt.
{
"prompt": "A serene lake reflecting mountains",
"model": "flux",
"width": 1024,
"height": 1024,
"enhance": true,
"safe": false,
"outputPath": "./output",
"fileName": "mountain_lake",
"format": "png"
}3. List Image Models (listImageModels)
Returns a list of available image generation models.
// Example response:
{
"models": [
{
"id": "flux",
"name": "Flux",
"description": "Default image generation model"
},
// ... other models
]
}Running the Server
# Start the server
node server.jsEnvironment Requirements
Node.js >= 16.0.0
NPM >= 7.0.0
Windows/Linux/MacOS compatible
Development
To contribute or modify the server:
Fork the repository
Create your feature branch
Make your changes
Submit a pull request
Error Handling
The server provides detailed error messages for common issues:
{
"error": {
"code": "ERROR_CODE",
"message": "Human-readable error message",
"details": { /* Additional error details */ }
}
}Examples
Basic Image Generation
// Generate an image URL
const response = await generateImageUrl({
prompt: "A futuristic city at night",
model: "flux",
width: 1024,
height: 1024
});
// Generate and save an image
const image = await generateImage({
prompt: "A peaceful garden with butterflies",
outputPath: "./images",
fileName: "garden_scene"
});Download Image Example
// Download an image from URL
const downloadResult = await downloadImage({
imageUrl: "https://example.com/image.jpg",
fileName: "downloaded-image",
format: "png"
});Support
For issues and feature requests, please create an issue in the repository or contact the developer:
Email: [Your contact email]
GitHub: [Your GitHub profile]
License
This project is licensed under the MIT License - see the LICENSE file for details.
Made with ❤️ by Falah.G.Salieh © 2025 All rights reserved
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables AI assistants to generate images, text, and audio content through the Pollinations APIs. Provides direct access to multimodal generation capabilities including image creation from text prompts, text-to-speech, and text generation.Last updated12101MIT
- FlicenseBqualityDmaintenanceEnables AI assistants to generate high-quality images using OpenAI's DALL-E 3 model with configurable parameters like size, quality, and style. Generated images are automatically saved to the local filesystem with comprehensive error handling.Last updated1
- AlicenseAqualityAmaintenanceEnables AI image generation through Volcano Engine's Seedream 4.0 API, supporting text-to-image, image-to-image, multi-image fusion, and sequential generation with automatic local saving and Markdown support.Last updated516MIT
- Alicense-qualityBmaintenanceEnables AI assistants to generate high-quality images using Google's Gemini and Imagen models with support for multiple aspect ratios, dynamic model selection, and direct file saving capabilities.Last updatedMIT
Related MCP Connectors
Generate logos, social posts, app screenshots, comic panels & visual-novel assets from prompts.
Generate PWA icon sets and iOS splash screens from a text prompt or an existing image.
Generate images, GIFs, and PDFs from HTML, URLs, or templates — from your AI agent.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/falahgs/flux-imagegen-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server