Face Generator MCP Server
用于生成各种形状和大小的人脸图像的MCP Server。
基于 thispersondoesnotexist.com 的人脸图像生成服务,支持多种形状和配置选项。
安装
npm install @dasheck0/face-generator
基本使用
-
启动服务器:
npx face-generator
-
通过 MCP 客户端调用
generate_face
工具,传入以下参数:参数 描述 默认值 outputDir
必需 - 保存图像的目录 - fileName
可选文件名 时间戳 count
要生成的图像数量 1 width
图像宽度(px) 256 height
图像高度(px) 256 shape
图像形状(square/circle/rounded) square borderRadius
圆角形状的边框半径 32
示例
{
"outputDir": "./output",
"count": 3,
"width": 512,
"height": 512,
"shape": "circle"
}
特性
- 支持方形、圆形和圆角矩形输出
- 非方形形状具有透明背景
- 可自定义图像尺寸
- 支持批量生成
许可证
MIT