# Connect ChatGPT to the eGain MCP

Use this guide to connect ChatGPT (browser, desktop, and mobile) to your eGain MCP server. Add the plugin once in the browser; desktop and mobile pick it up from your ChatGPT account.

## Prerequisites

- An **eGain Knowledge tenant**. If you do not have one, sign up for a free trial of **AI Knowledge Hub** or **AI Developer** on [eGain.com](https://www.egain.com/), or ask your eGain administrator to create an account for you in your team's existing tenant.
- **Administration Console access** for the partition you want ChatGPT to read from (needed to enable Remote MCP).
- A **ChatGPT account** with permission to add custom plugins. MCP access mirrors your eGain user's permissions — ChatGPT can only access the portals and articles that your eGain user account can access.


**Contact Support before you set up Remote MCP**
For versions 21.24 and earlier, Remote MCP is not available in all customer environments. [Contact Support](https://media.egain.com/support/self-provisioned.asp) to enable Remote MCP for your tenant or to confirm availability for your environment.

## Step 1: Enable Remote MCP in your eGain tenant

1. Sign in to your eGain Administration Console. Your tenant URL follows the pattern `https://<your-eGain-hostname>/<your-tenant-id>` — for example, `https://ai.egain.cloud/a1b2` or `https://aidev.egain.cloud/a1b2`.
2. Go to **Partition** → **Integration** → **MCP**.
3. Turn on the **Enable Remote MCP** toggle.
4. Select one of the available tabs for your use case:
  * **Agent:** for agent-only MCP access.
  * **Authenticated Customer:** for authenticated customer access.
  * **Anonymous Customer:** for anonymous customer access.
5. Click the copy icon next to the **MCP Server URL** field to copy the URL. You will paste this into ChatGPT in the next step.
![](/assets/mcp-claude-admin.5faba482f5a31be95a654a72a125fd0f38ccd71e71ac6fc34f533e70948451cd.afe294b5.png)


## Step 2: Add the eGain MCP to ChatGPT

### ChatGPT in the browser

Custom plugins can only be added in the browser at [chatgpt.com](https://chatgpt.com/):

1. Open ChatGPT, click your profile in the bottom left, then click **Settings**.
2. Go to **Security and login** and turn on **Developer mode**.
![](/assets/mcp-chatgpt-developer-mode.c495ca16e6236268859d009f4da8d5b3b47e0da78a7ebe160eebd733d38f19d6.afe294b5.png)
3. Go to **Plugins** and click **Browse plugins**.
![](/assets/mcp-chatgpt-plugins.88a29ef486dacf88d7ff191c952178dcae1d4f9ba24f9cf8f9e1cdcc5d0916db.afe294b5.png)
4. Click **+** to add a new plugin.
![](/assets/mcp-chatgpt-add.82ba84507b688e42e6054d5f300318d193c29d08a315bbbaac693372774b87b8.afe294b5.png)
5. Enter a name and paste the **MCP Server URL** you copied from the Administration Console into the **Connection** field.
![](/assets/mcp-chatgpt-fields.aaae4a7c989ea4928b5305bad4797353c9bdf20c9fc45288a589226c4e7fbf0a.afe294b5.png)
6. Set **Authentication** based on the MCP URL you copied:
  * **Anonymous MCP URL:** set **Authentication** to **No Auth**, then click **Create**. You can skip the remaining steps in this section.
  * **Authenticated MCP URL:** set **Authentication** to **OAuth**, then continue below.
7. Click **Advanced OAuth settings**. Copy the **Callback URL**. You will also need to fill in **OAuth Client ID** and **OAuth Client Secret** after you create the client in eGain.
![](/assets/mcp-chatgpt-advance.e8bb293d56b3aee181a4183fcca752a0c70675aaae80a06039981082ff45e94a.afe294b5.png)
8. Return to the eGain Administration Console. Under **MCP: Registered Clients**, add a client (for example, named `ChatGPT`). Paste the Callback URL into **Redirect URL** and save.
![](/assets/mcp-chatgpt-redirect.de246366ad1e48c74585d903943872895f4d42c529a8b419a3016bf3956f04b6.afe294b5.png)
9. On that registered client, open the **⋯** menu and click **Display**. Copy the **Client ID** into the ChatGPT plugin's **OAuth Client ID** field.
![](/assets/mcp-chatgpt-id.c28513056256e84c2bd67fc3587a1b85d1534631a0ddb03955a5cb3a6d599da5.afe294b5.png)
10. Close the Display dialog. Open **⋯** again and click **Edit**. Under **Secrets**, add a secret. eGain generates the value — copy it before it disappears, then paste it into the ChatGPT plugin's **OAuth Client Secret** field.
![](/assets/mcp-chatgpt-secret.5191d569be36abd449e1fa9654d252430cae91606ef68da9c4ab55d7d440e7f7.afe294b5.png)
11. In ChatGPT, click **Create**. If ChatGPT does not connect on its own, click **Connect** and sign in with your eGain account.


### ChatGPT for mobile and desktop

Add the plugin once in the ChatGPT browser. The mobile and desktop apps pick it up automatically because it is tied to your ChatGPT account — there is no separate **Add plugin** option in those apps.

For ChatGPT plugin and developer mode details, see OpenAI's [developer mode help](https://help.openai.com/en/articles/12584461-developer-mode-and-mcp-apps-in-chatgpt) and [developer mode guide](https://developers.openai.com/api/docs/guides/developer-mode).

## Step 3: Test the connection

Open a new chat in ChatGPT and ask something like:

> *"What does our master knowledge base say about refunds?"*


## Authentication & Permissions

- **Authentication:** ChatGPT authenticates using OAuth 2.0 with your eGain account. ChatGPT never sees your account password.
- **Visibility:**  ChatGPT can only see the portals and articles your eGain user is allowed to see.
- **Revoking access:** Revoke access at any time from ChatGPT **Settings** → **Plugins**, or from your eGain account settings.
- **Anonymous access:** If your portal allows it, you can skip sign-in entirely. ChatGPT will see only what unauthenticated visitors see on your portal.


## Troubleshooting

- **"No portals found".** Confirm that the eGain account you signed in with has access to at least one portal.
- **Changed eGain tenants.** Disconnect and reconnect using the new tenant's MCP Server URL, or add a new plugin.
- **Sign-in loop in the browser.** This is usually a third-party cookie issue — try a private window or a different browser.


## Support and privacy

- **Support:** For issues not covered above, [Contact Support](https://media.egain.com/support/self-provisioned.asp).
- **Privacy:** [eGain Privacy Policy](https://www.egain.com/privacy-policies/)