Flux Schnell (Replicate)
About
Bridges Claude with Replicate's flux-schnell image generation model, enabling direct image creation from text prompts within conversations through a single tool that communicates with the Replicate API.
Details
- Author
- ckz
- Repository
- ckz/flux-schnell-mcp
- GitHub stars
- 3
- Downloads
- 185
- License
- MIT License
- Categories
- Developer Tools, AI, Design, Media, Frontend, Security, API, Other
- Tags
- #integration
Jump to
- Provides a generate_image tool for image generation
- Accepts custom text prompts
- Handles Replicate API communication automatically
- Returns full API response including image URLs and metadata
- Supports MCP environments like Claude Desktop and VSCode Roo
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Flux Schnell (Replicate)Command (node, npx, python, etc.)nodeArguments-
Argument 1
/path/to/flux-schnell-mcp/build/index.js
Environment-
REPLICATE_API_TOKEN
your-replicate-api-token
Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
-
Argument 1
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Clone the repository, install dependencies with npm install, and build the server with npm run build. Configure the server in your MCP client (e.g., Claude Desktop or VSCode Roo) by providing the absolute path to the built index file and setting the REPLICATE_API_TOKEN environment variable. Use the generate_image tool via MCP calls, passing a required prompt argument (text description).
generate_image
Generate an image based on a text prompt. Parameters: prompt (string) - A detailed description for the image generation.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"flux schnell (replicate)": {
"env": {
"REPLICATE_API_TOKEN": "your-replicate-api-token"
},
"args": [
"/path/to/flux-schnell-mcp/build/index.js"
],
"command": "node"
}
}
}
Linux
{
"env": {
"REPLICATE_API_TOKEN": "your-replicate-api-token"
},
"args": [
"/path/to/flux-schnell-mcp/build/index.js"
],
"command": "node"
}
Macos
{
"env": {
"REPLICATE_API_TOKEN": "your-replicate-api-token"
},
"args": [
"/path/to/flux-schnell-mcp/build/index.js"
],
"command": "node"
}
Windows
{
"env": {
"REPLICATE_API_TOKEN": "your-replicate-api-token"
},
"args": [
"/path/to/flux-schnell-mcp/build/index.js"
],
"command": "node"
}
一个基于MCP(Model Context Protocol)的服务器,用于通过Replicate API调用Flux Schnell模型生成图片。
- 提供generate_image工具用于生成图片
- 支持自定义文本提示词
- 自动处理与Replicate API的通信
- 完整的错误处理和响应
- Node.js (v14或更高版本)
- Replicate API Token
- MCP兼容的环境(如Claude Desktop)
- 访问Replicate官网并注册账号
- 登录后访问API Tokens页面
- 点击"Create API token"创建新的token
- 复制生成的token(格式如:r8_xxxxxx)
git clone [repository-url] cd flux-schnell-mcp npm install
- MacOS:~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:%APPDATA%/Claude/claude_desktop_config.json
{ "mcpServers": { "flux-schnell": { "command": "node", "args": ["/path/to/flux-schnell-mcp/build/index.js"], "env": { "REPLICATE_API_TOKEN": "your-replicate-api-token" }, "disabled": false, "alwaysAllow": [] } } }
- Linux:~/.vscode-remote/data/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json
- MacOS:~/Library/Application Support/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json
- Windows:%APPDATA%/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json
服务器提供了一个名为generate_image的工具,可以通过MCP调用:
<use_mcp_tool> <server_name>flux-schnell</server_name> <tool_name>generate_image</tool_name> <arguments> { "prompt": "a beautiful sunset over the ocean, digital art style" } </arguments> </use_mcp_tool>
- prompt: 用于生成图片的文本描述(必填)
- 建议使用详细的描述来获得更好的生成结果
- 可以包含风格、场景、细节等信息
服务器将返回Replicate API的完整响应,包含生成的图片URL和其他元数据。
由于MCP服务器通过stdio通信,调试可能比较困难。推荐使用MCP Inspector:
- 请妥善保管您的Replicate API Token,不要将其分享给他人
- 确保在配置文件中使用正确的文件路径
- 生成图片可能需要一些时间,请耐心等待响应
- 如遇到错误,请检查API Token是否正确,以及网络连接是否正常
This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.
Create crafted UI components inspired by the best 21st.dev design engineers.
Bring agent evaluations, observability, and synthetic test set generation directly into your IDE for free with Galileo's new MCP server
An MCP server to help AI assistants to answer questions and generate AccelByte Extend SDK code more effectively .
MCP server for AI Diagram Maker — generate beautiful software engineering diagrams directly inside Cursor, Claude Desktop, Claude Code, or any MCP-compatible AI agent
ALAPI MCP Tools,Call hundreds of API interfaces via MCP
AI-powered SVG animation generator that transforms static files into animated SVG components using the Allyson platform
MCP server that gives AI assistants on-demand access to 1,500+ amCharts docs, ~300 code examples, and 1000+ class API references.
APIMatic MCP Server is used to validate OpenAPI specifications using APIMatic. The server processes OpenAPI files and returns validation summaries by leveraging APIMatic’s API.
One shared context layer for AI agents and humans — live API specs, DB schemas, and versioned contracts across repos so every agent and teammate works from the same source of truth.
Build and deploy full-stack Next.js apps with 98 tools for React, AWS, and MongoDB
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.




