KYC Compliance MCP Server
This server provides an AI-driven KYC/AML compliance system that uses Claude to orchestrate due diligence checks, backed by a host layer enforcing mandatory controls and generating tamper-evident audit logs. It produces clear outcomes (PASS, ESCALATE, or FAIL) with a 0–10 risk score.
Core Compliance Tools:
Sanctions Screening (
screen_sanctions): Screen individuals or entities against the live OFAC SDN list. A match is disqualifying and triggers a FAIL.Identity Verification (
verify_identity): Structurally validate SSN format/range, driver's license format by state, and address presence. Returns VALID_FORMAT, INVALID_FORMAT, SUSPICIOUS, or INSUFFICIENT_DATA — structural only, not identity confirmation.Business Lookup (
lookup_business): Verify whether a company is an SEC-registered filer via EDGAR. A no-match is not automatically disqualifying for private companies.Industry Risk Assessment (
assess_industry_risk): Classify industries into PROHIBITED (hard FAIL), STATE_CONDITIONAL (ESCALATE, e.g. cannabis), ELEVATED (enhanced due diligence), or STANDARD tiers.Country Risk Assessment (
assess_country_risk): Score countries 0–10 for AML/sanctions risk; scores ≥7 trigger ESCALATE for enhanced due diligence.PEP Screening (
screen_pep): Screen for Politically Exposed Person status. Currently a stub integration point — returns INTEGRATION_POINT, mandating manual enhanced due diligence and never treated as a clean result.
System-Level Capabilities:
Mandatory Control Enforcement: The host layer ensures sanctions screening and industry checks always run regardless of AI discretion.
Decision Validation: Validates and can override the AI's proposed decisions; overrides can only make outcomes stricter.
Tamper-Evident Audit Logging: Hash-chained, append-only logs capture every step — requests, tool calls, results, model decisions, overrides, and final outcome — for regulatory defensibility.
Web UI: A React-based interface displays decisions, tool call sequences, and officer-gated detailed findings with audit traces.
MCP Integration: Designed for MCP clients like Claude Desktop; also includes an Inspector UI for developer testing of raw JSON-RPC traffic.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@KYC Compliance MCP Server Screen Acme LLC, a Texas firearms retailer, for KYC."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
KYC Compliance MCP Server
An agentic KYC/AML compliance system built on the Model Context Protocol (MCP). An MCP server exposes compliance checks as tools, and an AI model (Claude) decides which tools to call and in what order to perform customer due diligence — wrapped in a host layer that enforces the legally non-negotiable checks, validates the model's decision, and writes a tamper-evident audit log.
The point: the model does the discretionary investigation; deterministic code enforces the mandatory controls and records everything. That hybrid — a reasoning core inside compliance rails — is the difference between a demo and something defensible in a regulated setting.
Note: this is a proof-of-concept for demonstrating MCP orchestration and compliance architecture, not a production compliance system. See Notes / limitations below — several data sources are deliberately stubbed as honest integration points because the real data is licensed or legally gated.
Architecture
applicant ─► HOST: enforce mandatory sanctions screen (always runs)
│
▼
CLAUDE orchestrates the rest — picks tools, reads results, decides:
verify_identity · assess_industry_risk · lookup_business ·
screen_pep · assess_country_risk
│
▼
HOST: validate the model's decision against the gathered facts
(overrides can only make the outcome STRICTER, never looser)
│
▼
FINAL DECISION + hash-chained AUDIT LOG (tamper-evident)The decision is one of PASS / ESCALATE / FAIL, where ESCALATE routes the case to a human for enhanced due diligence — the honest posture for an AI first-pass triage tool.
Related MCP server: @deepidv/mcp-server
Risk score
Each result carries a risk score from 0 to 10 where HIGHER means MORE risky (this is the opposite direction of a credit score, so it can be counterintuitive):
0–3 low risk — e.g. a clean standard-industry business with domestic owners
4–6 moderate risk — elevated factors present, warrants attention
7–10 high risk — a hard gate hit (sanctions, prohibited industry), failed identity validation, or high country risk
A low score does not guarantee a PASS: an unresolved integration-point check (e.g. PEP) can still force an ESCALATE even at 2/10, because final clearance requires that check be completed manually.
Tools
Tool | What it does | Backed by |
| Screens names against the live OFAC SDN list | treasury.gov OFAC SDN (live) |
| Structural SSN / driver's-license / address validation | SSA rules + state DL formats (live, no key) |
| 0–10 country risk score + band | World Bank indicators (+ proxy overrides) |
| Verifies a company is an SEC-registered filer | SEC EDGAR (live, no key) |
| PROHIBITED / STATE_CONDITIONAL / ELEVATED / STANDARD | NAICS-keyed rules (built in) |
| Politically Exposed Person screening | Integration-point stub (see caveats) |
The industry tool encodes real regulatory nuance: weapons are a hard gate; cannabis is state-conditional (legal-program states → escalate for enhanced due diligence; non-program states → decline); crypto, gambling, cash-intensive, etc. are elevated-risk inputs the model weighs.
Why this is an MCP showcase
The model orchestrates the calls. Given a business applicant it will typically call
assess_industry_risk first (a PROHIBITED result can short-circuit to FAIL), then
screen_sanctions on the company and each owner, lookup_business to verify the entity, and
assess_country_risk on any non-US owner. For a personal applicant it calls and verify_identity. That orchestration is the model's, not the code's — which is what
distinguishes MCP from a fixed serverless pipeline.
Web UI
A React UI (ui/) drives the agent over an Express backend. It shows the decision and the
tool-call sequence ("how the agent investigated") to anyone, while detailed findings and
the audit trace are officer-gated behind a passcode — demonstrating both the orchestration
and an access-control boundary. See UI_SETUP.md to run it.
Run it
npm install
npm run buildTest with the MCP Inspector (recommended first step)
npm run inspectThis opens the Inspector UI (port 6274). You can fire each tool manually and watch the raw JSON-RPC traffic — the fastest way to confirm the tools work before wiring a host.
Wire into Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"kyc-compliance": {
"command": "node",
"args": ["/absolute/path/to/kyc-mcp-server/dist/index.js"]
}
}
}Restart Claude Desktop, then ask it to "run KYC due diligence on Acme LLC, a firearms retailer in Texas with owners Jane Doe and John Roe" — it will discover and call the tools.
Compliance guardrails (the host layer)
"The model decides which tools to call" is great for capability but unacceptable on its
own in a regulated setting — a missed sanctions check is a violation, not a bug. The
src/host/ layer wraps the model so it reasons inside deterministic rails:
Mandatory-screening enforcement (
orchestrator.ts) — sanctions screening (and, for businesses, industry classification) always run, executed by the host, regardless of whether the model would have chosen to call them. The model never gets to skip a required check.Output validation (
validation.ts) — the model's PASS/FAIL/ESCALATE is checked against the hard screening facts. A potential OFAC match or a PROHIBITED industry forces FAIL even if the model said PASS; a state-conditional industry or high country risk forces at least ESCALATE. Overrides only ever make the outcome stricter, never looser.Hash-chained audit log (
audit.ts) — every request, tool call, tool result, model decision, override, and final decision is written to an append-only, SHA-256 hash-chained log. Editing any past entry breaks the chain and is detectable — this is what you hand an examiner to reconstruct why any customer was approved or declined.
The division of labor: the model orchestrates the discretionary analysis; the code enforces the non-negotiable checks and records everything. That hybrid — reasoning core, deterministic guardrails — is the difference between a demo and a system you could defend in a compliance review.
Screenshots
Clean business applicant (PASS): All checks pass; decision is PASS at 3/10 risk. Escalation due to lack of PEP integration.
State-conditional industry (ESCALATE): Cannabis in California triggers state-conditional escalation for enhanced due diligence.
Prohibited industry (FAIL): Weapons dealer hard-gate; decision is FAIL at 10/10 risk.
Officer-gated findings: Detailed per-tool findings and audit trace are revealed only after entering the passcode.
Notes / limitations
Sanctions matching is simple (token match, not fuzzy/phonetic). Real screening adds secondary identifiers (DOB, nationality) to cut false positives. The architecture — live government data driving the decision — is the point. (You'll see common names like "Maria Garcia" produce false-positive potential matches; the system fails safe by escalating, which is the correct direction.)
Country risk uses a small override table plus a World Bank indicator fallback, as a public proxy for a licensed country-risk feed. The country-name→ISO lookup is thin; passing ISO-2 codes (e.g. "BR") is most reliable.
Business lookup covers SEC filers only.
lookup_businessuses SEC EDGAR (free, no key), which only contains public / SEC-registered companies. A no-match is EXPECTED for most small private LLCs and is NOT disqualifying — the tool says so in its note. Full private-entity coverage requires OpenCorporates (paid) or per-state Secretary-of-State integration (California has a key-gated API; Delaware is CAPTCHA-protected with paywalled status). Those are defined as production integration points, not built here.Identity verification is structural only.
verify_identityvalidates SSN format/range (SSA rules), driver's-license format per state, and address presence — it catches fabricated or malformed identifiers, but does NOT confirm they belong to the person. Authoritative match (SSN-to-name via SSA eCBSV, DL-to-record via AAMVA/DMV) is legally gated to permitted entities with consumer consent, so it's a documented production integration point.PEP screening is an integration point, not live.
screen_pepreturns an INTEGRATION_POINT status, not a clean result. Credible PEP data is licensed — OpenSanctions has strong PEP coverage but its API requires a key/commercial license, and World-Check / Dow Jones / LexisNexis are commercial. PEP is a required KYC control, so the tool seam is built and the model is told to treat the result as "manual EDD required" rather than "no PEP found." Production supplies provider credentials.
Roadmap
Wire EU/UK consolidated lists into
screen_sanctions(the parameter already exists)Fuzzy name matching with secondary identifiers
A thin host backend + the existing React UI as the front end
Available Tools
6 toolsassess_country_riskA
Assess AML/sanctions country risk for a given country (name or ISO-2 code), returning a 0-10 risk score and band. Call for the applicant's country and for any beneficial owner whose country differs. Score >= 7 should drive ESCALATE.
Inputs: country (required).
assess_industry_riskA
Classify a business industry for AML risk. Returns one of PROHIBITED (hard gate — decision must be FAIL), STATE_CONDITIONAL (e.g. cannabis — legality depends on state, drive ESCALATE), ELEVATED (allowed with enhanced due diligence), or STANDARD. Call for every business applicant. Pass the state so cannabis can be resolved correctly.
Inputs: industry (required), naics, state.
lookup_businessA
Look up a business entity in the SEC EDGAR registry to verify it is a real, SEC-registered filer. Call for any business applicant. Note: only public/SEC-registered companies appear — a no-match is expected for small private LLCs and is NOT itself disqualifying, but an applicant claiming to be a public company with no EDGAR match is a red flag worth ESCALATE.
Inputs: companyName (required), jurisdiction.
screen_pepA
Screen names for Politically Exposed Person (PEP) status. NOTE: this is an integration point — credible PEP data is licensed (OpenSanctions key/license, World-Check, Dow Jones). It returns a defined-but-not-live status, NOT a clean result. A returned status of INTEGRATION_POINT means PEP screening must be completed manually as an enhanced-due-diligence step; do not treat it as 'no PEP found'.
Inputs: names (required).
screen_sanctionsA
Screen one or more individual or entity names against the live OFAC SDN sanctions list. Call this for every applicant, every beneficial owner, and every company name. A potential match must be treated as disqualifying (FAIL) pending human review.
Inputs: names (required), extraLists.
verify_identityA
Validate a personal applicant's identity documents structurally: SSN format/range (SSA rules), driver's-license format for the claimed state, and address presence. Returns VALID_FORMAT / INVALID_FORMAT / SUSPICIOUS / INSUFFICIENT_DATA. NOTE: this is structural validation only — it does NOT confirm the identifiers belong to the person (authoritative SSA/DMV match is a gated integration point). INVALID_FORMAT is a red flag.
Inputs: ssn, driversLicense, state, address.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool targets a distinct aspect of KYC compliance: country risk, industry risk, business entity lookup, PEP screening, sanctions screening, and identity verification. There is no overlap; each has a clear, separate purpose.
All tool names follow a consistent verb_noun pattern (e.g., assess_country_risk, screen_pep, verify_identity). The naming is uniform and predictable, aiding agent understanding.
Six tools is an ideal number for a KYC compliance server. It covers essential risk assessment, entity verification, and screening functions without being excessive or insufficient.
The set covers core KYC operations, but lacks tools for automated PEP resolution (noted as integration point), document upload verification, or ongoing monitoring. Minor gaps exist but do not severely hinder basic workflows.
Related MCP Connectors
KYC, KYB, AML, wallet screening, transaction monitoring, and fraud workflows for AI agents.
Sanctions screening, KYB, identifier validation, jurisdiction risk & secret scanning for AI agents
Identity verification, document checks, sanctions/PEP screening and case review as agent tools.
Compliance MCP for AI agents: sanctions & KYT screening on 50+ chains, stablecoin-freeze, oracle.
Related MCP Servers
- AlicenseAqualityBmaintenanceProvides AI agents with compliance screening (OFAC sanctions, risk scoring, Know-Your-Agent) plus disposable email and SMS verification for OTPs, accessible via MCP tools, HTTP API, and CLI.102MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to perform identity verification, KYC/KYB, PEP & sanctions screening, bank statement analysis, and workflow automation via the Model Context Protocol.MIT
- AlicenseBqualityBmaintenanceAutonomous M2M compliance and trust APIs for AI agents (KYB, OFAC, VAT, Sanctions checking).5MIT

eKYC Suite MCP Serverofficial
AlicenseAqualityDmaintenanceProvides 8 financial-grade KYC identity verification tools for AI agents, including face comparison, liveness detection, document OCR, and risk media labeling.860 npm4MIT