人脸生成器

@dasheck0/face-generator
0 Stars 393 次浏览 dasheck0 更新于 2026-08-23

生成不代表真实人物的逼真人脸图像,提供多种输出形状、可配置尺寸和批量生成功能。

MCP 服务配置

复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用

{
  "mcpServers": {
    "face-generator": {
      "args": [
        "C:/PATH_TO/mcp-face-generator/build/index.js"
      ],
      "autoApprove": [],
      "command": "node",
      "disabled": false
    }
  }
}

可用工具 (1 个)

该服务在 MCP 协议中暴露的工具,AI 可按需调用

generate_face 7 个参数 需填 1 项

Generate and save a human face image

必填参数:outputDir

服务介绍

人脸生成器 MCP 服务器

一个使用 https://thispersondoesnotexist.com 生成人类面部图像的模型上下文协议 (MCP) 服务器。

特性

  • 生成人类面部图像
  • 多种输出形状:方形、圆形、圆角矩形
  • 可配置的图像尺寸
  • 非方形形状的透明背景
  • 批量生成多张图像

安装

npm install @dasheck0/face-generator

使用

作为 MCP 服务器

  1. 启动服务器:
npx face-generator
  1. 通过 MCP 客户端使用 generate_face 工具。

工具参数

  • outputDir: (必需) 保存图像的目录
  • fileName: 可选文件名(默认为时间戳)
  • count: 要生成的图像数量(默认: 1)
  • width: 图像宽度(以像素为单位,默认: 256)
  • height: 图像高度(以像素为单位,默认: 256)
  • shape: 图像形状(square|circle|rounded,默认: square)
  • borderRadius: 圆角形状的边框半径(默认: 32)

示例

{
  "outputDir": "./output",
  "count": 3,
  "width": 512,
  "height": 512,
  "shape": "circle"
}

许可证

MIT

相关 MCP 服务