--- title: "Set Up Gainsight CS MCP Server Integration" slug: "set-up-gainsight-cs-mcp-server-integration" updated: 2026-11-23T12:30:49Z published: 2026-11-23T12:30:49Z canonical: "support.gainsight.com/set-up-gainsight-cs-mcp-server-integration" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.gainsight.com/llms.txt > Use this file to discover all available pages before exploring further. # Set Up Gainsight CS MCP Server Integration This article helps Admins set up and configure the Gainsight CS Model Context Protocol (MCP This article helps admins set up and configure the Gainsight CS Model Context Protocol (MCP) server so that users can connect Gainsight CS data to external LLM tools such as ChatGPT, Claude, and Microsoft 365 Copilot. ## Overview The Gainsight CS MCP server is an integration that connects Gainsight CS directly to large language models (LLMs) such as ChatGPT, Claude, and Microsoft 365 Copilot. Once connected, users can query Companies, CTAs, Success Plans, and Timeline Activities, and perform write actions such as creating CTAs and Success Plans, all through natural-language prompts in their preferred LLM tool. The MCP server acts as a general-purpose API connector. The LLM calls the exposed Gainsight tools based on user prompts, which means prompt quality directly affects the accuracy and usefulness of responses. All three integrations require user-level OAuth 2.1 authentication with Proof Key for Code Exchange (PKCE) enabled in Gainsight CS. The setup process varies slightly depending on the LLM tool, with each tool requiring a different connector configuration on its side. For more information, refer to the [*OAuth for Gainsight APIs*](/v1/docs/oauth-for-gainsight-apis) article. ### Prerequisites Ensure that you meet the following requirements before you begin #### Common Requirements The following requirements apply regardless of which LLM tool you are connecting: - **Gainsight Admin access**: You must have admin-level permissions in Gainsight CS to create OAuth apps and configure authentication settings. - **PKCE enabled in Gainsight**: The OAuth application in Gainsight CS must have PKCE (Proof Key for Code Exchange) enabled. This is required for all three LLM integrations. - **Client ID and Client Secret**: You must have the Client ID and Client Secret generated from the OAuth app configuration in Gainsight. - **Gainsight CS tenant base URL**: Your instance URL is required during setup. For example: `https://your-org.gainsightcloud.com` - **LLM tool with MCP support**: Your LLM tool must support MCP integrations. #### ChatGPT - **ChatGPT Admin access**: A ChatGPT admin must have the ability to create apps in ChatGPT. - **Developer Mode enabled**: Developer Mode must be turned on in ChatGPT settings for the Create App option to appear. #### Claude - **Claude Admin access**: An admin must have permissions to add custom connectors in Claude settings. - **Claude Callback URLs**: The following two Callback URLs must be added to the Gainsight OAuth application: `https://claude.ai/api/mcp/auth_callback `and `https://claude.com/api/mcp/auth_callback` #### Microsoft Copilot - **Microsoft Copilot Studio access**: You must have permissions to create or edit agents in Microsoft Copilot Studio. - **An existing Copilot agent**: The MCP tool is added to an agent within Copilot Studio. ### What Can MCP Read and Write? The MCP server supports a set of actions that allow your LLM to read and write Gainsight data. The following tables list currently supported actions. **Data Retrieval** The following table lists the data retrieval capabilities that the MCP server currently supports. | **Capability** | **Status** | | --- | --- | | Detailed Account Summary | Supported | | Query Company and Relationship | Supported | | Fetch CTAs for a company | Supported | | Read Tasks in CTA | Supported | | Fetch Success Plans | Supported | | Read Timeline activities | Supported | | Scorecards ( read only) | Supported | | Cross-account analysis | Supported | | Reports(that users can see in UI) | Supported | | Query Portfolio Data(GS Home filters) | Supported | | End User Contact Search | Supported | **Write Actions** The following table lists the write action capabilities that the MCP server currently supports. | **Capability** | **Status** | | --- | --- | | Create CTAs | Supported | | Update CTAs | Supported | | Create Tasks in CTAs | Supported | | Create Success Plans | Supported | | Update Success Plans | Supported | | Create Timeline Activities | Supported | | Update Timeline Activites | Supported | | Delete records | Not Supported | | Update company fields | Not Supported | | Admin-level configuration | Not Supported | | Scorecards | Not Supported | > [!NOTE] > Note > > Create and update Timeline is possible at Company, Success Plan, CTA and Relationship level. Not at Scorecard level. ## Configure OAuth with PKCE in Gainsight All three LLM integrations require an OAuth application with Proof Key for Code Exchange (PKCE) enabled in Gainsight CS. Complete this section before you set up the MCP connection in any LLM tool. To configure OAuth with PKCE in Gainsight CS: 1. Navigate to **Administration > User Management** and click the **Authentication** tab. 2. Click **OAuth Applications**. 3. Locate an existing OAuth app or create a new one. For more information on how to create an OAuth app, refer to the [*OAuth for Gainsight APIs*](/v1/docs/oauth-for-gainsight-apis) article. ![OAuth App.jpg](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/OAuth_App.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A33%3A32Z&se=2026-11-24T19%3A33%3A32Z&sr=b&sp=r&sig=yVTyvjbjxd4TEiB1rrcw1uOLSy84DAzPJJMlFxiEdPU%3D) 4. Click the *three-dots vertical* menu and select **View**/**Edit.** A slide-out panel appears. ![Three-dot menu with View/Edit option on an OAuth application](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Callback_URLs.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A33%3A32Z&se=2026-11-24T19%3A33%3A32Z&sr=b&sp=r&sig=tWVKNN30sv1nwlEY68rn09TjHKjD928%2Bx3qWHqOFJLI%3D) 5. Turn on the **Enable PKCE (Proof Key for Code Exchange)** toggle. The PKCE option is now active for the OAuth application. 6. In the **Callback URLs**, add a temporary callback URL. For example: `https://gainsight.com/oauth/callback` 7. *(Optional)* Select the **Enforce Allowed IP Ranges** checkbox to restrict API access to selected IP addresses. 8. Click **Add Application**. The OAuth application settings are saved. When the application is successfully saved, *Client ID* and *Client Secret* are created for this application. Gainsight recommends to copy and save the Client ID and the Client Secret as these are required further in the configuration. ![Client ID and Secret on Authentication page](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Client_ID_and_Secret.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A33%3A32Z&se=2026-11-24T19%3A33%3A32Z&sr=b&sp=r&sig=g57W%2BwEULupOmX13IMXJGjntUbPtl6xVI3UJ9pQ24G4%3D) ## Set Up the MCP Server Connection in ChatGPT This setup requires coordination between the Gainsight admin and ChatGPT admin. Ensure that you have completed the [OAuth with PKCE configuration](/docs/set-up-gainsight-cs-mcp-server-integration#Configure_OAuth_with_PKCE_in_Gainsight) above before proceeding with following sections: - [Create the MCP App in ChatGPT](/v1/docs/set-up-gainsight-cs-mcp-server-integration#create-the-mcp-app-in-chatgpt) - [Complete the Connection](/v1/docs/set-up-gainsight-cs-mcp-server-integration#complete-the-connection) - [Connect and Authenticate](/v1/docs/set-up-gainsight-cs-mcp-server-integration#connect-and-authenticate) ### Create the MCP App in ChatGPT After you enable PKCE, ensure the Client ID and Client Secret are copied, as these are required for the next steps. 1. In ChatGPT, navigate to **Settings > Apps**. 2. Turn on the **Developer mode** toggle. The **Create app** option is now available. ![Developer mode toggle turned on in ChatGPT Settings Apps page](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Dev_mode.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A33%3A32Z&se=2026-11-24T19%3A33%3A32Z&sr=b&sp=r&sig=8QVbFZ%2FU7pHAAngySlCHgPA88NXJAehiZtKNoQiK89Q%3D) 3. Click **Create app**. The **New App** window appears. 4. Enter the following details to create the app: 1. In the **Name** text field, enter the name of the app. 2. *(Optional)* In the **Description** text field, describe the app. 3. In the **MCP Server URL** field, enter the URL instance followed by `/v1/ds-mcp/mcp`. For example: `https://your-domain.gainsightcloud.com/v1/ds-mcp/mcp` 4. From the **Authentication** dropdown, select **OAuth**. ![New App creation form in ChatGPT with MCP Server URL and OAuth fields](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/ChatGPT_Apps_Browse_and_chat%E2%80%A6your_favorite_apps_in_ChatGPT_2026-04-06_at_10.52.04_AM.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A33%3A32Z&se=2026-11-24T19%3A33%3A32Z&sr=b&sp=r&sig=IYhh6U3dG791C8FPj346%2Fc6ROk7XbehKt15zrO%2FPv6E%3D) 5. Select **Advanced settings**. The **OAuth advanced settings** dialog appears. ![OAuth advanced settings with Client ID, Client Secret, and Callback URL fields](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/advanced_setting.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A33%3A32Z&se=2026-11-24T19%3A33%3A32Z&sr=b&sp=r&sig=srE1lvM5sET96O%2FabC82acW1UbXLny3f2vGNXnFx%2F7o%3D) 6. In the **OAuth Client ID** field, paste the Client ID copied from the Gainsight CS application. 7. In the **OAuth Client Secret** field, paste the Client Secret copied from the Gainsight CS application. 8. Copy and save the **Callback URL** as this is required further in the configuration. 9. Select the **I understand and want to continue** checkbox. 10. Click **Create**. The new app is created and appears in your Apps list. ### Complete the Connection The Callback URL from the app settings is required to complete the connection in Gainsight CS User Management. 1. Navigate to **Administration > User Management > Authentication** tab. 2. Click **OAuth Applications**. 3. Locate an existing OAuth app. 4. Click the *three-vertical* *dots* menu. 5. Click **View/Edit**. The application slide-out panel appears. ![OAuth application slide-out panel with Callback URL field in Gainsight CS](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Callback_URLs.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A33%3A32Z&se=2026-11-24T19%3A33%3A32Z&sr=b&sp=r&sig=tWVKNN30sv1nwlEY68rn09TjHKjD928%2Bx3qWHqOFJLI%3D) 6. Replace the temporary callback URL with the **Callback URL** copied from ChatGPT’s OAuth advanced settings section 7. Click **Save** to complete the connection. ### Connect and Authenticate After the Gainsight admin and ChatGPT admin complete the respective setup, each end user can connect to the new app. To connect and authenticate as an end user: 1. Navigate to **ChatGPT > Apps**. 2. Select the newly created app. For example, in this case, **GSMCP**. ![GSMCP app listed under ChatGPT Apps with Connect option](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/GSMCP.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A33%3A32Z&se=2026-11-24T19%3A33%3A32Z&sr=b&sp=r&sig=goqzLxpIm%2Bv2d5zi%2Fgpb25%2FyDq%2BZRDmRlj5JHuLReaM%3D) 3. Click **Connect**. The **Gainsight Login dialog** appears. ![Gainsight login page during MCP authentication flow](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/GSMCP_Connect.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A33%3A32Z&se=2026-11-24T19%3A33%3A32Z&sr=b&sp=r&sig=0Yo8%2BFHxiPQQjXcjG%2BU9JtKEn6VlfxpXYOgcOqzLM%2FA%3D) 4. Click **Continue to GSMCP** to authenticate the connection. ![authenticate.jpg](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/authenticate.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A33%3A32Z&se=2026-11-24T19%3A33%3A32Z&sr=b&sp=r&sig=JVAZsJrMGuxOCyeVdbyXzC%2BT7PLfcLywB%2FSf%2BBN4j9s%3D) After successful authentication, the MCP connection appears as active in ChatGPT. ![Active MCP connection confirmation in ChatGPT](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/GSMCP_active.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A33%3A32Z&se=2026-11-24T19%3A33%3A32Z&sr=b&sp=r&sig=vxrOxxud0UCRJ6Pn74zNcbyvc5JgzaaL3kcsBrhoC2k%3D) ## Set Up the MCP Server Connection in Claude Claude requires the same OAuth with PKCE configuration in Gainsight CS as ChatGPT. Ensure that you have completed the [OAuth with PKCE configuration](/docs/set-up-gainsight-cs-mcp-server-integration#Configure_OAuth_with_PKCE_in_Gainsight) and added the two Claude Callback URLs to the OAuth application before proceeding with the following configuration steps: - [Create the Custom Connector in Claude](/v1/docs/set-up-gainsight-cs-mcp-server-integration#create-the-custom-connector-in-claude) - [Connect and Authenticate in Claude](/v1/docs/set-up-gainsight-cs-mcp-server-integration#connect-and-authenticate1) **Callback URLs** - `https://claude.ai/api/mcp/auth_callback` - `https://claude.com/api/mcp/auth_callback` > [!NOTE] > Note > > You must add both Callback URLs to the same OAuth application in Gainsight CS. ### Create the Custom Connector in Claude After you add the Callback URLs and copy the Client ID and Client Secret from the Gainsight CS instance, you can create a custom connector in Claude. To create a custom connector in Claude: 1. Navigate to **Customize > Connectors**. 2. Click **Add custom connector**. The Add custom connector dialog box appears. ![Add Custom Connector in Claude](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Custom_Connector.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A33%3A32Z&se=2026-11-24T19%3A33%3A32Z&sr=b&sp=r&sig=gyPILTfdhn6xbdWubjXiPG92oHI1vTeXlsjMzrt3Eik%3D) 3. Enter the following details 1. **Name**: Enter a name for the MCP Server. 2. **Server URL**: Enter the URL instance followed by */v1/ds-mcp/mcp*. For example: `https://your-domain.gainsightcloud.com/v1/ds-mcp/mcp` 4. Expand **Advanced settings**: 1. In the **OAuth Client ID** field, paste the Client ID copied from the Gainsight CS application. 2. In the **OAuth Client Secret** field, paste the Client Secret copied from the Gainsight CS application. 5. Click **Add**. The custom connector is created and appears on the Connectors page. ![Custom connector advanced settings with OAuth fields in Claude](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Add_details.png?sv=2026-02-06&spr=https&st=2026-11-24T18%3A33%3A32Z&se=2026-11-24T19%3A33%3A32Z&sr=b&sp=r&sig=qfsYkpdLECB1KbvSBKpj05%2FbuhSpEX9H5GArUi7AEOw%3D) ### Connect and Authenticate After the Gainsight admin and Claude admin complete their respective setup, each end user can connect to the new app. To connect and authenticate: 1. Navigate to **Settings >** **Connectors**. The Connectors page appears. 2. Click **Connect**. Claude redirects you to the Gainsight login page. ![Gainsight login page during Claude MCP authentication flow](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/connect_claude.png?sv=2026-02-06&spr=https&st=2026-11-24T18%3A33%3A32Z&se=2026-11-24T19%3A33%3A32Z&sr=b&sp=r&sig=JeFkl7mPZs38A%2BJdrDZXt%2F0aLNq7d0l04VbiWInvg%2BM%3D) 3. Log in with your Gainsight credentials. After authentication, Claude confirms the connection. ## Set Up the MCP Server Connection in Microsoft Copilot Studio Copilot requires the same OAuth with PKCE configuration in Gainsight CS as ChatGPT. Ensure that you have completed the [OAuth with PKCE configuration](/docs/set-up-gainsight-cs-mcp-server-integration#Configure_OAuth_with_PKCE_in_Gainsight) before proceeding with the following configuration steps: - [Create an MCP tool in Copilot](/docs/set-up-gainsight-cs-mcp-server-integration#Create_an_MCP_tool_in_Copilot) - [Add Callback URL in Gainsight CS](/v1/docs/set-up-gainsight-cs-mcp-server-integration#add-callback-url-in-gainsight-cs) ### Create an MCP Tool in Copilot In Copilot, you can create an MCP tool for an agent. To do this: 1. Navigate to Copilot Studio. 2. Select an existing Copilot agent and click **Tools**. The **Tool** page appears. ![Agent 3 Showing Tools and Add tools for Copliot](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Agent.png?sv=2026-02-06&spr=https&st=2026-11-24T18%3A33%3A32Z&se=2026-11-24T19%3A33%3A32Z&sr=b&sp=r&sig=zmVbuL3upg6Bk12O%2BSexu2Hj68XTIsst3zj%2FymWUqVE%3D) 3. Click **+ Add a tool**. 4. Select **MCP**. The **Model Context Protocol** window appears. ![MCP Protocol details window](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/MCP_Protocl.png?sv=2026-02-06&spr=https&st=2026-11-24T18%3A33%3A32Z&se=2026-11-24T19%3A33%3A32Z&sr=b&sp=r&sig=A9JINkBZzNKNFZkdIrQoUfoQnBYpou235vkp0zv82yA%3D) 5. Enter the following details below: 1. **Server name**: A display name for the MCP app. 2. **Server description**: A brief description of what the app does 3. **Server URL**: The endpoint URL for the server. For example: `https://<<TENANT_BASE_URL>>/v1/ds-mcp/mcp` 6. For the **Authentication**, select the **OAuth 2.0** radio button. 7. For the **Type**, select the **Manual** radio button. ![Server details for MCP Protocol](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Server_details.png?sv=2026-02-06&spr=https&st=2026-11-24T18%3A33%3A32Z&se=2026-11-24T19%3A33%3A32Z&sr=b&sp=r&sig=cjiH%2FXzz28DnA4s4nIfqhpcZ71CDe4R6gePrq%2BC9%2BGw%3D) 8. In the **OAuth Client ID** field, paste the Client ID copied from the Gainsight CS application. 9. In the **OAuth Client Secret** field, paste the Client Secret copied from the Gainsight CS application. 10. In the **Authorization URL** text field, enter Gainsight’s authorization URL. For example, `https://<<TENANT_BASE_URL>>/v1/authorize` 11. In the **Token URL** text field, enter the Gainsight CS token endpoint. For example, `https://<<TENANT_BASE_URL>>/v1/users/oauth/access/token` 12. In the **Refresh URL** text field, enter the token refresh endpoint. Use the same URL as the Token URL. 13. In the **Scopes** text field, enter the permission scopes for the MCP connection. 14. Click **Save**. When you complete the configuration, Copilot MCP generates a Redirect URL. Gainsight recommends copying and saving this URL. ### Add Callback URL in Gainsight CS The MCP server requires user-level OAuth authentication in Gainsight CS. To configure the OAuth application: 1. Navigate to **Administration > User Management** and click the **Authentication** tab. 2. Click **OAuth Applications**. 3. Locate an existing OAuth app or create a new one. For more information on how to create an OAuth app, refer to the [*OAuth for Gainsight APIs*](/v1/docs/oauth-for-gainsight-apis) article. ![OAuth App tab in User management](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/OAuth_App.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A33%3A32Z&se=2026-11-24T19%3A33%3A32Z&sr=b&sp=r&sig=yVTyvjbjxd4TEiB1rrcw1uOLSy84DAzPJJMlFxiEdPU%3D) 4. Click the *three-dots vertical* menu and select **View**/**Edit.** A slide-out panel appears. ![OAuth creation add Callback URLs](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/OAuth_creation.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A33%3A32Z&se=2026-11-24T19%3A33%3A32Z&sr=b&sp=r&sig=CTkdtphx%2FPMMgrclDAzRsASL%2BgWZSmcbD77B4RZ6ves%3D) 5. Paste the **Redirect URL** copied from Copilot’s Model Context Protocol configuration in the above section. 6. Click **Add Application**. The OAuth application is now created. ## Additional Resources - [*Gainsight MCP: Bring Real-Time Customer Context into Every AI Workflow*](https://education.gainsight.com/gainsight-mcp-bring-real-time-customer-context-into-every-ai-workflow)