Related MCP Server Resources

Explore more AI models, providers, and integration options:

  • Explore AI Models
  • Explore AI Providers
  • Explore MCP Servers
  • LangDB Pricing
  • Documentation
  • AI Industry Blog
  • MCP Server for ArangoDB
  • AWS Knowledge Base Retrieval MCP Server
  • Deriv API MCP Server
  • Image Generation MCP Server
  • Gemini MCP Image Generation Server
Back to MCP Servers
Flux Schnell MCP Server

Flux Schnell MCP Server

Public
ckz/flux-schnell-mcp

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.

javascript
0 tools
May 30, 2025
Updated Jun 4, 2025

Supercharge Your AI with Flux Schnell MCP Server

MCP Server

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.

Unified API Access
Complete Tracing
Instant Setup
Get Started Now

Free tier available • No credit card required

Instant Setup
99.9% Uptime
10,000+Monthly Requests

Flux Schnell MCP Server

一个基于MCP(Model Context Protocol)的服务器,用于通过Replicate API调用Flux Schnell模型生成图片。

功能特点

  • 提供generate_image工具用于生成图片
  • 支持自定义文本提示词
  • 自动处理与Replicate API的通信
  • 完整的错误处理和响应

前置要求

  1. Node.js (v14或更高版本)
  2. Replicate API Token
  3. MCP兼容的环境(如Claude Desktop)

获取Replicate API Token

  1. 访问 Replicate官网 并注册账号
  2. 登录后访问 API Tokens页面
  3. 点击"Create API token"创建新的token
  4. 复制生成的token(格式如:r8_xxxxxx)

安装

  1. 克隆项目并安装依赖:
git clone [repository-url] cd flux-schnell-mcp npm install
  1. 构建服务器:
npm run build

配置

Claude Desktop配置

  1. 打开配置文件:

    • MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%/Claude/claude_desktop_config.json
  2. 添加服务器配置:

{ "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 Roo配置

  1. 打开配置文件:

    • 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
  2. 添加与上述相同的服务器配置。

使用方法

服务器提供了一个名为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,可以在浏览器中访问调试工具。

注意事项

  1. 请妥善保管您的Replicate API Token,不要将其分享给他人
  2. 确保在配置文件中使用正确的文件路径
  3. 生成图片可能需要一些时间,请耐心等待响应
  4. 如遇到错误,请检查API Token是否正确,以及网络连接是否正常
Publicly Shared Threads0

Discover shared experiences

Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!

Share your threads to help others
Related MCPs5
  • MCP Server for ArangoDB
    MCP Server for ArangoDB

    Model Context Protocol server enabling seamless interaction with ArangoDB through core database oper...

    7 tools
    Added May 30, 2025
  • AWS Knowledge Base Retrieval MCP Server
    AWS Knowledge Base Retrieval MCP Server

    Retrieval-Augmented Generation (RAG) server enabling efficient extraction of contextual information ...

    Added May 30, 2025
  • Deriv API MCP Server
    Deriv API MCP Server

    Model Context Protocol server enabling seamless interaction with the Deriv API to retrieve active tr...

    2 tools
    Added May 30, 2025
  • Image Generation MCP Server
    Image Generation MCP Server

    Enables high-quality image generation via Model Context Protocol with customizable dimensions, promp...

    1 tools
    Added May 30, 2025
  • Gemini MCP Image Generation Server
    Gemini MCP Image Generation Server

    Provides image generation capabilities via Google's Gemini 2 API using the Model Context Protocol, e...

    1 tools
    Added May 30, 2025