Skip to main content
Glama

mcp-flux-schnell

by bytefer

mcp-flux-schnell MCP 服务器

一个基于 TypeScript 的 MCP 服务器,它使用 Flux Schnell 模型实现了文本转图片的生成工具。该服务器集成了 Cloudflare 的 Flux Schnell 工作器 API,可通过 MCP 提供图片生成功能。

特征

工具

  • generate_image - 根据文本描述生成图像
    • 以文本提示作为输入(1-2048 个字符)
    • 返回生成的图像文件的路径

环境变量

必须配置以下环境变量:

  • FLUX_API_URL - Flux Schnell API 端点的 URL
  • FLUX_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 工作区中使用。

Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

基于 TypeScript 的 MCP 服务器,可使用 Cloudflare 的 Flux Schnell 模型 API 实现文本到图像的生成。

  1. 特征
    1. 工具
  2. 环境变量
    1. 发展
      1. 安装
        1. 游标配置

      Related MCP Servers

      • A
        security
        A
        license
        A
        quality
        A Model Context Protocol server that enables generation of high-quality images using the Flux.1 Schnell model via Together AI, allowing users to create images from text prompts with customizable dimensions.
        Last updated -
        1
        15
        Python
        MIT License
        • Apple
      • A
        security
        F
        license
        A
        quality
        A Model Context Protocol server that generates images using Replicate's FLUX model and stores them in Cloudflare R2, allowing users to create images through simple prompts and retrieve accessible URLs.
        Last updated -
        1
        10
      • -
        security
        A
        license
        -
        quality
        A server that enables generating images through the Replicate API by calling the Flux Schnell model via the Model Context Protocol (MCP).
        Last updated -
        3
        JavaScript
        MIT License
      • A
        security
        A
        license
        A
        quality
        An MCP server that enables AI assistants to generate images using Black Forest Labs' Flux model via Cloudflare Workers.
        Last updated -
        1
        JavaScript
        MIT License

      View all related MCP servers

      MCP directory API

      We provide all the information about MCP servers via our MCP API.

      curl -X GET 'https://glama.ai/api/mcp/v1/servers/bytefer/mcp-flux-schnell'

      If you have feedback or need assistance with the MCP directory API, please join our Discord server