Skip to main content

How to Connect OpenAI Codex to the Didit MCP Server

Run codex mcp add didit --url https://mcp.didit.me/mcp, approve Log in with Didit, then confirm with codex mcp list. No API key; one config.toml serves the Codex CLI and IDE extension.

How to Connect OpenAI Codex to the Didit MCP Server

Contents

In this guide

Jump to the part you need.

OpenAI Codex connects to the hosted Didit MCP server with one command, codex mcp add didit --url https://mcp.didit.me/mcp, then a browser sign-in. It fits developers and compliance teams already working in the Codex CLI or the IDE extension. The Didit MCP server is free on every plan. The caveat: Codex loads MCP tools on demand, so name the Didit server or the tool you want in your first prompt.

Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.

MCP setup for every client · Sandbox sign-up at business.didit.me · Prices per check on didit.me/pricing

Didit MCP in OpenAI Codex at a glance
WhatDetail
ClientCodex CLI and the Codex IDE extension, one shared configuration
Commandcodex mcp add didit --url https://mcp.didit.me/mcp
Server URLhttps://mcp.didit.me/mcp
Config file~/.codex/config.toml, entry [mcp_servers.didit]
AuthenticationOAuth 2.1 with PKCE, Log in with Didit, no API key in the file
Success lineSuccessfully logged in to MCP server 'didit'.
Verifycodex mcp list shows status enabled and auth OAuth
Tools233 for a signed-in user: 113 read, 85 write, 35 destructive
Didit priceMCP server free on every plan; checks billed per completed check

Start free in the sandbox at business.didit.me, no sales call. For developers, the server page at didit.me/developers/mcp covers every client, and every check has a published price on didit.me/pricing. In Claude, Add Didit to Claude pre-fills the connector dialog.

What you need before you run the command

Prerequisites for connecting Codex to the Didit MCP server
ItemWhat to haveWhy it matters
Didit planAny plan, including Free. Sandbox testing is free and unlimited.The MCP server is a free line on every plan. Only live checks cost money.
Codex clientCodex CLI or the Codex IDE extension, current versionBoth read ~/.codex/config.toml, so one setup covers both surfaces.
Didit accountA user in the organization the agent should work inThe server acts as you, with your console role's permissions, in the organizations you approve.
Role permissionsThe permissions the tools you plan to use requireA tool your role cannot use answers with missing_scope and names the permission.
BrowserA browser on the machine running Codex, or a forwarded portSign-in is a browser redirect. A remote machine uses the printed URL instead.

Connect Codex to the Didit MCP server in four steps

  1. Add the server. Run this in your terminal:

    codex mcp add didit --url https://mcp.didit.me/mcp

    Codex writes the server to ~/.codex/config.toml, sees that it needs OAuth, and starts the sign-in straight away. There is nothing to install and no key to paste.

  2. Approve Log in with Didit. Your browser opens Codex wants to access your Didit account. Choose the organizations to connect, review the permissions, and click Approve. The terminal prints Successfully logged in to MCP server 'didit'. If you cancel the browser step, run codex mcp login didit later.

  3. Confirm the connection:

    codex mcp list

    The didit row shows status enabled and auth OAuth. That is the whole check: if the row says Not logged in, the browser sign-in never finished.

  4. Make the first call. Name the server in the prompt, because Codex loads MCP tools on demand:

    Use the didit MCP server: call didit_context_get and list my organizations and applications.

    Codex calls didit_context_get and returns your organizations with their applications and ids.

Codex identifies itself to the server with a Client ID Metadata Document, so you never generate a client secret. The server is stateless Streamable HTTP: one POST https://mcp.didit.me/mcp per request and a public health check at GET https://mcp.didit.me/healthz.

Or edit config.toml by hand

If you prefer to manage the file yourself, this is the whole entry in ~/.codex/config.toml:

[mcp_servers.didit]
url = "https://mcp.didit.me/mcp"

Then run codex mcp login didit to sign in through the browser. There is no API key in the config, because the server authenticates the person, not an application key.

Verify the sign-in and the tool list

Run codex mcp list after the browser step and read two fields: status and auth. Status enabled means Codex will offer the server, auth OAuth means a token is stored for that server. If the row shows Not logged in, run codex mcp login didit and finish the browser step.

Didit Academy lesson on using Didit from an MCP client
The Didit Academy lesson demonstrates the Didit MCP OAuth sign-in, then builds a KYC workflow from one prompt.

What Codex can call, and what each tool needs

The mapping below is the part most setup pages skip. A tool's type tells you whether Codex will ask for confirmation before running it, and the role permission is what your organization must grant for the call to succeed.

