An MCP server enabling image generation via the Replicate API with customizable text prompts, seamless Model Context Protocol integration, robust error handling, and compatibility with environments like Claude Desktop and VSCode Roo.
Unlock the full potential of Flux Schnell MCP Server through LangDB's AI Gateway. Get enterprise-grade security, analytics, and seamless integration with zero configuration.
Free tier available • No credit card required
一个基于MCP(Model Context Protocol)的服务器,用于通过Replicate API调用Flux Schnell模型生成图片。
generate_image
工具用于生成图片git clone [repository-url] cd flux-schnell-mcp npm install
npm run build
打开配置文件:
~/Library/Application Support/Claude/claude_desktop_config.json
%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": [] } } }
打开配置文件:
~/.vscode-remote/data/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json
~/Library/Application Support/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json
%APPDATA%/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json
添加与上述相同的服务器配置。
服务器提供了一个名为generate_image
的工具,可以通过MCP调用:
flux-schnell generate_image { "prompt": "a beautiful sunset over the ocean, digital art style" }
prompt
: 用于生成图片的文本描述(必填)
服务器将返回Replicate API的完整响应,包含生成的图片URL和其他元数据。
由于MCP服务器通过stdio通信,调试可能比较困难。推荐使用MCP Inspector:
npm run inspector
Inspector将提供一个URL,可以在浏览器中访问调试工具。
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!