Face Generator MCP Server

Face Generator MCP Server

用于生成各种形状和大小的人脸图像的MCP Server。

人脸生成器服务器

基于 thispersondoesnotexist.com 的人脸图像生成服务,支持多种形状和配置选项。

安装

npm install @dasheck0/face-generator

基本使用

  1. 启动服务器:

    npx face-generator
    
  2. 通过 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