Search Results :

×

How to Connect ChatGPT to Salesforce Using miniOrange MCP Server

You can connect ChatGPT to Salesforce using the miniOrange Salesforce MCP Server, which allows ChatGPT to read and update your Salesforce data through the tools and objects you grant.

Before you begin, ensure you have the following:

  • A Salesforce org, and a System Administrator login for the one-time setup.
  • The Salesforce MCP package install link.
  • A ChatGPT account that supports custom MCP server connections.
Connect ChatGPT to Salesforce | Note

Note: If your admin has already completed the org setup, skip to Step 5.


A Salesforce admin completes Steps 1 through 4 once per org. These steps install the Salesforce MCP Server and decide what ChatGPT may see.

  • Open the package install link and sign in as a System Administrator.
  • Choose Install for Admins Only, then click Install.
  • Approve the third-party access prompt if it appears.
  • In Salesforce, go to Setup >> Permission Sets.
  • Open MCP Server Admin, then click Manage Assignments >> Add Assignment. Select your admins and click Assign.
  • Repeat these steps with MCP User Access for everyone who will use ChatGPT.
Connect ChatGPT to Salesforce | Setup Permission Sets

The gateway signs users in through this app.

  • Go to Setup >> External Client App Manager, then click New External Client App.
  • Name it miniOrange MCP Gateway, enter your email, and set Distribution State to Local.
  • Enable OAuth and paste the Callback URL.
  • Add the api scope and the refresh_token, offline_access scope.
  • Require a secret for the Web Server flow and the Refresh Token flow, and require PKCE.
  • Click Create. Under Policies, pre-authorize the MCP Server Admin and MCP User Access permission sets.
  • Copy the Consumer Key and Consumer Secret. You need them in Step 6.
Connect ChatGPT to Salesforce | Note

Note: Callback URL = your gateway URL + /salesforce/callback. Copy the Gateway URL from the Settings tab in Step 4.
A new External Client App can take 2–10 minutes to start working.

In the miniOrange MCP Server app, register an agent, and copy the connection values.

  • From the App Launcher, open the miniOrange MCP Server app for Salesforce.
  • Go to the MCP Admin Console tab.
  • Click on the Recheck button to check the Created External Client App.
Register an Agent and Grant Tools

An agent sets which objects and tools ChatGPT can use for each profile.

  • Open the AI Agents tab and click New agent.
Connect ChatGPT to Salesforce | Enabled agent in the AI Agents list

  • Under Name, enter a label, for example Sales assistant.
Connect ChatGPT to Salesforce | Agent name entered in the Register agent wizard

  • Under Objects, choose what to expose, for example Accounts and Contacts.
Connect ChatGPT to Salesforce | Accounts and Contacts enabled for the agent

  • Under Tools, grant schema, read, or write tools per profile.
Connect ChatGPT to Salesforce | Schema and read tools granted to System Administrator

  • Under Connect to AI, finish the wizard, then make sure the agent is enabled.
Connect ChatGPT to Salesforce | Agent ready to connect

Copy Your Connection Values
  • Open the Settings tab and check the Gateway URL and Org address. Use the Gateway URL for the Callback URL in Step 3.
  • Open Connect to AI >> ChatGPT and copy the Connection URL. You paste it into ChatGPT in Step 5.
Connect ChatGPT to Salesforce | Gateway URL and Org address

Each ChatGPT user adds MCP for Salesforce as a custom MCP server once, with their own account.

Open the Custom MCP Server Menu
  • In ChatGPT, click Plugins in the left sidebar.
  • Click Add at the top right.
  • Choose Add custom MCP server.
Connect ChatGPT to Salesforce | Add custom MCP server

Connect ChatGPT to Salesforce | Note

Note: If you don't see Add custom MCP server, turn on Developer mode in ChatGPT settings.


Create the Connector
  • Under Name, enter MCP for Salesforce.
  • Under Connection, keep Server URL selected and paste the MCP server URL.
  • Under Authentication, choose OAuth.
  • Tick I understand and want to continue, then click Create.

MCP server URL: copy yours from MCP Admin Console >> Connect to AI >> ChatGPT.

https://importer-unretired-dealer.ngrok-free.dev/salesforce/mcp

Connect ChatGPT to Salesforce | Add custom MCP server dialog

The gateway handles sign-in between ChatGPT and Salesforce. After you create the connector, ChatGPT opens the gateway. An admin activates it once per org, the first time anyone connects.

Enter Your Org Address
  • ChatGPT opens the miniOrange MCP Gateway.
  • Paste your Salesforce My Domain URL, for example https://your-domain.my.salesforce.com.
  • Click the Continue button.
Activate the miniOrange MCP Gateway
  • The first time anyone connects, continue as an admin who has MCP Server Admin.
  • When the gateway shows the one-time setup page, paste the Consumer Key and Consumer Secret from Step 3.
  • Click Save and sign in to Salesforce.
Connect ChatGPT to Salesforce | Register your org External Client App

Connect ChatGPT to Salesforce | Note

Note: The gateway checks that the package is installed and stores the secret encrypted. This page appears only once per org. After that, every user sees that this org is ready and goes straight to sign-in.


Sign In and Allow Access
  • Log in with your own Salesforce username and password.
  • Click the Allow button.
  • ChatGPT returns and shows MCP for Salesforce as connected.
Connect ChatGPT to Salesforce | ChatGPT steps in the MCP Admin Console

Connect ChatGPT to Salesforce | Note

Note: The Connect to AI >> ChatGPT panel shows these same steps with your org's live URLs.


Once the connection is complete, you can start interacting with your Salesforce org directly from ChatGPT.

Connect ChatGPT to Salesforce | Note

Note: Each person signs in with their own Salesforce account and can use only the tools their profile is granted.

  • Start a new chat in ChatGPT.
  • Type @MCP for Salesforce test and send it.
  • ChatGPT reports Connection successful, lists the available tools (list_objects, describe_object, and query_records), and shows which Salesforce objects are accessible.
Connect ChatGPT to Salesforce | Connection successful

  • Open MCP Admin Console >> Activity.
  • Check that each ChatGPT tool call shows Success, with the tool and object it used.
Connect ChatGPT to Salesforce | Activity log

After connecting your Salesforce org to ChatGPT, you can work with your Salesforce data using natural-language prompts. Based on the tools and objects enabled for your profile, you can:

  • List the Salesforce objects your agent can access.
  • Describe an object's schema.
  • Query records.
  • Read and update data for the objects you grant, such as Accounts and Contacts.
  • Perform other actions granted through the agent's tools.

All requests are verified against the authenticated user's permissions, ensuring ChatGPT only performs authorized actions in your Salesforce org.



 Thank you for your response. We will get back to you soon.

Something went wrong. Please submit your query again


ADFS_sso ×
Hello there!

Need Help? We are right here!

support