Utilizes the Flux-fill model for AI-powered face and background fusion, enabling seamless integration of facial images into ID photo backgrounds
Readme
该项目提供了一个MCP服务器,该服务器可以接受本地指定的人脸图像和证件图像,并交由指定的Comfyui服务器进行人脸与背景的融合,最终在本地保存融合的结果。
项目框架
使用方法
1. 安装依赖
2. 安装Comfyui相关插件和模型
包含APersonMaskGenerator插件和使用到的flux-fill模型
3. 修改参数
- 修改server_address为自己的MCP服务器地址
- 修改mcp.run()中的MCP服务器端口和路径
- 如有需要,可以适当修改仿射变换中的目标区域坐标dst_pts
4. 运行
MCP Client
以Claude为例,在claude_desktop_config.json文件中添加以下内容,替换为自己的MCP server地址
示例
提示词需包含三个参数,人脸图像路径,证照图像路径和保存文件夹路径。
返回结果
待改进方向
- 初次运行时由于要加载大模型,mcp server端运行时间较长,大模型端可能会报错
No result received from client-side tool execution.
(但最后成功保存结果没有问题) - flux模型填充效果 可以通过调整prompt等参数优化
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
A server that integrates with Claude to merge facial images with ID photo backgrounds using ComfyUI, allowing users to seamlessly replace faces in identity documents through natural language commands.
Related MCP Servers
- AsecurityAlicenseAqualityUse HuggingFace Spaces directly from Claude. Use Open Source Image Generation, Chat, Vision tasks and more. Supports Image, Audio and text uploads/downloads.Last updated -3397335TypeScriptMIT License
- AsecurityAlicenseAqualityConnects Claude Desktop to Hugging Face Spaces with minimal setup, enabling capabilities like image generation, vision tasks, text-to-speech, and chat with AI models.Last updated -3397MIT License
Superface MCP Serverofficial
-securityAlicense-qualityProvides access to various AI tools through Model Context Protocol, allowing Claude Desktop users to integrate and use Superface capabilities via API.Last updated -44JavaScriptMIT License- -securityAlicense-qualityA server that integrates ComfyUI with MCP, allowing users to generate images and download them through natural language interactions.Last updated -6PythonApache 2.0