# ChatGPT and Codex MCP

> Add the Proferex MCP server to ChatGPT and Codex, ask about your campaigns, and send tracker changes for your approval.

In ChatGPT, add Proferex as a custom MCP server under Plugins. In Codex, add the Proferex MCP server from the terminal. Each needs its own connection.

---

## Add the Proferex MCP server in ChatGPT

1. In ChatGPT, open **Plugins**, click **Add** and choose **Add custom MCP server**.

![The ChatGPT Plugins Add menu with Create plugin, Upload plugin archive and Add custom MCP server](/images/docs/mcp-chatgpt-add-menu.jpg "Choose Add custom MCP server")

2. Enter `Proferex` as the name, paste `https://www.proferex.com/api/mcp` as the server URL, and leave **Authentication** on **OAuth**.

![The ChatGPT Add custom MCP server form with the name Proferex, the Proferex server URL and OAuth authentication](/images/docs/mcp-chatgpt-add-server.jpg "Fill in the name and the Proferex address")

3. ChatGPT finds the sign-in settings by itself. Open **Advanced OAuth settings** only to check that both **read** and **write** are ticked under **Default scopes**. Without **write**, ChatGPT can't propose changes.

![ChatGPT Default scopes with read and write both ticked](/images/docs/mcp-chatgpt-scopes.jpg "Keep both read and write ticked")

4. Tick **I understand and want to continue**, then click **Create as a plugin**.
5. Click **Connect Proferex**. The same Proferex page opens, this time asking **Connect ChatGPT to Proferex?** Check the account and click **Allow access**.

![ChatGPT asking to Connect Proferex, with Connect Proferex and Cancel buttons](/images/docs/mcp-chatgpt-connect.jpg "ChatGPT hands you over to Proferex to allow access")

To use it, type `@Proferex` in the message box, pick **Proferex** from the list, then type your question.

![The ChatGPT message box with the Proferex plugin chip added](/images/docs/mcp-chatgpt-mention.jpg "Type @Proferex to use Proferex in a chat")

![ChatGPT listing the seven most profitable campaigns of the last 7 days with profit, ROI and conversions](/images/docs/mcp-chatgpt-answer.jpg "ChatGPT answers from the same Proferex stats")

When you ask for a change, ChatGPT shows **Awaiting approval** with a button such as **Approve offer creation**. The button opens the approval page in Proferex. After you approve, tell ChatGPT and it checks that the change was made.

![ChatGPT showing Awaiting approval for the Summer CPA offer with an Approve offer creation button](/images/docs/mcp-chatgpt-proposed.jpg "ChatGPT links straight to the approval page")

![ChatGPT confirming Summer CPA was created successfully in Proferex](/images/docs/mcp-chatgpt-created.jpg "After you approve, ChatGPT confirms the change")

---

## Add the Proferex MCP server in Codex

In a terminal, run:

```bash
codex mcp add proferex --url https://www.proferex.com/api/mcp
```

Codex finds the Proferex sign-in by itself and prints a link. Your browser opens the same Proferex page, asking **Connect Codex to Proferex?** Click **Allow access**. When the browser says **Authentication complete**, close the tab and go back to the terminal.

Start Codex with `codex` and type `/mcp` to check that **proferex** is listed. Then ask your question in the same session.

If the link doesn't open by itself, copy it from the terminal into your browser. To sign in again later, run `codex mcp login proferex`.

---

## Next step

See [Connect Your AI App with MCP](/docs/ai-assistant/mcp/index.md) for what your AI app can read and change, how to approve its changes in Proferex, and how to disconnect it.
