mcp-flux-schnell logo

mcp-flux-schnell

by bytefer

A TypeScript-based MCP server that implements a text-to-image generation tool using the Flux Schnell model. This server integrates with Cloudflare's Flux Schnell worker API to provide image generation capabilities through MCP.

View on GitHub

Last updated: N/A

What is mcp-flux-schnell?

This is an MCP (Meta-Control Protocol) server that utilizes the Flux Schnell model to generate images from text descriptions. It acts as a bridge between a client (like Cursor or Claude Desktop) and the Flux Schnell API, allowing users to generate images directly from their text prompts.

How to use mcp-flux-schnell?

To use this server, you need to install it either via Smithery or manually configure it in your client (Cursor). You'll need to set the FLUX_API_URL and FLUX_API_TOKEN environment variables to authenticate with the Flux Schnell API. Once configured, you can use the generate_image tool by providing a text prompt, and the server will return the path to the generated image.

Key features of mcp-flux-schnell

  • Text-to-image generation using Flux Schnell

  • MCP server implementation

  • Integration with Cloudflare's Flux Schnell API

  • Configurable working directory for saving images

Use cases of mcp-flux-schnell

  • Generating images for design mockups

  • Creating visual content from text descriptions

  • Integrating image generation into AI-powered workflows

  • Automated content creation

  • Generating images for chatbots or virtual assistants

FAQ from mcp-flux-schnell

What is the Flux Schnell API?

The Flux Schnell API is a service provided by Cloudflare that allows you to generate images from text prompts.

How do I get a Flux Schnell API token?

You need to sign up for the Flux Schnell API and obtain an authentication token.

Where are the generated images saved?

By default, images are saved in the current working directory. You can change this by setting the WORKING_DIR environment variable.

What is the maximum length of the text prompt?

The text prompt can be between 1 and 2048 characters long.

Can I use this server with other MCP-compatible clients?

Yes, as long as the client supports MCP and allows you to configure the server's command and environment variables.