mcp-flux-schnell
mcp-flux-schnell MCP 服务器
一个基于 TypeScript 的 MCP 服务器,它使用 Flux Schnell 模型实现了文本转图片的生成工具。该服务器集成了 Cloudflare 的 Flux Schnell 工作器 API,可通过 MCP 提供图片生成功能。
特征
工具
generate_image- 根据文本描述生成图像以文本提示作为输入(1-2048 个字符)
返回生成的图像文件的路径
Related MCP server: Image Generator MCP Server
环境变量
必须配置以下环境变量:
FLUX_API_URL- Flux Schnell API 端点的 URLFLUX_API_TOKEN- Flux Schnell API 的身份验证令牌WORKING_DIR(可选) - 生成的图像的保存目录(默认为当前工作目录)
发展
安装依赖项:
npm install
# or
pnpm install构建服务器:
npm run build
# or
pnpm build安装
游标配置
在 Cursor 中配置 MCP 服务器有两种方法:
项目配置
对于特定于项目的工具,请在项目目录中创建.cursor/mcp.json文件:
{
"mcpServers": {
"mcp-flux-schnell": {
"command": "node",
"args": ["/path/to/mcp-flux-schnell/build/index.js"],
"env": {
"FLUX_API_URL": "your flux api url",
"FLUX_API_TOKEN": "your flux api token",
"WORKING_DIR": "your working directory"
}
}
}
}此配置仅在特定项目内可用。
全局配置
对于您想要在所有项目中使用的工具,请在主目录中创建具有相同配置的~/.cursor/mcp.json文件:
{
"mcpServers": {
"mcp-flux-schnell": {
"command": "node",
"args": ["/path/to/mcp-flux-schnell/build/index.js"],
"env": {
"FLUX_API_URL": "your flux api url",
"FLUX_API_TOKEN": "your flux api token",
"WORKING_DIR": "your working directory"
}
}
}
}这使得 MCP 服务器可在您的所有 Cursor 工作区中使用。
Available Tools
1 toolgenerate_imageC
Generate an image from a text prompt using Flux Schnell model
Inputs: prompt (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool, there is no possibility of ambiguity or overlap between tools. The single tool 'generate_image' has a clear and distinct purpose that cannot be confused with any other tool in the set.
The single tool name 'generate_image' follows a clear verb_noun pattern. With only one tool, consistency is inherently perfect as there are no other names to compare against or deviate from.
A single tool is too few for most practical server purposes, as it severely limits functionality and flexibility. For an image generation server, typical expectations might include variations like upscaling, editing, or batch processing, making one tool feel thin and under-scoped.
The server's domain appears to be image generation, but with only a basic generation tool, there are significant gaps. Missing operations might include image editing, style variations, resolution adjustments, or batch processing, which could lead to agent failures when more complex tasks are required.
Maintenance
Related MCP Connectors
MCP server for Flux AI image generation
Generate AI images and videos from any compatible MCP client.
MCP server for OpenAI API (chat completions, image generation, embeddings) via AceDataCloud
Generate AI videos, images, music, and speech from any MCP client
Related MCP Servers
- FlicenseBqualityDmaintenanceA TypeScript-based MCP server that generates images using OpenAI's dall-e-3 model based on text prompts and saves them to a specified directory.111-
- FlicenseCqualityNot gradedmaintenanceA TypeScript-based MCP server that lets users generate images using OpenAI's dall-e-3 model by providing a prompt and image name.11-
- AlicenseNot gradedqualityDmaintenanceA Node.js + TypeScript MCP server that proxies to DeepSeek's Chat, Image, and TTS APIs for conversation, image generation, and text-to-speech.MIT
- AlicenseNot gradedqualityDmaintenanceImage generation MCP server running on Cloudflare Workers, supporting multiple models like FLUX and SDXL with OpenAI-compatible endpoints.MIT