Connect a Custom AI Agent to Didit MCP With OAuth (2026)
Your agent connects to the hosted Didit MCP server at https://mcp.didit.me/mcp with OAuth 2.1 and PKCE, no API key. The MCP server is free and included on every plan.

Contents
In this guide
Jump to the part you need.
This guide is for a team that runs its own AI agent and wants that agent to call Didit. You point it at the hosted MCP server at https://mcp.didit.me/mcp, sign in with OAuth 2.1 and PKCE, and no API key sits in a config file. The MCP server is free and included on every plan, and you pay per completed check plus any plan fee. The caveat: once signed in, the agent acts as you, with your role's permissions.
Add Didit to Claude · Connect ChatGPT to Didit · MCP setup for every client
Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.
| Item | Value |
|---|---|
| Hosted endpoint | https://mcp.didit.me/mcp |
| Sign-in | OAuth 2.1 with PKCE, Log in with Didit in a browser. No API key in the client config. |
| Scopes | didit:management and didit:verification |
| Tools on a signed-in connection | 233 tools: 113 read, 85 write, 35 destructive |
| Tools on an application API key | 199 tools, because the tools that act on the signed-in person are not listed |
| Transport | Stateless Streamable HTTP, one POST per request, health check at GET https://mcp.didit.me/healthz |
| Plans | Free $0.00 a month with $10.00 of monthly credit for eligible organizations, Growth $99.00 a month with $115.00 of credit, Scale $299.00 a month with $350.00 of credit, Enterprise a custom annual contract from $15,000 a year |
| Price of the MCP server | Free, included on every plan. It is not the whole bill. |
| Price of what the agent runs | Per completed check from prepaid credit: KYC $0.33, AML screening $0.20, wallet screening $0.15, phone from $0.02 plus carrier |
| Sandbox | Free and unlimited on every plan, every check mocked |
Start free in the sandbox at https://business.didit.me/, no sales call. Developers can connect Didit to an AI assistant via https://didit.me/developers/mcp/. Every price in this guide is on the Didit pricing page, with the billing rules in the docs.
What the hosted MCP server actually is
The hosted Didit MCP server is an OAuth 2.1 resource server. The authorization server is the Didit Business Console at business.didit.me: you sign in there, approve the request, and the MCP then acts as you across every organization you belong to, with the permissions your console role holds. Nothing secret is copied into your agent's config, and there is no key to rotate.
The server is stateless Streamable HTTP. One POST https://mcp.didit.me/mcp per request, no session affinity, and a public health check at GET https://mcp.didit.me/healthz. Tools return the verbatim JSON of the underlying Didit endpoints, so the field names your agent parses match the REST reference rather than a renamed copy.
Two connection paths exist and they do not do the same thing. A user-authorized connection signs in with Log in with Didit over OAuth and acts as that person, inside the organizations they approve, with their role's permissions. An unattended connection signs in with an application API key and acts as one application, with nobody present, for CI, a scheduled job or a backend agent; it lists 199 tools because the tools that act on the signed-in person are not listed. Pick the path before you write the config, because switching later means a new connection and a new review of what the agent may call.
Two properties matter when you build your own agent. First, the connection is read and write: an agent can create sessions, configure workflows, update statuses and add entries to your lists on your behalf. Every client asks you to review tool calls before they run. Keep that on, especially for write and destructive actions. Second, the catalog is large. A signed-in connection lists 233 tools, and sending all of them to the model costs roughly 50,000 to 115,000 tokens of tool definitions on every request, depending on the tokenizer. Toolsets and read-only mode exist to cut that down.

