Token导航 LogoToken导航TokenDH.com
Flux ImageGen MCP Server logo
设计创作HTTP官方级别未说明来源级核验

Flux ImageGen MCP Server

MCP Server

Flux ImageGen MCP Server 是一个基于 Model Context Protocol (MCP) 的专用服务器,提供图像生成、图像 URL 生成和模型管理功能,适用于需要快速、高效图像生成的应用场景。

工具数

3

提示词数

0

GitHub Stars

4

资源数

0
图像生成多模型支持JavaScriptClaude高性能Claude DesktopClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

falahgs

提供方

falahgs

最后核验

2026/5/17 20:29

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

Flux ImageGen MCP服务器

用于图像生成和操作的专用模型上下文协议(MCP)服务器,由Pollinations AI提供支持。

开发者

  • 作者:法拉。G.萨利耶
  • 版权:©2025版权所有

概述

ImageGen MCP Server是一种简化的服务器实现,通过模型上下文协议(MCP)提供强大的图像生成功能。此服务器专门提供三个核心功能:

  1. 图像URL生成
  2. 直接图像生成
  3. 模型列表和管理

特性

  • 🖼️ 图像生成:根据文本提示创建令人惊叹的图像
  • 🎨 多种型号:支持各种图像生成模型
  • 🔧 灵活的配置:易于设置和自定义
  • 🚀 高性能:针对快速响应时间进行了优化
  • 🔄 MCP兼容:完全符合模型上下文协议

安装

# Clone the repository
git clone https://github.com/yourusername/flux-imagegen-mcp-server.git

# Install dependencies
npm install

配置

Claude桌面配置

要将此服务器与Claude Desktop一起使用,请在以下位置更新配置文件: C:\Users\[YourUsername]\AppData\Roaming\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "mcpollinations": {
      "command": "cmd",
      "args": [
        "/c",
        "node",
        "PATH_TO_YOUR_SERVER\\server.js"
      ],
      "tools": [
        "generateImageUrl",
        "generateImage",
        "listImageModels"
      ]
    }
  }
}

替换 PATH_TO_YOUR_SERVER 使用您的实际服务器路径。

可用工具

1.生成图像URL(generateImageUrl)

根据文本提示为图像生成URL。

{
  "prompt": "A beautiful sunset over mountains",
  "model": "flux",  // optional, defaults to 'flux'
  "width": 1024,    // optional
  "height": 1024,   // optional
  "enhance": true,  // optional
  "safe": false     // optional
}

2.生成图像(generateImage)

直接从文本提示生成并保存图像。

{
  "prompt": "A serene lake reflecting mountains",
  "model": "flux",
  "width": 1024,
  "height": 1024,
  "enhance": true,
  "safe": false,
  "outputPath": "./output",
  "fileName": "mountain_lake",
  "format": "png"
}

3.列出图像模型(listImageModels)

返回可用图像生成模型的列表。

// Example response:
{
  "models": [
    {
      "id": "flux",
      "name": "Flux",
      "description": "Default image generation model"
    },
    // ... other models
  ]
}

运行服务器

# Start the server
node server.js

环境要求

  • Node.js>=16.0.0
  • NPM>=7.0.0
  • Windows/Linux/MacOS兼容

发展

要贡献或修改服务器,请执行以下操作:

  1. 分叉存储库
  2. 创建功能分支
  3. 进行更改
  4. 提交拉取请求

错误处理

服务器为常见问题提供详细的错误消息:

{
  "error": {
    "code": "ERROR_CODE",
    "message": "Human-readable error message",
    "details": { /* Additional error details */ }
  }
}

例子

基本图像生成

// Generate an image URL
const response = await generateImageUrl({
  prompt: "A futuristic city at night",
  model: "flux",
  width: 1024,
  height: 1024
});

// Generate and save an image
const image = await generateImage({
  prompt: "A peaceful garden with butterflies",
  outputPath: "./images",
  fileName: "garden_scene"
});

下载图片示例

// Download an image from URL
const downloadResult = await downloadImage({
  imageUrl: "https://example.com/image.jpg",
  fileName: "downloaded-image",
  format: "png"
});

支持

对于问题和功能请求,请在存储库中创建问题或联系开发人员:

  • 电子邮件:\[您的联系邮箱\]
  • GitHub:\[您的GitHub个人资料\]

许可证

此项目根据MIT许可证获得许可-有关详细信息,请参阅许可证文件。

______________________________________________________________________

由以下材料制成❤️ 法拉。G.萨利耶 ©2025版权所有

目录标签

目录标签

图像生成多模型支持JavaScriptClaude高性能本地部署模型管理MCP协议

支持客户端

Claude DesktopClaude

接入字段

传输方式(transport,传输协议)

HTTP

鉴权方式(authType,认证方式)

none

部署方式(deploymentType,部署类型)

remote-capable

工具数量(toolCount,工具数)

3

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

HTTPnoneremote-capable

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP