# ChatGPT

> Add Cozy to ChatGPT as a custom MCP server, and to Codex with one command.

ChatGPT and Codex both connect to the same address:

```text
https://cozy.cloud/mcp
```

## ChatGPT [#chatgpt]

<Steps>
  <Step title="Open ChatGPT Plugins">
    In Cozy, open **Connectors → Agents → ChatGPT**, copy the URL and choose
    **Open ChatGPT Plugins**, or go to
    [chatgpt.com/plugins](https://chatgpt.com/plugins).
  </Step>
  <Step title="Add Cozy">
    Choose **+**, then **Add custom MCP server**. Name it Cozy, paste the URL
    and choose **Create**. Don't add an Authorization header.
  </Step>
  <Step title="Allow access">
    ChatGPT sends you to Cozy. Sign in if you need to and choose **Allow
    access**.
  </Step>
</Steps>

ChatGPT adds custom MCP servers on the web, in Business, Enterprise and Edu
workspaces, and in Pro. Whether ChatGPT can use Cozy's write tools, or only
read, depends on your plan, as OpenAI sets it. On a read-only plan, ChatGPT
can still search and cite your wiki.

## Codex [#codex]

Run this in your terminal:

```sh
codex mcp add cozy --url https://cozy.cloud/mcp
```

Codex opens your browser to sign in. If it doesn't, run:

```sh
codex mcp login cozy
```

The Codex CLI, its IDE extension and the ChatGPT desktop app share this
setting. Restart Codex and ask it to list your Cozy workspaces to check.

For CI or headless runs with a token in `config.toml`, see
[Credentials](/docs/credentials#codex).

## Troubleshooting [#troubleshooting]

- **The server won't add.** Check the URL is exactly
  `https://cozy.cloud/mcp`, and that your ChatGPT plan allows custom MCP
  servers.
- **Sign-in fails or loops.** Disconnect ChatGPT in **Connectors → Agents**,
  remove the server in ChatGPT, and add it again.
- **ChatGPT can read but not write.** Check that you allowed editing when you
  connected it, then whether your ChatGPT plan allows write tools.
- **The wrong workspace.** Tools use My wiki by default. Ask ChatGPT to list
  your Cozy workspaces and name the one you mean.

