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.

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
| What | Detail |
|---|---|
| Client | Codex CLI and the Codex IDE extension, one shared configuration |
| Command | codex mcp add didit --url https://mcp.didit.me/mcp |
| Server URL | https://mcp.didit.me/mcp |
| Config file | ~/.codex/config.toml, entry [mcp_servers.didit] |
| Authentication | OAuth 2.1 with PKCE, Log in with Didit, no API key in the file |
| Success line | Successfully logged in to MCP server 'didit'. |
| Verify | codex mcp list shows status enabled and auth OAuth |
| Tools | 233 for a signed-in user: 113 read, 85 write, 35 destructive |
| Didit price | MCP 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
| Item | What to have | Why it matters |
|---|---|---|
| Didit plan | Any 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 client | Codex CLI or the Codex IDE extension, current version | Both read ~/.codex/config.toml, so one setup covers both surfaces. |
| Didit account | A user in the organization the agent should work in | The server acts as you, with your console role's permissions, in the organizations you approve. |
| Role permissions | The permissions the tools you plan to use require | A tool your role cannot use answers with missing_scope and names the permission. |
| Browser | A browser on the machine running Codex, or a forwarded port | Sign-in is a browser redirect. A remote machine uses the printed URL instead. |
Connect Codex to the Didit MCP server in four steps
Add the server. Run this in your terminal:
codex mcp add didit --url https://mcp.didit.me/mcpCodex 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.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, runcodex mcp login diditlater.Confirm the connection:
codex mcp listThe
diditrow shows statusenabledand authOAuth. That is the whole check: if the row saysNot logged in, the browser sign-in never finished.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_getand 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.

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.
| Tool | Type | Scope | Role permission | What it returns |
|---|---|---|---|---|
didit_context_get | Read | Either | No per-role check | Every organization and application you can reach, nested, with their ids |
didit_docs_search | Read | Either | No per-role check | Search of the Didit documentation for how a feature or integration works |
didit_session_create | Write | didit:verification | create:sessions | A new verification session, billable in a live application |
didit_session_search | Read | didit:verification | list:sessions | Sessions across all your apps and organizations, newest first |
didit_transaction_search | Read | didit:verification | list:transactions | Monitored transactions across your apps |
didit_analytics | Read | Either | read:analytics | Request 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:
| Prompt | Tool | Type |
|---|---|---|
| Which organizations and applications can I reach? | didit_context_get | Read |
| Create a verification session in my sandbox application | didit_session_create | Write |
| Find the last five sessions in review | didit_session_search | Read |
| Find the workflow with this label | didit_workflow_search | Read |
Find the customer with this vendor_data value | didit_vendor_user_search | Read |
| Which transactions were flagged this week? | didit_transaction_search | Read |
| What is my conversion rate this month? | didit_analytics | Read |
| How do I register a webhook destination? | didit_docs_search | Read |
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.
- In the Didit Business Console, create or open a sandbox application and keep its workflow id ready.
- In Codex, ask with the server named:
Use the didit MCP server: create a verification session in my sandbox application. - 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.

| Symptom | Cause | Fix |
|---|---|---|
Not logged in in codex mcp list | The browser sign-in was cancelled or the stored token is gone | Run codex mcp login didit and finish the sign-in |
| Browser cannot open on a remote machine | No browser on the host running Codex | Run 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_scope | Your role in that organization lacks the permission, and the error names it | Ask 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 tool | Tools load on demand | Name 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 list | The entry is not in the config file | Re-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.

MCP setup for every client · Sandbox sign-up at business.didit.me · Prices per check on didit.me/pricing
Sources
- Didit docs: Connect OpenAI Codex to the Didit MCP Server
- Didit docs: Didit MCP Server overview
- Didit docs: Toolsets and read-only mode
- Didit docs: MCP tools reference
- Didit docs: MCP authentication, scopes and roles
- Didit docs: the Didit plugin, hosted server plus 8 skills
- Didit docs: Pricing and billing
- Didit pricing page and live price feed, read November 26, 2026
- Didit MCP server page
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.
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
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.
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


