Skip to main content

MCP for KYC: Run Identity Verification in Natural Language

Didit's Model Context Protocol (MCP) server lets an AI agent create a Know Your Customer (KYC) session, return the verification link, and poll the decision — ID, liveness, and face match — from a prompt at $0.33 per check.

MCP for KYC: Run Identity Verification in Natural Language

Contents

In this guide

Jump to the part you need.

Know Your Customer (KYC) checks have always meant wiring an SDK, handling webhooks, and polling a decision endpoint. Didit's official Model Context Protocol (MCP) server collapses that work into a conversation. Point an AI agent — Claude Desktop, Claude Code, Cursor, or any MCP-capable client — at https://mcp.didit.me/mcp, and it can create a verification session, return the link your user opens, and poll the final decision, all from a natural-language prompt. Under the hood it runs the same document check, liveness, and face match that power onboarding for 4,000+ companies in production, at $0.33 for a full KYC verification. This post walks through what the MCP layer does, how an agent runs a KYC flow end to end, and how to connect it in a couple of minutes.

Key takeaways

  • Didit's MCP server exposes 115 tools across 11 categories over Streamable HTTP at https://mcp.didit.me/mcp — hosted or self-hosted.
  • Authentication is OAuth 2.1 + Proof Key for Code Exchange (PKCE) — "Log in with Didit" via business.didit.me, with no API key for the hosted server. Access is user-scoped and respects your console role.
  • An agent can create a KYC session, surface the verification link, and poll the decision without you writing polling or webhook code.
  • A full KYC verification (ID document + passive liveness + face match) costs $0.33, with sub-2-second inference.
  • Setup in Claude Code is one command: claude mcp add --transport http didit https://mcp.didit.me/mcp, then /mcp to log in.
  • The MCP layer itself is free — you only pay per successful verification.

What the Didit MCP server is

The Model Context Protocol is an open standard that lets AI agents call external tools through a consistent interface. Didit's implementation is the official MCP server for the identity and fraud platform, published under the MIT license at github.com/didit-protocol/mcp. It speaks Streamable HTTP at the production endpoint https://mcp.didit.me/mcp, and you can run it hosted or self-host it in your own environment.

It ships 115 tools across 11 categories: Discovery, Sessions (KYC and KYB), Workflows & Questionnaires, Standalone Verification, Transaction Monitoring & Anti-Money Laundering (AML), Vendor Users & Businesses, Lists (blocklist and allowlist), Cases, Reports/Audit/Alerts, Webhooks, and Workspace/Billing. For a KYC flow you'll mostly touch Discovery (to find your workflows) and Sessions.

Authentication without an API key

The hosted server uses OAuth 2.1 with PKCE — the "Log in with Didit" flow through business.didit.me. There is no API key to paste into a config file for the hosted setup. When your agent first connects, it opens a browser, you approve access, and the token is scoped to your user. That means the agent can only do what your console role already permits, across two scopes: didit:management and didit:verification. If you're a read-only member, the agent inherits read-only access. This user-scoped model keeps automation inside the same permission boundaries as the console UI.

Running a KYC session in natural language

A KYC session in Didit bundles the core identity checks: an ID document verification, passive liveness to confirm a real person is present, and a 1:1 face match between the selfie and the document portrait. Once the MCP server is connected, you don't call these individually — you describe the outcome you want and let the agent orchestrate the tools.

A realistic prompt looks like this:

"Create a KYC verification session for our standard onboarding workflow, give me the link to send to the applicant, then check back and tell me the decision once they've finished."

The agent calls the session-creation tool, which returns a hosted verification URL. You forward that link to your applicant (or drop it into your onboarding email). When they complete the flow — snapping their ID and a selfie — the agent uses the session-retrieval tools to poll status and report the verdict: approved, declined, or in review, with the extracted document fields and match score. No webhook endpoint, no cron job, no manual polling loop on your side.

For higher-volume work, you can ask the agent to batch: "Create ten KYC sessions for these applicants and give me a table of links." Because the tools are composable, the agent handles the fan-out and collates the results.

Connecting your MCP client

Claude Code connects with a single command:

claude mcp add --transport http didit https://mcp.didit.me/mcp

Then run /mcp inside Claude Code to trigger the "Log in with Didit" OAuth flow. Once authenticated, the Didit tools appear in your session.

For Claude Desktop, Cursor, VS Code, Windsurf, and Zed, add a JSON entry pointing at the same Streamable HTTP URL:

{
  "mcpServers": {
    "didit": {
      "type": "http",
      "url": "https://mcp.didit.me/mcp"
    }
  }
}