Prerequisites before you connect
| Prerequisite | What it means in practice |
|---|---|
| Didit plan | The Free plan works: $10.00 of monthly credit for eligible organizations, and the sandbox is free and unlimited. Growth is $99.00 a month, Scale $299.00 a month, Enterprise a custom annual contract. The server itself is included on every plan. |
| Console account and role | A user inside the organization you want the agent to work in. Every tool checks a role permission on every call, so the role you sign in with sets what the agent may do. |
| Client | Any MCP client that connects to a remote HTTP server and follows an OAuth flow, or your own runtime doing the same. Claude, ChatGPT, Cursor, VS Code, Codex, Windsurf and Zed have documented setups. |
| Browser | Needed for Log in with Didit. A self-hosted server can use device-code sign-in instead. |
| Unattended agent | An application API key, for CI, a scheduled job or a backend agent. It acts as that one application, not as a person, and lists 199 tools. |
| Confirmation setting | Left on in the client, so write and destructive calls are reviewed before they run. |
If you are writing the agent yourself, your runtime needs to speak MCP over HTTP and follow an OAuth sign-in. The server publishes its OAuth metadata for the /mcp path, which is why the URL must include /mcp and not just the host. If your framework can only make plain REST calls, skip MCP and call the Didit API with the x-api-key header on https://verification.didit.me; the MCP server is the agent-facing wrapper over those same endpoints. A platform with no documented connector is not blocked: the documented route is the REST API with that header, plus webhooks for status changes.