Didit MCP tools in Codex: type, scope and role permission
ToolTypeScopeRole permissionWhat it returns
didit_context_getReadEitherNo per-role checkEvery organization and application you can reach, nested, with their ids
didit_docs_searchReadEitherNo per-role checkSearch of the Didit documentation for how a feature or integration works
didit_session_createWritedidit:verificationcreate:sessionsA new verification session, billable in a live application
didit_session_searchReaddidit:verificationlist:sessionsSessions across all your apps and organizations, newest first
didit_transaction_searchReaddidit:verificationlist:transactionsMonitored transactions across your apps
didit_analyticsReadEitherread:analyticsRequest breakdown, feature funnel and conversion rate for a date window

A toolset decides what is listed, not what you may run: a tool outside the selected toolset can still run when the model calls it by name, subject to your role permissions. When your role lacks the permission itself, the call fails with a missing_scope error that names the permission it needed. Every tool accepts optional organization_id and application_id to pin a scope, which matters when you belong to more than one organization.

Which prompt calls which tool

Ask in plain language and name the server or the tool. A few mappings that work on a fresh connection:

Common Codex prompts and the Didit tool they call
PromptToolType
Which organizations and applications can I reach?didit_context_getRead
Create a verification session in my sandbox applicationdidit_session_createWrite
Find the last five sessions in reviewdidit_session_searchRead
Find the workflow with this labeldidit_workflow_searchRead
Find the customer with this vendor_data valuedidit_vendor_user_searchRead
Which transactions were flagged this week?didit_transaction_searchRead
What is my conversion rate this month?didit_analyticsRead
How do I register a webhook destination?didit_docs_searchRead

Limit which Didit tools Codex loads

A connection with no filter lists every tool your role may use, and the client sends all of those definitions to the model before your first question. For the whole Didit catalog that is roughly 50,000 to 115,000 tokens on every request, depending on the tokenizer. The short list core is about 30 tools and about a tenth of that, and a read-only connection is about 20 tools and less than a tenth.

To keep a session focused, name the tools in the config block:

[mcp_servers.didit]
url = "https://mcp.didit.me/mcp"
enabled_tools = ["didit_context_get", "didit_session_create", "didit_session_list", "didit_session_get_decision"]

disabled_tools does the reverse and removes named tools from the list. Tool names are in the tools reference, which lists every tool with its type and the role permission it needs.

The server also takes parameters on the URL, which you can paste into the same config value:

[mcp_servers.didit]
url = "https://mcp.didit.me/mcp?toolsets=core&read_only=true"

toolsets=core lists the short list. read_only=true lists only tools that read, and the server refuses every call that would create, change or delete something, so the restriction holds even if the client remembers a tool from an earlier connection. A toolset decides what is listed, not what you may run, and your role permissions still apply.

Test with sandbox data

Build and test in a sandbox application first. Sandbox checks are simulated and never billed, and the core toolset covers creating, finding, deciding and simulating sessions in the sandbox.

  1. In the Didit Business Console, create or open a sandbox application and keep its workflow id ready.
  2. In Codex, ask with the server named: Use the didit MCP server: create a verification session in my sandbox application.
  3. Read the answer. The tools return the verbatim JSON of the underlying Didit endpoint, so you see the same fields your backend would see.

Expected success: Codex reports the session it created and the fields the endpoint returns, and didit_session_search can find the same session in a subsequent search. If you created it with a live key instead, that call is billed at the published price for each completed check.

A verification session with its warnings in the Didit Business Console
The session Codex creates in the sandbox appears in the console with the same detail you see in production.
Error cases and fixes
SymptomCauseFix
Not logged in in codex mcp listThe browser sign-in was cancelled or the stored token is goneRun codex mcp login didit and finish the sign-in
Browser cannot open on a remote machineNo browser on the host running CodexRun codex mcp login didit, open the printed URL on your own computer, keep the terminal running and forward the callback port if needed
A tool answers with missing_scopeYour role in that organization lacks the permission, and the error names itAsk an owner or admin to grant the permission, or sign in with a role that has it
Codex answers a Didit question without calling a toolTools load on demandName the server or the tool in the prompt, for example Use the didit MCP server: call didit_session_search
The didit row is missing from codex mcp listThe entry is not in the config fileRe-run codex mcp add didit --url https://mcp.didit.me/mcp or add the [mcp_servers.didit] block by hand

Sign out and disconnect

Run codex mcp logout didit to clear the sign-in. To remove the server entirely, delete the [mcp_servers.didit] block from ~/.codex/config.toml; the docs show the whole entry, so removing that block removes the server. The OAuth grant only covers the organizations you approved at sign-in, with your role's permissions.

Install the Didit plugin instead

If you want the server plus written instructions for common tasks, the Didit plugin adds the same hosted server and 8 skills to Codex:

codex plugin marketplace add didit-protocol/skills

Then install the didit plugin from that marketplace and sign in with Didit when Codex asks. The skills cover connecting, verifying people and businesses, the review queue, standalone checks, transaction monitoring, reports and workspace administration. No code runs on your machine: every action is a call to the same hosted server.

What each end costs