ChatGPT Developer Mode support is available through OpenAI's beta connector flow; because that surface is still in beta, expect the connection steps to shift as OpenAI iterates. The full client matrix and the latest configuration snippets live in the MCP overview docs.

What KYC actually checks

When you run ID Verification through a KYC session, the platform reads the document against 14,000+ supported document types across 220+ countries and territories, in 54 languages. Passive liveness confirms the selfie is a live capture rather than a photo of a photo or a screen replay. Face match scores the selfie against the document portrait. The combined result is a single decision your agent reports back, backed by 200+ fraud signals and sub-2-second inference.

Because it's the same engine used in production onboarding, the MCP path isn't a sandbox toy — the decision an agent returns is the decision you'd act on. You can also route sessions through a custom workflow so the agent triggers additional modules (proof of address, AML screening, database validation) when your risk logic calls for them.

Pricing and where the MCP layer fits

A full KYC verification — ID document, passive liveness, and face match — is $0.33. The MCP server itself adds no cost: you pay only for successful verifications, whether they're triggered from the console, the API, an SDK, or an agent. That makes MCP an easy way to prototype an identity flow. You can wire it into an agent, run a handful of real sessions inside your free tier, and confirm the decisions before you touch a line of integration code.

Didit is Y Combinator W26, has raised $7.5M, is profitable, and runs across 220+ countries with 14,000+ document types and 54 languages — so the same MCP endpoint that helps you prototype scales to production volume without a replatform.

Start free

Spin up an AI agent, point it at https://mcp.didit.me/mcp, and run your first KYC session in natural language today. Create your workspace and start free, no card required. Read the MCP overview, browse the server source, or explore the developer hub to see every tool your agent can reach.

Connect in one click: add Didit to Claude — the link pre-fills the connector name and URL, then you sign in with Didit. No API key. Full setup for every client is in the installation guide, and the server is open source on GitHub.

Try it

Try this in the sandbox

Run the check this guide describes, free.

ID Verification

The product this post is about, taken from its topic. Run it free in the sandbox.

$0.15 per checkStart free

Author

Alejandro Rosas

Co-founder and CTO

Alejandro Rosas

Alejandro Rosas

Co-founder and CTO

About Didit

Questions

Blog questions

Who writes the Didit blog?
The Didit team. Guides reviewed by Alberto Rosas, co-founder and CEO, carry his byline. The rest are published as Didit.
Which topics does the blog cover?
Eight topics: ID verification, business verification (KYB), AML, sanctions and compliance, fraud prevention, transaction monitoring and crypto, country guides, agents and developers, and product updates.
Is the blog available in my language?
Yes, in 15 languages: English, Spanish, French, German, Brazilian and European Portuguese, Catalan, Russian, Arabic, Chinese, Japanese, Hindi, Indonesian, Korean and Swahili. Not every post is translated, so each language shows the posts it has.
Where do I find product updates?
In the changelog at /changelog/ and under the Product updates topic.
Are these posts legal advice?
No. Regulation posts explain rules; your legal team decides how they apply.
How do I find posts on one topic?
Open one of the eight topics, or search the blog.
Are posts dated?
Yes. Every post shows when it was published and when it was last updated.
Do posts link to the docs?
Developer posts link to the matching page on docs.didit.me and to the API reference.
Is the blog the same as the docs?
No. The blog explains rules, markets and product changes for a general reader, while docs.didit.me holds the integration guides and the API reference. Developer posts link the matching docs page and the API reference they describe.

Compliance built in

Audited, certified and attested.

We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center

  • Regulation encoded into your flows

    Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.

  • Ready for AMLR

    Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.

  • Tested in Spain's Treasury sandbox

    Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.

  • Audited, not self-declared

    iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.

Compliance assistant

Your obligations · 3 regions

EU · AMLRCustomer due diligence, human reviewCovered
Illinois, Texas, ColoradoExplicit biometric consentCovered
Germany · Youth protectionVerified adults only (JMStV)Covered
Workflow checked. Every obligation is met
  • SOC 2 Type 2
  • ISO 27001
  • iBeta Level 1 and Level 2
  • EU regulator attestation
  • FSM youth protection
  • GDPR
  • EBA remote onboarding
  • MiCA compatible
  • FIDO Alliance member
  • AMLREU AML Regulation ready

Integration · Didit MCP

Run Didit from your own AI agent

Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.

Add to ClaudeChatGPT
Didit Academy · Lesson 04 · Use Didit with MCP
  • Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
  • Run investigationsAsk why a session was declined, review cases, search people and companies.
  • Change rulesCreate payment rules, test them on past data and switch them on.
  • Pull reportsAsk for numbers, exports or the audit log.

Verify your first user today.

Start free

Free sandbox. Credit applies to work-email sign-ups.