An MCP server for generating images using the Pollinations AI API.
A specialized Model Context Protocol (MCP) server for image generation and manipulation, powered by Pollinations AI.
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:
# Clone the repository
git clone https://github.com/yourusername/flux-imagegen-mcp-server.git
# Install dependencies
npm install
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.
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
}
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"
}
listImageModels
)Returns a list of available image generation models.
// Example response:
{
"models": [
{
"id": "flux",
"name": "Flux",
"description": "Default image generation model"
},
// ... other models
]
}
# Start the server
node server.js
To contribute or modify the server:
The server provides detailed error messages for common issues:
{
"error": {
"code": "ERROR_CODE",
"message": "Human-readable error message",
"details": { /* Additional error details */ }
}
}
// 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 an image from URL
const downloadResult = await downloadImage({
imageUrl: "https://example.com/image.jpg",
fileName: "downloaded-image",
format: "png"
});
For issues and feature requests, please create an issue in the repository or contact the developer:
This project is licensed under the MIT License - see the LICENSE file for details.
Made with ā¤ļø by Falah.G.Salieh Ā© 2025 All rights reserved
Interact with the Unstructured API to manage data sources, destinations, workflows, and jobs.
Interact with an MCP registry to check health, list entries, and get server details.
A Python-based server for programmatically managing Clappia applications, forms, and submissions via its API.
Loads and validates LAML (YAML-based markup language) documents via the Model Context Protocol.
A natural language interface for cell-cell communication analysis using the Liana framework.
An MCP server for interacting with the Postman API, requiring an API key.
An example of deploying a remote MCP server on Cloudflare Workers without authentication.
Access prompt templates managed in an MLflow Prompt Registry. Requires a running MLflow server configured via the MLFLOW_TRACKING_URI environment variable.
Advanced code search and transformation powered by ugrep and ast-grep for modern development workflows.
A server for JavaScript/TypeScript development with intelligent project tooling and testing capabilities.