A
securityA
licenseA
qualityA MCP server that enables Claude and other MCP-compatible assistants to generate images from text prompts using Together AI's image generation models.
Last updated -
1
2
TypeScript
MIT License
使用 Replicate 的black-forest-labs/flux-schnell
模型生成图像的MCP(模型上下文协议)服务器实现。
理想情况下与 Cursor 的 MCP 功能一起使用,但可以与任何 MCP 客户端一起使用。
apiToken
常量,直接在src/imageService.ts
代码中添加您的 Replicate API 令牌:**注意:**如果与 Claude 一起使用,您可以在根目录中创建一个
.env
文件并在那里设置您的 API 令牌:
与游标一起使用:
node ./path/to/dist/server.js
范围 | 类型 | 必需的 | 默认 | 描述 |
---|---|---|---|---|
prompt | 细绳 | 是的 | - | 图像生成的文字提示 |
output_dir | 细绳 | 是的 | - | 保存生成的图像的服务器目录路径 |
go_fast | 布尔值 | 不 | 错误的 | 启用更快的生成模式 |
megapixels | 细绳 | 不 | “1” | 分辨率质量(“1”、“2”、“4”) |
num_outputs | 数字 | 不 | 1 | 生成的图像数量(1-4) |
aspect_ratio | 细绳 | 不 | “1:1” | 宽高比(“1:1”、“4:3”、“16:9”) |
output_format | 细绳 | 不 | “webp” | 图像格式(“webp”、“png”、“jpeg”) |
output_quality | 数字 | 不 | 80 | 压缩质量(1-100) |
num_inference_steps | 数字 | 不 | 4 | 去噪步数(4-20) |
服务器处理以下错误类型:
每个错误响应包括:
国际学习中心
You must be authenticated.
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
使用户能够使用 Replicate 的模型从文本提示生成图像,具有可配置的参数和完全的 MCP 协议兼容性。
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mikeyny/ai-image-gen-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server