Connect a custom agent in seven steps
- Sign in to the console and check your role. Open business.didit.me and log in. Note the organization you will work in. Every MCP call is checked against the permission your role holds there, so a role without
list:sessionsgets an error the first time the agent lists sessions. Ask an owner or admin for what you need before you start. - Add the endpoint to your agent's MCP config. The entry is HTTP with the full URL. Key names differ per client: VS Code reads
servers, most other clients readmcpServers.
If your client has a CLI, one command writes the same entry:{ "servers": { "didit": { "type": "http", "url": "https://mcp.didit.me/mcp" } } }
and for VS Code:claude mcp add --transport http didit https://mcp.didit.me/mcp
Nothing secret goes in this file. No API key, no client secret.code --add-mcp '{"name":"didit","type":"http","url":"https://mcp.didit.me/mcp"}' - Complete Log in with Didit. The client opens a browser and asks you to sign in. Approve the permissions, and choose the organizations you want the agent to reach. In Claude Code, start the session and run
/mcpto trigger the browser, thenclaude mcp listshows the server and its connection state. In VS Code, run MCP: Add Server from the command palette, choose HTTP, paste the URL, name itdidit, then sign in. - Prove the connection with a read call. Ask the agent to call
didit_context_getand list your organizations and applications. That tool comes first on purpose: it returns every organization and application you can reach, nested, plus the default org and app when there is only one. If it answers with your orgs and their application ids, the OAuth connection works and the rest is scope selection. - Load only the toolsets the agent needs. Add
toolsetsto the URL as a comma-separated list.coreis about 30 tools and covers your organizations and applications, verification sessions (create, find, decide, explain, simulate in the sandbox, read webhook deliveries), finding workflows, analytics and balance, your application's API key and webhooks, finding cases, users, businesses and transactions, and the documentation search.
The other names arehttps://mcp.didit.me/mcp?toolsets=core,workflowsaccount,billing,sessions,workflows,lists,vendors,transactions,cases,investigator,webhooks,reports,branding,verification,travel_rule,marketplace,networks,complianceanddocs. A tool you did not load is not lost: the server addsdidit_tool_search,didit_tool_describe,didit_tool_call_readanddidit_tool_call_write, so the model can find a tool and run it under the same role permissions. - Decide how an agent with no person present signs in. A self-hosted server can use device-code sign-in. An agent that runs with nobody present, such as CI, a scheduled job or a backend agent, connects with an application API key and acts as that one application; that connection lists 199 tools, because the tools that act on the signed-in person, such as billing, compliance and account settings, are not listed.
- Keep confirmations on for write and destructive calls. The annotations carry the type. Read is read-only, write creates or changes something, and destructive deletes or overwrites data, changes something that takes effect at once, reveals a secret or moves money. Some tools enforce it themselves:
didit_session_deleteanddidit_session_batch_deleterefuse to run withoutconfirm: truein their arguments, anddidit_case_manageneeds it when filing a SAR.
Field and event mapping
Your agent sees tool names. Your code sees the JSON of the endpoint behind each tool. This table maps the calls a first integration usually needs, with the scope and the role permission that gate them. A dash means the endpoint is membership-scoped or has no per-role check.
| What the agent asks for | Tool | Type | Scope | Role permission |
|---|---|---|---|---|
| Which orgs and apps can I reach | didit_context_get | Read | Either | - |
| How does Didit work | didit_docs_search | Read | Either | - |
| Recent verification sessions | didit_session_search | Read | didit:verification | list:sessions |
| Create a session or workflow run | didit_session_create | Write | didit:verification | create:sessions |
Find a customer by email or vendor_data | didit_vendor_user_search | Read | didit:management | list:users |
| Find a KYB business | didit_vendor_business_search | Read | didit:verification | list:businesses |
| Find a workflow by id or label | didit_workflow_search | Read | didit:management | read:workflows |
| Monitored transactions | didit_transaction_search | Read | didit:verification | list:transactions |
| Investigation cases | didit_case_search | Read | didit:verification | list:cases |
| Conversion and funnel numbers | didit_analytics | Read | Either | read:analytics |
Two behaviours to build for. Long lists come back one page at a time, 20 workflows and 50 of most other things, with limit up to 200, offset and count, so the agent can tell there is more and read on. And scope pinning: every tool accepts optional organization_id and application_id. With one org and one app they are resolved for you. With several, the search tools and didit_analytics span all of them, and a tool that works inside one application, such as the webhook, questionnaire, list, branding and transaction rule tools, needs application_id.
If your agent reacts to changes rather than polling, use the webhook tools: destinations and alerts are listed under the webhooks toolset, and sessions expose their webhook deliveries. Resolve the application id once with didit_context_get and pass it with those calls.
Test the connection and sandbox session flow
The sandbox is free and unlimited on every plan, and new sandbox applications carry keys that start with sk_test_; older sandbox keys may have no prefix. The core toolset includes a tool that simulates a session in the sandbox, so a simulated run draws no credit. Everything in the first table below is a read or a simulation, and it is safe to repeat against the organization you are testing.
| Test | Prompt or call | Expected success |
|---|---|---|
| Connection | Call didit_context_get and list my organizations and applications | Your orgs and their applications with ids, plus the default org and app when there is one |
| Review queue | Show me the last 5 in-review sessions across all my apps | Sessions newest first, one page, with count and offset |
| Find a customer | Find the customer with vendor_data user_8842 and tell me which app they are in | The vendor user tagged with its organization and application |
| Sandbox run | Simulate this session in the sandbox | A simulated session result, with no live credit used |
| Docs | Search the Didit docs for webhook retries | Matches from the documentation search tool |
Two more tests write, and they are live. Workflow creation and transaction-rule creation change the organization and application the agent is connected to; they are not sandbox simulation. Run them only after didit_context_get names the organization and application you mean, and only with the client's confirmation prompt left on.
| Test | Prompt | Expected result |
|---|---|---|
| Build a flow | Create a KYC workflow with an ID scan and liveness, then give me a verification link | A workflow created in the confirmed application, and a verification link returned |
| Rules | Write a rule that flags more than 3 transfers over $1,000 in an hour and back-test it on 90 days | A rule created in the confirmed application, and a back-test result |
| Error or symptom | Cause | Fix |
|---|---|---|
A tool answers with missing_scope | Your role in that organization lacks the permission the tool needs; the error names it | Ask an owner or admin to grant it, then retry. A toolset never grants a permission |
| Sign-in loops or fails | You are not logged in to the console in that browser | Log in at business.didit.me first, then reconnect. In VS Code, run MCP: List Servers, select didit, restart it |
| The connector dialog opens empty | The link lost its query string | Paste the full connector link, or add the connector manually with URL https://mcp.didit.me/mcp |
| The client warns about too many tools | The whole catalog is loaded | Add ?toolsets=core and keep only the groups the task needs in the client's tool picker. A read-only connection lists about 20 |
| No browser on the machine | OAuth needs a browser | Use the device code sign-in |
| An unattended agent has nobody to approve | OAuth sign-in needs a person | Connect with an application API key |
| A delete tool refuses to run | It needs explicit confirmation | Pass confirm: true in the arguments |
didit_org_top_up or the reveal-key tool is missing | Both are hidden from the hosted connector on purpose, so it never moves money or reveals a secret | Top up through the console link the connector returns, and read API keys in the console. Agent top-ups with a saved card are a console setting |
| A write is refused on a read-only connection | The server refuses every call that would create, change or delete | Connect without read_only=true |
Disconnect, revoke and the read-only escape hatch
To stop an agent, remove the server entry where you added it. In Claude web and Claude Desktop that is Settings, then Connectors. In VS Code it is MCP: List Servers, then delete or restart the entry. In a config file, delete the entry and restart the client. The grant lives with your Didit account, so the tighter control is on our side: every call is checked against the role you signed in with, and a permission you remove takes effect on the agent's next call.
If you only want to stop writes, reconnect with read_only=true on the URL. A read-only connection lists only tools that read, and the server refuses every call that would create, change or delete something, so the refusal holds even if your client remembers a tool from an earlier connection.
One product boundary worth stating. The reverse case, your own users approving their own agents to act inside your application, is Didit Authentication's agent access, not the MCP server. Agent access is included on every plan, off by default for a new application, and switched on under Authentication, Agent access. The person approves a scoped session with an optional fresh passkey, sessions last 1, 7 or 30 days, they end when idle for 30 minutes, 2 hours or 24 hours, and your backend tells an agent from the person by the act claim in the token.
What both ends cost
On our side, the server and the workflow orchestrator are included on every plan, and the sandbox is free and unlimited. You pay per completed check from prepaid credit, plus a plan fee on Growth, Scale or Enterprise. The lines a first agent integration touches: full KYC $0.33 per completed check (ID document $0.15, passive liveness $0.10, face match 1:1 $0.05, device and IP $0.03), AML screening $0.20, ongoing AML monitoring $0.07 per person a year, proof of address $0.20, wallet screening $0.15 per screening, transaction monitoring $0.001 per transaction beyond the plan's monthly allowance, and phone verification from $0.02 plus the carrier price for the country and channel. Growth takes 4% off every Didit price, Scale 10%. Sandbox checks are mocked, so they draw no credit.
On your side, the cost is model tokens. Your client sends the definition of every listed tool before your first question, so the catalog you load sets a floor on every request. The whole catalog is roughly 50,000 to 115,000 tokens depending on the tokenizer, core is about a tenth of that, and a read-only connection less than a tenth. Your model provider bills those tokens at its own rates, and we publish no price for that part.
Worked cost example
An onboarding agent runs 2,000 sessions in a month. Every session completes a full KYC check, and 400 of them also get AML screening. The MCP server adds nothing to the bill.
- Full KYC: 2,000 x $0.33 = $660.00
- AML screening: 400 x $0.20 = $80.00
- Total at list price: $660.00 + $80.00 = $740.00
On Scale, with 10% off every Didit price: 2,000 x $0.297 = $594.00 for KYC, and 400 x $0.18 = $72.00 for AML, so $594.00 + $72.00 = $666.00 in checks. The Scale plan is $299.00 a month and comes with $350.00 of monthly credit, which usage is paid from first. The tools the agent called to create the workflow, list the sessions and read the analytics are still free.
Add Didit to Claude · Connect ChatGPT to Didit · MCP setup for every client
Sources
- Didit MCP server overview
- Didit MCP tools reference
- Didit MCP toolsets and read-only mode
- Connect Claude to the Didit MCP server
- Connect VS Code and Copilot to the Didit MCP server
- Didit Authentication agent access
- Didit API authentication
- Didit MCP server page
- Didit pricing and pricing as JSON
- Billing rules in the docs
- Didit MCP source on GitHub (MIT)
- Model Context Protocol
- Didit site index for AI agents
Next step: create a free organization at https://business.didit.me/, run the sandbox tests above with your own agent, and point it at live credit only when the connection answers cleanly. There is no sales call on that route, and Didit is used by 4,000+ companies.
Try it
Try this in the sandbox
Run the check this guide describes, free.
The product this post is about, taken from its topic. Run it free in the sandbox.
Author
Alberto Rosas
Co-founder and CEO