The Didit side is simple. The MCP server is a free line on every plan, the sandbox is free on every plan, and you pay per completed check from prepaid credit only when you work in a live application. Didit is used by 4,000+ companies. Common list prices: full ID check $0.33, AML screening $0.20, ongoing AML monitoring $0.07 per person a year, business verification from $2.00 per company, wallet screening $0.15 per screening, transaction monitoring $0.001 per transaction beyond the plan's allowance.

Codex usage pricing is outside this Didit setup guide. On our side there is no extra key to buy, because the connection uses OAuth.

A worked example for a team that runs 500 full KYC checks and 500 AML screenings a month in a live application, at list price:

  • 500 x $0.33 = $165.00 for the full ID checks
  • 500 x $0.20 = $100.00 for the AML screenings
  • Didit MCP server = $0.00
  • Total = $165.00 + $100.00 = $265.00

On the Scale plan, where every Didit price is 10% lower: 500 x $0.297 = $148.50, 500 x $0.18 = $90.00, total $238.50. The $299 monthly Scale fee is separate and comes with $350 of monthly credit. A KYB run looks different: 25 businesses x $2.00 starting price = $50.00, plus a linked full ID check for each owner at $0.33 per person. KYB pricing varies by country and data tier.

Didit billing explainer covering credits, auto-recharge and volume discounts
Credits, auto-recharge and plan discounts, explained in the Didit billing lesson.

MCP setup for every client · Sandbox sign-up at business.didit.me · Prices per check on didit.me/pricing

Sources

Ready to test it? Create a free organization at business.didit.me, build a sandbox workflow, then run codex mcp add didit --url https://mcp.didit.me/mcp and ask Codex for a session. Sandbox checks are simulated and never billed, so you can measure the flow before you spend a credit. Prices are on didit.me/pricing.

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

Alberto Rosas

Co-founder and CEO

Alberto Rosas

Alberto Rosas

Co-founder and CEO

About Didit

Questions

Frequently asked questions

How do I add the Didit MCP server to OpenAI Codex?

Run codex mcp add didit --url https://mcp.didit.me/mcp in your terminal. Codex writes the entry to ~/.codex/config.toml, opens the browser for Log in with Didit, and prints Successfully logged in to MCP server 'didit'. once you approve. Confirm with codex mcp list, where the didit row should show status enabled and auth OAuth.

Does the Codex IDE extension need a different configuration from the CLI?

No. Both read the same ~/.codex/config.toml, so one codex mcp add command configures the CLI and the IDE extension. The server entry, the OAuth sign-in and the tool list are identical on both surfaces.

Do I need a Didit API key for Codex?

No. The hosted server uses OAuth 2.1 with PKCE, and there is no API key in the config file. The connection acts as you, in the organizations you approve at sign-in, with your Didit console role's permissions.

Why does codex mcp list show didit as Not logged in?

The browser sign-in was cancelled or the stored token is gone. Run codex mcp login didit, finish the sign-in, then check codex mcp list again for status enabled and auth OAuth.

What does a missing-scope error from a Didit tool mean?

Your role in that organization lacks the permission the tool needs, and the missing_scope error names it. Ask an owner or admin in that organization to grant the permission, or sign in with a role that already holds it. Reconnecting does not grant permissions.

How do I stop Codex from loading every Didit tool?

Set enabled_tools in the [mcp_servers.didit] block to list only the tools you want, or use disabled_tools to remove specific ones. You can also add a query parameter to the server URL, such as ?toolsets=core for about 30 tools or ?read_only=true for a connection that cannot change data. A tool outside the list can still run when the model calls it by name, subject to your role permissions.

Can Codex change data in my Didit account?

Yes. The Didit MCP is read-and-write: an agent can create sessions, configure workflows, update statuses and add entries to your lists. Every client asks you to review tool calls before they run, so keep that confirmation on, especially for write and delete actions. A connection opened with ?read_only=true refuses every call that would create, change or delete something.

How much does the Didit MCP server cost?

The MCP server is a free line on every Didit plan, and sandbox checks are simulated and never billed. Live verifications and checks are billed per completed check from prepaid credit, for example $0.33 for a full ID check and $0.20 for an AML screening. Codex usage pricing is outside this Didit setup guide.

How do I sign out of Didit in Codex?

Run codex mcp logout didit. To remove the server entirely, delete the [mcp_servers.didit] block from ~/.codex/config.toml.

Can I connect Codex to Didit on a remote machine with no browser?

Yes. Run codex mcp login didit, open the printed URL on your own computer, and keep the terminal running until the sign-in completes. The callback goes to a local port on the machine running Codex, so forward that port if the two machines are not the same.

What can Codex do with Didit once it is connected?

A signed-in user gets 233 tools: 113 read, 85 write and 35 destructive, across sessions, workflows, standalone checks, transaction monitoring, lists, cases, reports and webhooks. Codex can create a verification link, list what is waiting in the review queue, screen a person against sanctions and PEP lists, and read your credit balance. The tools return the verbatim JSON of the underlying Didit endpoints, so an agent can chain calls without a translation layer.

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.