flux image generation mcp server
这是一个简单的HTTP服务器,用于调用Replicate的Flux Schnell模型生成图片。
npm install
在运行服务器之前,你需要设置Replicate API token作为环境变量:
export REPLICATE_API_TOKEN=your_token_here
编译并启动服务器:
npm run build
npm start
服务器将在端口3000上运行。
服务器提供了一个简单的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 可以优雅地关闭服务器。
An MCP (Model Context Protocol) tool that provides real-time weather data, forecasts, and historical weather information using the OpenWeatherMap API, specifically designed for Claude Desktop.
Model Context Server Protocol for your HANA DB
Enhanced FileSystem MCP server
An MCP (Model Context Protocol) server for executing macOS terminal commands with ZSH shell. This server provides a secure way to execute shell commands with built-in whitelisting and approval mechanisms.