# Configure ChatGPT

ChatGPT supports MCP servers via their developer mode. Refer to OpenAI's documentation on that feature set for more information. OpenAI sometimes uses different terms like "connector" or "app."

## Setup Steps

1. Go to **Settings → Apps → Create App**.

2. Enter a name for the connector (for example, `SalesforceTest`).

3. Enter the server URL, substituting the `SERVER-NAME` from the list of available servers.

   **Server URL format:**

   - For **All production Orgs**: `https://api.salesforce.com/platform/mcp/v1/<SERVER-NAME>`
   - For **sandbox or Scratch Orgs**: `https://api.salesforce.com/platform/mcp/v1/sandbox/<SERVER-NAME>`

   If your org blocks logins from `login.salesforce.com` or `test.salesforce.com`, use the My Domain URL format instead. See [Find Your Server URL](/docs/platform/hosted-mcp-servers/guide/server-urls.md).

   **Example:** To use the `platform/sobject-all` server in a sandbox org:

   ```
   https://api.salesforce.com/platform/mcp/v1/sandbox/platform/sobject-all
   ```

4. Under **Authentication**, click **Advanced settings**:

   - Set **Registration Method** to **User-defined OAuth client**.
   - Copy the **Callback URL** provided by ChatGPT. Use this URL when configuring your External Client App.
   - Paste the consumer key that you copied from the external client app in **OAuth Client ID**.
   - Paste the consumer secret that you copied from the external client app in **OAuth Client Secret**. ChatGPT lists this field as optional, but Salesforce requires it.
   - Uncheck the **OIDC enabled** checkbox.

5. Click **Create**.

ChatGPT will redirect to the org containing the External Client App created in the previous step. If you've logged in already, the user challenge is skipped and the flow proceeds forward, obtaining an access token and sending it back to ChatGPT.

## Testing the Connection

You can now test the client's connection to the MCP server using ChatGPT's chatbot features. As of this writing, you'll need to explicitly select Salesforce under the plus (+) button in the prompt.

See [Test Your MCP Client](/docs/platform/hosted-mcp-servers/guide/test-connection.md) for example prompts to verify your connection.
