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

# Connect Anagram to Codex

> Add the Anagram MCP to the Codex desktop, CLI, and IDE clients.

Codex shares MCP settings across the ChatGPT desktop app, Codex CLI, and Codex IDE extension.

## ChatGPT desktop app

<Steps>
  <Step title="Open MCP settings">
    In the ChatGPT desktop app, open **Settings → MCP servers** and select **Add server**.
  </Step>

  <Step title="Enter the Anagram details">
    Set the name to `Anagram`, choose **Streamable HTTP**, and enter:

    `https://studio.anagram.ai/api/mcp`

    Save the server, then select **Restart**.
  </Step>

  <Step title="Sign in to Anagram">
    Find Anagram in the server list and select **Authenticate**. Complete the Anagram sign-in and approval screen. OAuth is handled automatically through Clerk.
  </Step>

  <Step title="Check the connection">
    Type `/mcp` in the Codex composer. Anagram and its tools should appear in the connected server list.
  </Step>
</Steps>

## Codex CLI

Run:

```bash theme={null}
codex mcp add Anagram --url https://studio.anagram.ai/api/mcp
codex mcp login Anagram
```

Your browser opens the Anagram sign-in and approval screen. After signing in, run `codex mcp list` to check the connection.

## Configuration file

You can also add Anagram to `~/.codex/config.toml`:

```toml theme={null}
[mcp_servers.Anagram]
url = "https://studio.anagram.ai/api/mcp"
auth = "oauth"
```

Then run:

```bash theme={null}
codex mcp login Anagram
```

The IDE extension reads the same configuration. A trusted project can instead keep the entry in `.codex/config.toml`.

## Codex IDE extension

The IDE extension does not have a separate add-server form. Open its settings and choose the option to edit `config.toml`, add the configuration above, then run `codex mcp login Anagram` in a terminal.

See [OpenAI's current Codex MCP guide](https://developers.openai.com/codex/extend/mcp) for all configuration options.
