Face Recognition Mcp Server

io.github.student920由 GitHub 账号 student920 发布v1.0.0更新于 Oct 24, 2026

On-premise face recognition MCP server for 3DiVi Face SDK. No cloud required.

概览

AI 生成的概览

一个本地 MCP 服务器,封装 3DiVi Face SDK 工具,让助手可以检测人脸、验证身份、进行活体检测并检索人脸库。

可以做什么
将 3DiVi Face SDK 的 Processing Block API 封装为可调用工具。提供的工具包括:detect_faces(边界框、关键点、头部姿态)、check_liveness、assess_quality、extract_template、verify_face(1:1 比对)、search_face(1:N 人脸库检索)、estimate_attributes(年龄与性别)、estimate_emotion 以及 detect_mask。所有处理都在开发者本机进程内完成。
适用场景
适合开发或验证生物识别功能时使用,例如 KYC 开户、门禁、考勤或关注名单比对,并希望由 AI 编码助手直接调用人脸 SDK 操作,而不必自行编写 SDK 集成代码。也适用于生物识别数据必须留在本机的受监管场景。
运行要求
以本地 stdio 进程在桌面机器上运行。需要安装 3DiVi Face SDK 3.29、Python 3.9 或更高版本,以及有效的 Face SDK 许可证。配置使用环境变量 FACESDK_PATH 和 FACESDK_CONFIG。不需要云服务或网络访问。
安装前请注意
它会处理生物识别数据,包括人脸图像、模板、年龄、性别和情绪估计,因此需考虑同意、留存期限和当地隐私法规。README 声称生物识别数据不会离开本机,但这取决于你提供的 SDK 与配置。需要 Face SDK 许可证,README 未说明其费用或条款。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Face Recognition Mcp Server,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

3DiVi Face SDK — MCP Server

The face recognition MCP server for AI-native development.
On-premise · GDPR-compliant · ISO 30107-3 liveness · No cloud dependency.

[License: MIT] [SDK Version] [MCP]


What this is

A local Model Context Protocol server that wraps the 3DiVi Face SDK Processing Block API as callable tools. AI coding agents (Claude Code, Cursor, Windsurf, VS Code Copilot) can detect faces, verify identity, run liveness checks, and search a face gallery — without writing a single line of SDK integration code.

All processing runs on the developer's machine. No data leaves the host.


Tools exposed

ToolProcessing BlockOutput
detect_facesFACE_DETECTORBounding boxes, landmarks, pitch/yaw/roll
check_livenessLIVENESS_ESTIMATORLiveness verdict + confidence
assess_qualityQUALITY_ASSESSMENT_ESTIMATORQuality score, eyes-open flag
extract_templateFACE_TEMPLATE_EXTRACTORContextTemplate (binary, no PII)
verify_faceVERIFICATION_MODULE1:1 similarity score + match verdict
search_faceMATCHER_MODULE + DynamicTemplateIndex1:N ranked match list
estimate_attributesAGE_ESTIMATOR + GENDER_ESTIMATORAge, gender, confidence
estimate_emotionEMOTION_ESTIMATOR7-class emotion probabilities
detect_maskMASK_ESTIMATORMasked/unmasked verdict

Quick start

Prerequisites

Install

bash
git clone https://github.com/3divi/face-recognition-mcp-server.gitcd face-recognition-mcp-serverpip install -r server/python/requirements.txt

Configure Claude Code

Add to your claude_desktop_config.json (or equivalent for your agent):

json
{  "mcpServers": {    "3divi-face-sdk": {      "command": "python",      "args": ["/path/to/face-recognition-mcp-server/server/python/main.py"],      "env": {        "FACESDK_PATH": "/path/to/facesdk",        "FACESDK_CONFIG": "/path/to/facesdk/conf/facerec.conf"      }    }  }}

Try it

Open Claude Code in any project and type:

Integrate 3DiVi Face SDK for KYC verification — detect the face, run liveness,extract a template, and compare against an enrolled template.

Claude Code will call the MCP tools directly. No SDK integration code required.


Project structure

face-recognition-mcp-server/├── CLAUDE.md                        # Machine-readable API reference (read by AI agents)├── README.md├── LICENSE├── server/│   ├── python/                      # Phase 1 — stdio MCP server│   │   ├── main.py                  # Entry point (JSON-RPC 2.0 over stdio)│   │   ├── tools/│   │   │   ├── detection.py         # detect_faces, check_liveness, assess_quality, detect_mask│   │   │   ├── recognition.py       # extract_template, verify_face, search_face│   │   │   └── attributes.py        # estimate_attributes, estimate_emotion│   │   └── requirements.txt│   └── nodejs/                      # Phase 2 — coming soon├── reference-apps/│   ├── kyc-onboarding/              # Phase 2│   ├── access-control/              # Phase 2│   └── emotion-analytics/           # Phase 3└── docs/    └── threshold-guide.md

Why on-premise matters

Privacy regulations (GDPR, BIPA, India DPDP) prohibit sending biometric data to third-party cloud APIs in many regulated industries. This MCP server runs entirely local — the SDK shared libraries process images in-process, and no biometric data is transmitted anywhere.

The only competing biometric MCP server in the registry is Microsoft Azure's liveness wrapper, which requires Azure cloud. This server requires nothing beyond the SDK licence you already have.


Similarity threshold guide

See docs/threshold-guide.md for use-case-specific recommendations.

Use caseRecommended threshold
Physical access control0.97
Enterprise time/attendance0.95
KYC / onboarding0.93
Visitor watchlist0.90
Retail re-identification0.85

Licence

MIT — the MCP server is open source. The underlying 3DiVi Face SDK requires a separate licence from 3divi.ai.


Links

来源:README.md,提交 79f69e5

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分