Gainsight MCP Server
for AI Agents
Connect your AI agent to StackOne's Gainsight MCP server and give it 107 MCP tools out of the box. Auth, tool execution, and security all managed.
Coverage
107 Agent Actions
Agents can read, write, delete and run operations in Gainsight. Extend your agent's capabilities with custom actions.
Authentication
Agent Tool Authentication
Per-user OAuth in one call. Your Gainsight MCP server gets session-scoped tokens with zero credentials stored on your infra.
Agent Auth →Security
Agent Protection
Every Gainsight tool response scanned for prompt injection in about 2.5 ms, with 0.94 F1 on tool-response attacks, all running on a CPU.
Prompt Injection Defense →Performance
Max Agent Context. Min Cost.
Free up to 96% of your agent's context window to enhance reasoning and reduce cost, on every Gainsight call.
Tools Discovery →What is the Gainsight MCP Server?
A Gainsight MCP server lets AI agents read and write Gainsight data through the Model Context Protocol, Anthropic's open standard for connecting LLMs to external tools. StackOne's Gainsight MCP server ships with 107 pre-built actions, fully extensible via the Connector Builder, plus managed authentication, prompt injection defense, observability, and agent execution runtime. Connect it from MCP clients like Claude Desktop, Claude Code, Cursor, Goose, and VS Code, or from agent frameworks like OpenAI Agents SDK, LangChain, and Vercel AI SDK.
All Gainsight MCP Tools
Every StackOne action for Gainsight, ready for your agent. Read, write, delete and run operations, scoped to exactly what you need.
Company Records
- Update Company Records
Update up to 50 existing Company records matched by key fields
- Delete Company Record
Permanently delete one Company record by its GSID
CTAs
- Create CTAs
Create a CTA for a company or relationship, optionally applying a playbook
- Update CTAs
Update fields on an existing CTA identified by its GSID
Custom Object Records
- Update Custom Object Records
Update up to 50 existing custom object records matched by key fields
- Delete Custom Object Record
Permanently delete one custom object record by its GSID
Customer Goals
- Create Customer Goals
Create a single Customer Goal on a company, relationship or opportunity
- Update Customer Goals
Update an existing Customer Goal identified by its Gsid
Email Opt Out Preferences
- Get Email Opt Out Preferences
Get a person's email opt-out preferences and global opt-out status
- Update Email Opt Out Preferences
Create or update a person's email opt-out preferences
Goal Metrics
- Create Goal Metric
Create a goal metric and optionally associate it with Goal Types
- Update Goal Metric
Update an existing goal metric and its Goal Type associations
- Delete Goal Metrics
Delete one or more goal metrics by GSID
Goal Templates
- Create Goal Template
Create a Goal Template in the Goals Library
- Update Goal Template
Update an existing Goal Template identified by its Gsid
- Delete Goal Templates
Delete one or more Goal Templates by Gsid
Describe Objects
- Describe Object
Get full field-level metadata for one Gainsight object
- Describe Objects
Get full field-level metadata for several Gainsight objects in one call
Relationship Records
- Create Relationship Records
Create one or more Relationship records under a Company
- Update Relationship Records
Update existing Relationship records matched by key fields
- Delete Relationship Record
Permanently delete a Relationship record by GSID
Renewal Opportunitys
- Create Renewal Opportunity
Create one or more Renewal Center opportunity records
- Update Renewal Opportunity
Update one or more existing Renewal Center opportunity records
Success Plans
- Create Success Plans
Create one Success Plan, optionally with its Objectives
- Update Success Plans
Update one existing Success Plan by its GSID
Tasks
- Create Tasks
Create a CSTask on an existing CTA
- Update Tasks
Update fields on an existing CSTask identified by its GSID
Users
- Create Users
Create up to 50 Gainsight users in one call
- Update Users
Update up to 50 existing Gainsight users in one call
Other (78)
- Publish Event
Publish a registered custom event or a System Asset Event into Gainsight
- Get Bulk Export Job Status
Get the status of a bulk export job
- Get Bulk Import Job Status
Get the progress of a Bulk API import job
- Download Bulk Import Result File
Download the success or error file of a bulk import job
- Retrieve Deleted Ctas
List soft-deleted CTAs with field selection, filters and pagination
- Get CTA Configuration
Get configured CTA Type, Reason, Status and Priority picklist values
- Get Customer Goal Picklists
Retrieve the Goal Type or Goal Status picklists configured for the tenant
- Get Dropdown Dependencies
List dependency mappings between Gainsight dropdown categories
- Get Dropdown Items
Get a Gainsight dropdown category and all of its items
- Get M2M Access Token
Generate an M2M OAuth access token from the OAuth API Key and Secret
- Get OAuth Access Token
Exchange an authorization code or refresh token for a user OAuth access token
- Get Objects (Lite)
List Gainsight objects with minimal metadata
- Get Objects (Lite, Filtered)
List Gainsight objects with minimal metadata using body filters
- Get Person
Get a Person record and its company and relationship associations by GSID
- Get Person By Email
Get a Person record and its company and relationship associations by email
- Get People Async Upsert Status
Get the processing status of an async People upsert job
- Get People Delete Status
Get the processing status of a People delete request
- Get People Bulk Async Status
Get the processing status of a People bulk async load job
- Get People Bulk Async Chunk Results
Get the per-record results of one chunk of a People bulk async load job
- Get Playbook Configuration
List configured playbooks, optionally filtered by status, entity or CTA type
- Retrieve Deleted Data
Query the delete log for records removed from standard objects
- Retrieve Deleted Data High Volume
Query the delete log for records removed from high-volume objects
- Retrieve Deleted Success Plans
Query Success Plans deleted in the last 15 days
- Get Success Plan Configuration
Get Success Plan Type, Status and Objective Category picklists
- Retrieve Deleted Tasks
List soft-deleted CSTasks with field selection, filters and pagination
- Get Timeline Job Status
Get the status and per-record results of a bulk Timeline job
- Update Timeline Activity
Update a single Timeline activity
- Update Users Status
Activate or deactivate up to 50 Gainsight users by GSID
- Delete Company Team Record
Delete a single Company Team record by GSID
- Delete People
Permanently delete Person records by GSID
- Delete Timeline Activities
Permanently delete Timeline activities by activity GSID
- Fetch Adoption Explorer Projects
Get an Adoption Explorer project's status and metadata by name or ID
- Fetch Adoption Explorer Jobs
List the jobs run for an Adoption Explorer project
- Fetch Adoption Explorer Sub Jobs
Get the Data Process and Data Load sub jobs of an Adoption Explorer job
- Fetch Adoption Explorer Download Links
Get CSV download links and record counts for an Adoption Explorer data load
- Fetch Company Resolution Download Link
Get CSV download links and record counts for an Adoption Explorer Company Resolution step
- Fetch Bulk Export Chunk Data
Download one chunk of a completed bulk export job
- Submit Bulk Export Job
Submit an asynchronous bulk export job for a Gainsight object
- Submit Bulk Import Job
Upload a CSV file to run a Gainsight Bulk API data ingest job
- Read Company Records
Query Company records with field selection, filters, sorting and pagination
- Insert Company Records
Insert up to 50 new records into the Company object
- Fetch Company Team Records
List Company Team records (user-to-company team assignments) with filters, sorting and page pagination
- Upsert Company Team Records
Create or update Company Team records (user-to-company team assignments)
- Bulk Delete Company Team Records
Delete up to 50 Company Team records in one call by GSID
- Copilot Chat Sync
Ask Gainsight Copilot a natural language question and get an AI-generated answer
- Fetch CTAs
Query CTAs with field selection, filter conditions and page-based pagination
- Read Custom Object Records
Query records from a custom object with field selection, filters, sorting and pagination
- Insert Custom Object Records
Insert up to 50 new records into a custom object
- Fetch Customer Goals
Retrieve a paginated list of Customer Goals with selected fields
- Fetch Goal Templates
Retrieve a paginated list of Goal Templates with selected fields
- Introspect M2M Token
Check whether an M2M OAuth access token is still active
- Revoke OAuth Authorization
Revoke a refresh token of the connected OAuth Application
- Upsert Person
Create or update a single Person record with optional company and relationship associations
- Upsert People Async
Create or update up to 50 Person records with associations asynchronously
- Bulk Upsert People
Create or update up to 50 Person records with associations synchronously
- Bulk Upsert People Async
Load a large batch of Person records asynchronously (up to 80 MB per call)
- View Relationship Records
Query Gainsight Relationship records with field selection, filters, sorting and offset pagination
- Upsert Relationship Records
Create or update Relationship records matched by key fields
- SCIM Search Groups
List and search Gainsight user groups through the SCIM 2.0 API
- SCIM Get Group
Retrieve one Gainsight group and its members by SCIM group ID
- SCIM Create Group
Create a new Gainsight user group through the SCIM 2.0 API
- SCIM Replace Group
Rename a Gainsight user group through the SCIM 2.0 API
- SCIM Patch Group Members
Add, reset or replace the members of a Gainsight user group through SCIM
- SCIM Search Users
List and search Gainsight users through the SCIM 2.0 API
- SCIM Get User
Retrieve one Gainsight user's SCIM representation by GSID
- SCIM Create User
Provision a new Gainsight user through the SCIM 2.0 API
- SCIM Replace User
Replace a Gainsight user's SCIM attributes with a full user payload
- SCIM Patch User
Add, replace or remove specific attributes of a Gainsight user, or activate or deactivate it
- Fetch Success Plans
Query Success Plans with select, filter and page clauses
- Fetch Tasks
Query CSTasks across all CTAs with field selection, filters and pagination
- Fetch CTA Tasks
List the CSTasks that belong to one CTA
- Read Timeline Activities
Query Timeline activity records with field selection, filters, sorting and pagination
- Fetch Deleted Timeline Activities
List the GSIDs of Timeline activities deleted within a date range
- Save Timeline Activity
Create a Timeline activity synchronously
- Bulk Save Timeline Activities
Submit an asynchronous job that creates many Timeline activities
- Bulk Update Timeline Activities
Submit an asynchronous job that updates many Timeline activities
- Abort Timeline Job
Abort a queued bulk Timeline insert or update job
- Fetch Users
List and filter Gainsight users with field selection, sorting and pagination
Gainsight AI Agent Use Cases
Connect your AI agent to Gainsight and help your team scale the support operations they run by hand today.
Use StackOne to connect your AI agent to your helpdesk, CRM, and messaging tools to automate ticket triage and priority routing.
ViewUse StackOne to connect your AI agent to your telephony, CRM, and messaging tools to automate voice call summarization and CRM logging.
ViewUse StackOne to connect your AI agent to your helpdesk, CRM, and messaging tools to automate SLA breach prediction and escalation.
ViewSet Up Your Gainsight MCP Server in Minutes
One endpoint. Any framework. Your agent is talking to Gainsight in under 10 lines of code.
Agent Frameworks
{
"mcpServers": {
"stackone": {
"command": "npx",
"args": [
"-y",
"mcp-remote@latest",
"https://api.stackone.com/mcp?x-account-id=<account_id>",
"--header",
"Authorization: Basic <YOUR_BASE64_TOKEN>"
]
}
}
}Check More Customer Support MCP Servers
222+ actions
119+ actions
115+ actions
101+ actions
77+ actions
74+ actions
72+ actions
Platform Resources
Comparing BM25, TF-IDF, and Hybrid Search for MCP Tool Discovery
Benchmarking BM25, TF-IDF, and hybrid search for MCP tool discovery across 916 tools. The 80/20 TF-IDF/BM25 hybrid hits 21% Top-1 accuracy in under 1ms.
10 min
Indirect Prompt Injection Defense for MCP Tools: A Technical Guide
MCP tools that read emails, CRM records, and tickets are indirect prompt injection vectors. Here's how we built a two-tier defense that scans tool results in ~11ms.
12 min
MCP vs A2A: Architecture, Security, and When to Use Each
MCP vs A2A: what each protocol standardizes, how they differ, the security risks they share, and when to use one, both or a hybrid.
12 min
MCP vs API: What Hundreds of Connector Builds Taught Us
MCP wraps APIs, it doesn't replace them. After building hundreds of connectors that serve both, here's when each approach wins.
14 min read
FAQ
Gainsight MCP Server FAQ
origin_owner_id.