Set up OpenAI Codex with Atlan MCP
Connect OpenAI Codex—both the desktop app and the CLI—to the Atlan MCP server using the Atlan Codex Plugin. OAuth is handled automatically with mcp.atlan.com when you register the MCP server. No API key or environment variable is required.
Prerequisites
Before you begin, make sure you have:
- An Atlan tenant with Atlan MCP enabled.
- OpenAI Codex installed—either the desktop app, the CLI, or both.
Set up Codex with Atlan MCP
Choose the setup that fits how you use Codex. Plugin install is the recommended path. Use direct MCP install only if you need the Codex CLI alone and don't want the desktop-app plugin entry.
- Plugin install (recommended)
- Direct MCP (CLI only)
The Atlan Codex Plugin is published in the Atlan agent toolkit repository, which exposes a Codex marketplace.
-
Register Atlan's marketplace with Codex:
codex plugin marketplace add https://github.com/atlanhq/agent-toolkit -
Install the Atlan plugin from that marketplace:
codex plugin add atlan@atlanThe
atlan@atlanslug uses Codex's<plugin-name>@<marketplace-name>convention. The firstatlanis the plugin name; the second is the marketplace name (Atlan's). It's how Codex resolves which plugin from which marketplace—not an internal-only identifier. -
Register the MCP server. Codex CLI doesn't yet read the plugin's bundled MCP configuration, so this step performs the actual registration and launches the OAuth flow with
mcp.atlan.com. Complete the sign-in in your browser. This step is no longer required once OpenAI's Plugin Directory is generally available and Codex CLI honors the plugin's bundled configuration:codex mcp add atlan --url https://mcp.atlan.com/mcp -
Quit and relaunch Codex so the new server loads into the session—Cmd+Q for the desktop app, or exit and re-run the CLI. The Atlan plugin appears under Plugins → Manage (enabled, with the MCP server registered).
-
Inside a Codex session, run
/mcpto inspect connected servers, then ask anything Atlan-related—for example:Find all tables in the snowflake connection and trace lineage upstream from orders_fact.
If you only need the MCP server in the Codex CLI and don't want the desktop-app plugin entry, register the server directly:
-
Add the Atlan MCP server. This appends
[mcp_servers.atlan]to~/.codex/config.tomland launches the OAuth flow withmcp.atlan.com. Complete the sign-in in your browser:codex mcp add atlan --url https://mcp.atlan.com/mcp -
Exit and re-run the Codex CLI so the new server loads into the session.
-
Inside a Codex session, run
/mcpto verify the server is connected, then start using Atlan MCP tools.
Verify connection
Confirm the plugin is installed and the MCP server is reachable:
codex plugin list | grep atlan # atlan@atlan installed, enabled
codex mcp list # atlan ✓
You can then ask Atlan-related questions inside a Codex session—for example:
- Find all tables in the Snowflake connection.
- Trace lineage upstream from the orders_fact table.
- List glossary terms tagged as PII in my catalog.
For the full list of tools available, see MCP tools.
Uninstall
To fully remove the Atlan plugin and MCP server, reverse each install step in the opposite order:
# 1. Sign out of the MCP server (clears the OAuth token from ~/.codex/auth.json)
codex mcp logout atlan
# 2. Remove the MCP server registration ([mcp_servers.atlan] in ~/.codex/config.toml)
codex mcp remove atlan
# 3. Remove the plugin from Plugins → Manage
codex plugin remove atlan@atlan
# 4. (Optional) Remove Atlan's marketplace itself
codex plugin marketplace remove atlan
Quit and relaunch Codex so the change takes effect in any open session. After all four steps, ~/.codex/config.toml has no [marketplaces.atlan] or [mcp_servers.atlan] sections, and ~/.codex/auth.json no longer carries an Atlan OAuth token. An empty ~/.codex/plugins/cache/atlan/ directory may remain—it's harmless, but you can rm -rf it for a fully clean wipe.
If you used the Direct MCP (CLI only) path, skip steps 3 and 4.
Need help?
If you have any issues configuring the integration, contact Atlan Support for assistance.