Set Up Gainsight CS MCP Server Integration
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 and Claude.
Overview
The Gainsight CS MCP server is an integration that connects Gainsight CS directly to large language models (LLMs) such as ChatGPT and Claude. 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.
The MCP server requires user-level OAuth authentication with Proof Key for Code Exchange (PKCE) enabled. Before you begin the MCP setup, ensure that you have configured User Authentication with PKCE in your instance. For more information, refer to the OAuth for Gainsight APIs article.
Prerequisites
Ensure that you meet the following requirements before you begin:
- Gainsight Admin access: You must have Admin-level permissions in Gainsight CS to create OAuth apps and enable PKCE.
- LLM tool with MCP support: Your LLM tool (for example, ChatGPT or Claude) must support MCP integrations.
- ChatGPT Admin access (if connecting through ChatGPT): A ChatGPT admin must have the ability to create apps in ChatGPT. Developer Mode must be turned on in ChatGPT settings.
- Client ID and Client Secret: You must have the Client ID and Client Secret generated from the OAuth app configuration in Gainsight.
To connect the Gainsight CS MCP server with Microsoft 365 Copilot, refer to the Add an existing MCP server to your agent article in the Microsoft Copilot Studio documentation.
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 |
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 |
Create and update Timeline is possible at Company, Success Plan, CTA and Relationship level. Not at Scorecard level.
Set Up the MCP Server Connection in ChatGPT
This setup requires coordination between the Gainsight admin and ChatGPT admin. Perform the following steps to complete the integration between ChatGPT and Gainsight CS:
- Configure OAuth with PKCE in Gainsight
- Create the MCP App in ChatGPT
- Complete the Connection
- Connect and Authenticate
Configure OAuth with PKCE in Gainsight
The MCP server requires user-level OAuth authentication with Proof Key for Code Exchange (PKCE) enabled.
To enable PKCE in Gainsight CS:
- Navigate to Administration > User Management and click the Authentication tab.
- Click OAuth Applications.
- 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 article.

- Click the three-dots vertical menu and select View/Edit. A slide-out panel appears.
- Turn on the Enable PKCE (Proof Key for Code Exchange) toggle. The PKCE option is now active for the OAuth application.
- Copy and save the Client ID and the Client Secret as these are required further in the configuration.
- Click Save. The OAuth application settings are saved.
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.
- In ChatGPT, navigate to Settings > Apps.
- Turn on the Developer mode toggle. The Create app option is now available.

- Click Create app. The New App window appears.
- Enter the following details to create the app:
- In the Name text field, enter the name of the app.
- (Optional) In the Description text field, describe the app.
- 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 - From the Authentication dropdown, select OAuth.

- Select Advanced settings. The OAuth advanced settings dialog appears.

- In the OAuth Client ID field, paste the Client ID copied from the Gainsight CS application.
- In the OAuth Client Secret field, paste the Client Secret copied from the Gainsight CS application.
- Copy and save the Callback URL as this is required further in the configuration.
- Select the I understand and want to continue checkbox.
- 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.
- Navigate to Administration > User Management > Authentication tab.
- Click OAuth Applications.
- Locate an existing OAuth app.
- Click the three-vertical dots menu.
- Click View/Edit. The application slide-out panel appears.

- Paste the Callback URL copied from ChatGPS’s OAuth advanced settings section.
- 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:
- Navigate to ChatGPT > Apps.
- Select the newly created app. For example, in this case, GSMCP.

- Click Connect. The Gainsight Login dialog appears.

- Click Continue to GSMCP to authenticate the connection.

After successful authentication, the MCP connection appears as active in ChatGPT.

Set Up the MCP Server Connection in Claude
To set up an MCP server connection in Claude, add the following Callback URLs in the Gainsight CS OAuth application.
https://claude.ai/api/mcp/auth_callbackhttps://claude.com/api/mcp/auth_callback
You must add both Callback URLs to the same OAuth application in Gainsight CS.
Claude requires the same OAuth configuration in Gainsight CS as ChatGPT. Complete the following sections before you proceed to the Claude connector setup.
- Configure OAuth with PKCE in Gainsight
- Complete the Connection
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:
- Navigate to Settings > Connectors.
- Click Add custom connector. The Add custom connector dialog box appears.

- Enter the following details
- Name: Enter a name for the MCP Server.
- Server URL: Enter the URL instance followed by /v1/ds-mcp/mcp. For example:
https://your-domain.gainsightcloud.com/v1/ds-mcp/mcp
- Expand Advanced settings:
- In the OAuth Client ID field, paste the Client ID copied from the Gainsight CS application.
- In the OAuth Client Secret field, paste the Client Secret copied from the Gainsight CS application.
- Click Add. The custom connector is created and appears on the Connectors page.

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:
- Navigate to Settings > Connectors. The Connectors page appears.
- Click Connect. Claude redirects you to the Gainsight login page.

- Log in with your Gainsight credentials. After authentication, Claude confirms the connection.