# Add the Dadan MCP server to OpenAI Codex

> Codex adds remote MCP servers from the command line or from the IDE extension’s settings. Both use the same Dadan sign-in.

## Before you start

- A Dadan account
- The Codex CLI or the Codex IDE extension

## Steps

1. Run these in your terminal. The second command starts the Dadan sign-in.

   ```bash
   codex mcp add dadan --url https://mcp.dadan.io/mcp
   codex mcp login dadan
   ```
2. In the Codex IDE extension, open the gear menu › MCP servers › Add server, choose Streamable HTTP and paste the connection URL.
3. Save, restart the extension, then select Authenticate.

Check it works: Ask Codex to search your Dadan videos for a recent title. A list of matches means it’s connected.

## Notes

- Run codex mcp login dadan again if Dadan asks you to reconnect.

## Troubleshooting

- **The assistant can’t connect.** Check that the URL ends with /mcp. The bare domain serves this website, not the MCP protocol.
- **Dadan asks you to reconnect.** Remove Dadan from that assistant and connect it again.
- **The assistant says the connection is read-only.** You ticked Read-only when you connected. To allow changes, remove Dadan and connect again without ticking it.
- **You can’t find custom connectors or MCP servers.** Your plan or your workspace admin may not allow them yet.
- **Sign-in says the link only works in the browser where you started.** Start connecting again from your assistant and finish the sign-in in the browser it opens. Don’t copy the sign-in link to another browser or device.
- **Notes or summaries fail.** The video needs a transcript first. Ask your assistant to transcribe it and say which language is spoken.

Canonical page: https://mcp.dadan.io/connect/codex
