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."
-
Go to Settings → Apps → Create App.
-
Enter a name for the connector (for example,
SalesforceTest). -
Enter the server URL, substituting the
SERVER-NAMEfrom 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>
Example: To use the
platform/sobject-allserver in a sandbox org: - For All production Orgs:
-
Under Authentication, click Advanced settings:
- Set Registration Method to User-defined OAuth client
- Paste the consumer key that you copied from the external client app in OAuth Client ID.
- For Callback URL, go to Advanced settings → Callback URL and copy the URL provided by ChatGPT. Use this URL when configuring your External Client App.
-
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.
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 for example prompts to verify your connection.