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. It also guides end users on how to use the MCP connection to query and write Gainsight data from within their LLM tool.
Overview
The Gainsight CS MCP server exposes a set of structured tools that connect Gainsight CS directly to large language models (LLMs) such as ChatGPT. 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 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) must support MCP integrations.
- ChatGPT Admin access (if connecting through ChatGPT): A ChatGPT workspace admin must have the ability to create apps in ChatGPT. Developer Mode must be turned on in ChatGPT settings.
- Client ID and Client Secret: The Gainsight Admin generates these credentials from the OAuth app configuration. The ChatGPT Admin uses these values to create the MCP app.
Supported Capabilities
The MCP server exposes tools that allow your LLM to read and write Gainsight data. The following tables list currently supported capabilities.
Data Retrieval
|
Capability |
Status |
|---|---|
|
Look up company details |
Supported |
|
Query any MDA object |
Supported |
|
Fetch CTAs for a company |
Supported |
|
Fetch Success Plans |
Supported |
|
Read Timeline activities |
Supported |
|
Scorecards and Health Scores |
Partial |
|
Cross-account portfolio analysis |
Supported |
Write Actions
|
Capability |
Status |
|---|---|
|
Create CTAs |
Supported |
|
Update CTAs |
Supported |
|
Create Success Plans |
Supported |
|
Update Success Plans |
Supported |
|
Create Timeline activities |
Supported |
|
Delete records |
Not Supported |
|
Update company fields |
Not Supported |
|
Admin-level configuration |
Not Supported |
Set Up the MCP Server Connection in ChatGPT
This setup requires coordination between the Gainsight Admin and ChatGPT admin. Follow the steps below 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:
- Navigate to Administration > User Management > 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-vertical dots menu.
- Click View/Edit. The application slide-out panel appears.
- Turn on the Enable PKCE (Proof Key for Code Exchange) toggle.
- Copy the Client ID and the Client Secret.
- Click Save.
Create the MCP App in ChatGPT
After enabling PKCE, ensure the Client ID and Client Secret are copied, as these are required for setting up the MCP app in ChatGPT.
- 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 previous section.
- In the OAuth Client Secret field, paste the Client Secret copied from the previous section.
- Copy the Callback URL.
- Select the I understand and want to continue checkbox.
- Click Create to create the app.
Complete the Connection
The Callback URL from the app settings is required to complete the connection in 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 the previous section.
- Click Save to complete the connection.
Connect and Authenticate
After the Gainsight Admin and ChatGPT Admin complete the setup, each end user can connect to the new app.
- Navigate to ChatGPT > Apps.
- Select the newly created app. For example, in this case, GSMCP.

- Click Connect. The Gainsight Login page 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, you must add the Callback URLs below in Gainsight CS.
https://claude.ai/api/mcp/auth_callbackhttps://claude.com/api/mcp/auth_callback
Claude requires the same configuration in Gainsight CS as ChatGPT. Refer to the following sections to complete configuration in Gainsight CS.
- Configure OAuth with PKCE in Gainsight
- Complete the Connection
Create the Custom Connector in Claude
Once you have added a Callback URL and copied the Client ID and Client Secret from the Gainsight CS instance, you can now 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 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 previous section.
- In the OAuth Client Secret field, paste the Client Secret copied from the previous section.
- Click Add.

Connect and Authenticate
After the Gainsight Admin and Claude Admin complete the 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