Requirements
Every person who wants to use the MCP Server must complete the setup.
- Codex installed (CLI or IDE extension)
- To have the following enabled in Omni:
- The MCP Server AI setting. An Organization Admin can enable this setting by navigating to AI Hub > MCP.
- Personal access tokens (PATs), which are required to use OAuth to authenticate. An Organization Admin can activate them by going to Settings > API Keys > Personal tokens.
Setup
Choose your authentication method. See the MCP authentication guide if you need help selecting a method.- OAuth (Recommended)
- API Key
OAuth provides streamlined setup without manually managing API keys.
1
Add the Omni MCP server
In your terminal, run the following command:
2
Start a Codex session
Run
codex to start a new session. Codex will detect the Omni MCP server and initiate the OAuth flow.3
Authenticate with Omni
- Your browser will open and redirect you to an Omni authorization page.
- Review the requested permissions and click Authorize.
4
Verify the connection
At this point, you should be able to use the Omni MCP server in your Codex sessions.
Using the MCP
Once the MCP Server is connected, Codex automatically uses it when you ask questions about your data. You can prompt Codex to use Omni by referring to it by name or description.1
Start a Codex session and enter a prompt, such as
Hey Omni, tell me how many users signed up last month.2
Codex may prompt you to approve MCP tool usage. Approve the tool call to proceed.
3
The MCP Server will pick a model (if not configured) and topic, then run a query to retrieve the data.

