Face-ID Photo Fusion MCP Server

Face-ID Photo Fusion MCP Server

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.

Category
Visit Server

README

Readme

该项目提供了一个MCP服务器,该服务器可以接受本地指定的人脸图像和证件图像,并交由指定的Comfyui服务器进行人脸与背景的融合,最终在本地保存融合的结果。

项目框架

├── README.md
├── requirements.txt
├── server.py MCP服务器
├── source_test.png 人脸图像示例
├── target_test.jpg 证照图像示例
├── 4.jpg 返回结果示例
└── mask_to_box_node.py 仿射变换模块

使用方法

1. 安装依赖

pip install -r requirements.txt

2. 安装Comfyui相关插件和模型

包含APersonMaskGenerator插件和使用到的flux-fill模型

3. 修改参数

  1. 修改server_address为自己的MCP服务器地址
  2. 修改mcp.run()中的MCP服务器端口和路径
  3. 如有需要,可以适当修改仿射变换中的目标区域坐标dst_pts

4. 运行

python server.py

MCP Client

以Claude为例,在claude_desktop_config.json文件中添加以下内容,替换为自己的MCP server地址

{
  "mcpServers": {
	"FLUX": {
            "command": "npx",
            "args": ["mcp-remote", "http://your mcp server address"]
        	}
	}
}

示例

提示词需包含三个参数,人脸图像路径,证照图像路径和保存文件夹路径。

source的路径为"D:\study\2025Autumn\code\source_test.jpg",target的文件路径为"D:\study\2025Autumn\code/target_test.jpg",帮我使用flux模型进行人脸与背景的融合,并保存到"D:\study\code\mayi\output"文件夹中

返回结果

待改进方向

  1. 初次运行时由于要加载大模型,mcp server端运行时间较长,大模型端可能会报错 No result received from client-side tool execution.(但最后成功保存结果没有问题)
  2. flux模型填充效果 可以通过调整prompt等参数优化

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured