npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@wefi-ai/ekyc-suite-mcp

v1.0.1

Published

KYC / eKYC identity verification MCP server with 8 financial-grade tools: face comparison, photo and video liveness, ID card OCR, bank card OCR, driver's license OCR, vehicle license OCR, and image labeling.

Readme

eKYC Suite MCP Server

Financial-grade electronic identity verification toolkit for AI agents, exposed as 8 MCP tools.

eKYC身份核验套件 MCP 服务端,提供8项金融级身份核验工具。

Repository: https://github.com/wefi-ai/eKYC-suite

Capabilities

| # | Tool | Description | |---|------|-------------| | 1 | face_compare | Compare two face photos, return similarity score 0-100 | | 2 | photo_liveness_detect | Detect if a photo is genuine or forged (AI-generated, deepfake, replay) | | 3 | video_liveness_detect | Detect if a video is genuine or deepfake (auto-retries on network errors) | | 4 | id_card_ocr | Extract info from Chinese national ID card (portrait or emblem side) | | 5 | bank_card_ocr | Extract card number and expiry from bank card photo | | 6 | driver_license_ocr | Extract info from Chinese driver's license (main page only) | | 7 | vehicle_license_ocr | Extract info from Chinese vehicle license (main + supplementary page) | | 8 | media_labeling | Analyze image/video for 15+ attribute labels (mask, coercion, tattoo, etc.) |

Quick Start

1. Install

npm install ekyc-suite-mcp

Or clone and install dependencies:

git clone <repository-url>
cd ekyc-suite-mcp
npm install

2. Configure Credentials

Copy .env.example to .env and fill in your API credentials:

cp .env.example .env

You need two separate credential sets:

  • Key A (KYC_APPID + KYC_SECRET): Enables capabilities 1-7 (face comparison, liveness, OCR)
  • Key B (LABEL_APPID + LABEL_SECRET): Enables capability 8 (media labeling)

Either key alone works — unconfigured capabilities will return a clear error message.

How to obtain credentials:

⚠️ IMPORTANT: Fill in test ID and test Secret (free 100 calls). Do NOT use production credentials — production IDs incur charges billed by the upstream provider. 请使用测试ID和测试Secret(免费100次),不要使用正式ID,正式ID会产生计费。

3. Run

node server.mjs

4. Connect to Your MCP Client

Add to your MCP client configuration (e.g., Claude Desktop claude_desktop_config.json):

{
  "mcpServers": {
    "ekyc-suite": {
      "command": "node",
      "args": ["/path/to/ekyc-suite-mcp/server.mjs"],
      "env": {
        "KYC_APPID": "your_kyc_appid",
        "KYC_SECRET": "your_kyc_secret",
        "LABEL_APPID": "your_label_appid",
        "LABEL_SECRET": "your_label_secret"
      }
    }
  }
}

Input Formats

All image/video parameters accept three input formats:

  • File path: /path/to/photo.jpg
  • URL: https://example.com/photo.jpg (public URLs only; private/internal network URLs are blocked for security)
  • Base64 string: Raw base64-encoded content

Maximum file size: 20MB. Videos must be ≤20 seconds.

Tool Details

face_compare

{
  "photo1": "/path/to/selfie.jpg",
  "photo2": "/path/to/id_photo.jpg",
  "sourcePhotoType": "2"
}

Returns { "success": true, "similarity": "95.7" }. Score ≥80 = high-confidence same person.

photo_liveness_detect / video_liveness_detect

{ "file": "/path/to/face_photo.jpg" }

Returns risk level 1-3 with attack type classification (replay, synthetic, adversarial, etc.).

id_card_ocr

{ "image": "/path/to/id_card.jpg", "side": "0" }

side: 0 = portrait side (front), 1 = national emblem side (back).

media_labeling

{
  "file": "/path/to/photo.jpg",
  "labels": "A02,A14,B03",
  "type": "image"
}

Available label codes (max 5 per request):

Portrait labels: A01 (facial mask), A02 (medical mask), A04 (headphones), A05 (nudity), A06 (sunglasses), A09 (coercion), A10 (unconscious/asleep), A11 (on phone), A13 (tattoo), A14 (hat), A15 (critical patient)

Environment labels: B02 (multiple people), B03 (inside car), B06 (hotel room), B07 (car dealership)

Security & Privacy

This software does not store, cache, or retain any submitted data.

API verification results are for reference only and do not constitute legal identity confirmation. This software must not be used as the sole basis for automated decisions that produce legal effects or significant consequences for individuals. Users should implement appropriate business logic and human review processes for high-stakes identity decisions.

Rate Limits

  • Capabilities 1-7 (KYC): 100 calls per appid (test quota)
  • Capability 8 (Media Labeling): Concurrency-limited, default 1 concurrent request

Legal Notice

This software does not store, cache, or retain any submitted data.

API verification results are for reference only and do not constitute legal identity confirmation. This software must not be used as the sole basis for automated decisions that produce legal effects or significant consequences for individuals. Users should implement appropriate business logic and human review processes for high-stakes identity decisions.

Requirements

  • Node.js ≥ 18.0.0 (uses native fetch)
  • Network access to kyc1.qcloud.com, kyc2.qcloud.com, miniprogram-kyc.tencentcloudapi.com