replicate-image-generate
flux image generation mcp server
Documentation
Flux Image Generation Server
这是一个简单的HTTP服务器,用于调用Replicate的Flux Schnell模型生成图片。
安装
npm install配置
在运行服务器之前,你需要设置Replicate API token作为环境变量:
export REPLICATE_API_TOKEN=your_token_here运行服务器
编译并启动服务器:
npm run build
npm start服务器将在端口3000上运行。
API使用
服务器提供了一个简单的HTTP API端点来生成图片:
生成图片
请求
POST http://localhost:3000/generate
Content-Type: application/json
{
"prompt": "your image description here"
}示例
curl -X POST http://localhost:3000/generate \
-H "Content-Type: application/json" \
-d '{"prompt": "black forest gateau cake spelling out the words \"FLUX SCHNELL\", tasty, food photography, dynamic shot"}'响应
成功响应:
{
"success": true,
"data": {
// Replicate API 返回的数据
}
}错误响应:
{
"success": false,
"error": "错误信息"
}关闭服务器
按 `Ctrl+C` 可以优雅地关闭服务器。
Frequently asked questions
What is replicate-image-generate?
replicate-image-generate is flux image generation mcp server
How do I install replicate-image-generate?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is replicate-image-generate open source?
Yes — it is hosted on GitHub at https://github.com/caok/replicate-image-generate.
Related MCP tools
An MCP server that installs other MCP servers for you JavaScript-based implementation. Trusted by 1400+ developers. Trusted by 1400+ developers.
MCP server for interacting with the iOS simulator JavaScript-based implementation. Trusted by 1200+ developers. Trusted by 1200+ developers.
A Model Context Protocol server that provides read-only access to MySQL databases. This server enables LLMs to inspect database schemas and execute read-only...
This is an MCP server that allows you to directly download transcripts of YouTube videos. JavaScript-based implementation.
The all-in-one Desktop & Docker AI application with built-in RAG, AI agents, No-code agent builder, MCP compatibility, and more.
An AI-powered task-management system you can drop into Cursor, Lovable, Windsurf, Roo, and others. Built for the Model Context Protocol to enhance AI capabiliti
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP