本项目是一个模型上下文协议(MCP)服务器,借助 Together AI 达成无缝且高质量的图像生成。它提供了标准化接口,可用于指定图像生成参数。
本图像生成 MCP 服务器能助力你轻松实现高质量图像生成。你只需按照后续的安装步骤完成配置,即可使用标准化接口指定图像生成参数,开启图像生成之旅。
~/Library/Application\ Support/Claude/claude_desktop_config.json
。%APPDATA%/Claude/claude_desktop_config.json
。{
"mcpServers": {
"image-gen": {
"command": "uv",
"args": ["--directory", "/ABSOLUTE/PATH/TO/image-gen/", "run", "image-gen"],
"env": {
"TOGETHER_AI_API_KEY": ""
}
}
}
}
服务器实现了以下一个工具:
根据给定的文本提示和可选维度生成图像。
输入模式:
{
"prompt": {
"type": "string",
"description": "生成图像的描述性提示(例如,'一个未来城市的天际线在日落时分'"
},
"width": {
"type": "integer",
"description": "生成图像的宽度(以像素为单位)(可选)"
},
"height": {
"type": "integer"
}
}