Questions
Frequently asked questions
What is the Didit MCP server URL, and does it need an API key?
The hosted Didit MCP server is at https://mcp.didit.me/mcp. A person signs in with Log in with Didit over OAuth 2.1 with PKCE, so no API key goes in the client config. An agent that runs with nobody present connects with an application API key instead, and that connection lists 199 tools.
Can a custom AI agent use the Didit MCP server without a hosted assistant like Claude?
Yes. The server is a standard MCP server over stateless Streamable HTTP, one POST per request, with OAuth metadata published for the /mcp path, so any client that supports remote MCP with OAuth can connect. Claude, ChatGPT, Cursor, VS Code, Codex, Windsurf and Zed have documented setups, and your own runtime follows the same flow.
What permissions does my agent get after the OAuth sign-in?
It acts as you, in the organizations you approve at sign-in, with the permissions your console role holds, under the didit:management and didit:verification scopes. Each tool checks its own role permission on every call and returns missing_scope naming it when the role lacks it.
How much does the Didit MCP server cost?
The MCP server is free and included on every plan, as are the workflow orchestrator and the SDKs. Your bill is any plan fee plus per completed check from prepaid credit: $0.33 for full KYC, $0.20 for AML screening, $0.15 for wallet screening. The sandbox is free and unlimited.
How many tools does the Didit MCP server expose?
233 for a signed-in user: 113 read, 85 write and 35 destructive. A connection signed in with an application API key lists 199, and the open-source build lists 194. The 17 Investigator tools only work once the Investigator is enabled for your organization.
Why does a tool answer with missing_scope?
Your role in that organization lacks the permission the tool needs, and the error names it. Ask an owner or admin to grant it, then retry. A toolset never grants a permission, so switching toolsets does not fix this error.
Can my agent run with no browser and no person?
Yes. A self-hosted server can use device-code sign-in. An agent that runs with nobody present, such as CI, a scheduled job or a backend agent, connects to the hosted server with an application API key and acts as that one application.
How do I keep the agent from changing data?
Connect with read_only=true on the server URL. A read-only connection lists only tools that read, and the server refuses every call that would create, change or delete something, even if the client remembered a tool from an earlier connection. To allow changes again, connect without the parameter.
What happens if my agent tries to delete a session?
didit_session_delete and didit_session_batch_delete refuse to run without confirm: true in their arguments, and clients ask before running destructive tools. Destructive covers deletes and overwrites, publishing a workflow, a session decision, revealing a secret and moving money.
Can I self-host the Didit MCP server?
Yes. The source is on GitHub under the MIT license, and the self-hosted server still authenticates the user over OAuth through a device code sign-in, or with a user Bearer token for headless stdio runs. The open-source build lists 194 tools: the hosted catalog without the tools that only the hosted server has.
How do I disconnect an agent from Didit?
Remove the server entry in the client, for example Settings then Connectors in Claude, or the entry in mcp.json, and restart the client. Every MCP call is checked against the role you signed in with, so removing a permission on the Didit side stops the call on the agent's next attempt.
Does the MCP server let my end users approve their own agents?
No, that is a different product: Didit Authentication's agent access lets a person approve their own agent for your application, with a scoped session that ends on its own and that the person or your team can revoke. Agent access is included on every plan, and your backend tells an agent from the person by the act claim in the token.
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.
Your obligations · 3 regions
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.
- 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.
Didit Academy


