✨ From vibe coding to vibe deployment. UBOS MCP turns ideas into infra with one message.

Learn more

What is the Flux Schnell MCP Server?

The Flux Schnell MCP Server is an implementation of a text-to-image generation service using the Flux Schnell model, accessible via the Model Context Protocol (MCP).

What is MCP?

MCP (Model Context Protocol) is an open protocol that standardizes how applications provide context to Large Language Models (LLMs).

What are the key features of the Flux Schnell MCP Server?

Key features include customizable image dimensions, seed control for reproducibility, asynchronous streaming response, and an HTTP interface for Hugging Face models.

What are the installation requirements for the server?

The server requires Python 3.10 or higher and the httpx >= 0.28.1 and mcp[cli] >= 1.3.0 dependencies.

How do I install the required dependencies?

You can install the dependencies using uv venv && source .venv/bin/activate (Unix/macOS) or .venvScriptsactivate (Windows) followed by uv sync.

How can I debug the server?

You can debug the server using mcp dev main.py or npx -y @modelcontextprotocol/inspector uv run main.py.

What parameters can I configure when using the API?

You can configure the prompt (text prompt), image_width (optional, default 512), image_height (optional, default 512), and seed (optional, default 3).

Can you provide an example of how to use the server in Python?

Yes, here is an example:

python

示例代码

async def test_main(): img_url = await image_generation( prompt=“your prompt here”, image_width=512, # 可选,默认512 image_height=512, # 可选,默认512 seed=3 # 可选,默认3 ) print(img_url)

What is UBOS?

UBOS is a full-stack AI Agent Development Platform focused on bringing AI Agents to every business department. Our platform helps you orchestrate AI Agents, connect them with your enterprise data, and build custom AI Agents with your LLM model and Multi-Agent Systems.

How does the Flux Schnell MCP Server integrate with UBOS?

The Flux Schnell MCP Server seamlessly integrates with the UBOS platform, allowing you to leverage the full power of the UBOS ecosystem for AI Agent development and orchestration.

Featured Templates

View More
AI Assistants
Image to text with Claude 3
152 1366
AI Characters
Your Speaking Avatar
169 928
AI Assistants
AI Chatbot Starter Kit v0.1
140 913
AI Agents
AI Video Generator
252 2007 5.0
AI Characters
Sarcastic AI Chat Bot
129 1713

Start your free trial

Build your solution today. No credit card required.

Sign In

Register

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.