> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nebuly.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Codex

> Add the Nebuly MCP Server to the Codex desktop app

This guide covers the Codex desktop app. For the terminal version, see [Codex CLI](https://docs.nebuly.com/documentation/nebuly-ai/mcp/codex-cli.md).

## Who does what

Each person adds Nebuly in their own Codex app. Nobody on your team has to set it up for you.

## Before you start

* A Nebuly account with MCP access.
* The Codex desktop app installed.
* Your MCP server URL, shown in the tabs below.

> [tab] SaaS
>
> Use this URL:
>
> ```text theme={null}
> https://mcp.nebuly.com/mcp
> ```
>
> > [!NOTE]
> >
> > If your SaaS account uses a custom authentication URL, ask your Nebuly representative for MCP access. Then use `https://<YOUR_AUTH_URL>/mcp`.

> [tab] Self-hosted
>
> Ask your Nebuly representative to enable MCP access for your deployment. Then use this URL:
>
> ```text theme={null}
> https://<YOUR_AUTH_URL>/mcp
> ```
>
> Replace `<YOUR_AUTH_URL>` with the address of your deployment.

## Set it up

**1. Add the server**

In Codex, open Settings → MCP servers → MCP icon **Add MCP server**. Fill in the form:

* Name: `nebuly-mcp`
* Type: Streamable HTTP
* URL: your MCP URL from the tabs above

  ![Codex custom MCP form](https://mintcdn.com/nebulyai/RdWCbEsjlnbXWq8Y/images/mcp/codex_custom_mcp_form.png?fit=max\&auto=format\&n=RdWCbEsjlnbXWq8Y\&q=85\&s=d858a9859bba293117f663311ce3e330)

The screenshot shows the SaaS URL. If you use a self-hosted deployment, enter your own MCP URL instead.

Save. Then select the reload icon above the MCP server list, or restart Codex.

**2. Sign in**

In the MCP servers list, select Authenticate next to `nebuly-mcp`. Sign in with your Nebuly account.

![Authenticate button next to nebuly-mcp in Codex](https://mintcdn.com/nebulyai/RdWCbEsjlnbXWq8Y/images/mcp/codex_authenticate_server.png?fit=max\&auto=format\&n=RdWCbEsjlnbXWq8Y\&q=85\&s=dead329dd1aa77fee4b30be507cab6c3)

**3. Test the connection**

In a new chat, type `/mcp` to check that `nebuly-mcp` is connected. Then ask Codex this. It should answer with your Nebuly projects.

```text theme={null}
List the Nebuly projects I can access.
```

## Troubleshooting

* **`nebuly-mcp` isn't in the list.** Check that you saved the server, then reload or restart Codex.
* **Authenticate doesn't finish.** Select Authenticate again and complete the sign-in in the browser.
* **Self-hosted server doesn't connect.** Check that your MCP URL is correct and that MCP access is enabled for your deployment.

> [card] [All MCP agents](https://docs.nebuly.com/documentation/nebuly-ai/mcp-server)
>
> Go back to the MCP Server overview and pick another agent.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.