Labsco
MCP SERVER

Flux ImageGen MCP Server

by falahgs

Generate images from text through Pollinations AI — as a URL, or written straight to disk.

Image Generation
Summary
The saving mode is what makes it usable in a pipeline.

A URL is fine for looking at an image; a written file with a name and a format you chose is what a build step or a document generator can consume. Listing the available models first is worth the extra call — the default is a fast model, and which alternatives exist depends on what the upstream service is serving that day.

What it is

An image generator with two output modes. It can hand back a URL for the generated image, or generate and save the file locally, which is the difference between showing something in the chat and producing an asset.

What you get
  • `generateImageUrl` returns a URL for an image from a prompt, with optional model, width, height, enhance and safe settings
  • `generateImage` does the same but writes the file, taking an output path, a file name and a format
  • `listImageModels` returns the models available, each with an id, a name and a description
  • The model defaults to flux when you do not name one
Requirements

Node.js >= 16.0.0 and NPM >= 7.0.0. Clone the repository, install dependencies, and run server.js; the client points at that file directly. Published as imagegen-mcp-server, version 1.0.0. The generation is backed by Pollinations AI and the documented setup names no API key.

Setup effort

One command — cmd /c node PATH_TO_YOUR_SERVER\server.js