How to Use the Gainsight CS MCP in LangChain
Chain Gainsight CS tools directly into your LangChain runs to automatically pull health scores and log customer activities using this MCP Server.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Gainsight CS MCP to LangChain
Create your Vinkius account to connect Gainsight CS to LangChain and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Automate multi-step customer success plays with LangChain
The Gainsight CS MCP Server connects your LangChain agent directly to customer health scoring and timeline tools. By passing these tools to a LangChain agent, you allow it to determine when to call `get_company_health` and immediately use that output to feed the next link in your customer success chain. It's that simple. Instead of manual lookups, your LangChain agent can evaluate a customer's standing and immediately trigger `list_calls_to_action` to check for open issues. This turns static Gainsight CS data into an active, multi-step LangChain reasoning pipeline without writing custom glue code for every API endpoint.
Observe and trace every customer interaction via LangSmith
This LangChain integration routes execution data from Gainsight CS tools like `list_timeline_events` directly to your LangSmith dashboard. When your LangChain agent runs `list_timeline_events` to analyze recent customer touches, you can see the exact latency, token usage, and payload inputs of that specific call. Debugging failed Gainsight CS API calls or slow responses becomes straightforward because every tool execution is treated as a distinct LangChain run. You can pinpoint exactly why a `log_timeline_activity` call failed or verify that the correct parameters were sent during a high-priority Gainsight CS customer escalation.
Aggregate customer data across multiple backend systems
The `list_crm_people` tool lets your LangChain agent pull contact details through this MCP Server and cross-reference them with external databases. This setup avoids isolated data silos by letting your LangChain agent act as an intelligent coordinator for Gainsight CS profiles. It can fetch raw details using `get_person_details` and instantly write a summary of an external support ticket back to the Gainsight CS customer's timeline. Your team can trust that every customer success workflow is perfectly aligned.
Set up Gainsight CS MCP in LangChain
Prerequisites
- Python 3.10+ installed
-
langchain-mcp-adapters+langgraphpackages - Active Vinkius subscription with a valid endpoint token
- 1
Install dependencies
Run
pip install langchain-mcp-adapters langgraph langchain-openai. The MCP adapters package converts MCP tools into native LangChainBaseToolobjects. - 2
Connect via HTTP transport
Use
MultiServerMCPClientwith"transport": "http"pointing to your Vinkius endpoint. Replace[YOUR_TOKEN_HERE]with your token from cloud.vinkius.com. - 3
Create a ReAct agent
Pass the discovered tools to
create_react_agent()from LangGraph. The agent automatically routes Gainsight CS tool calls through the MCP protocol. - 4
Run with any LLM
Swap
ChatOpenAIforChatAnthropic,ChatGoogleGenerativeAI, or any LangChain-compatible model. The MCP tools work identically across all providers.
from langchain_mcp_adapters.client import MultiServerMCPClient
from langgraph.prebuilt import create_react_agent
from langchain_openai import ChatOpenAI
async with MultiServerMCPClient({
"gainsight-cs-mcp": {
"transport": "http",
"url": "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp",
}
}) as client:
tools = client.get_tools()
agent = create_react_agent(
ChatOpenAI(model="gpt-4o"),
tools,
)
result = await agent.ainvoke({
"messages": "List recent Gainsight CS transactions"
})
print(result["messages"][-1].content) Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Gainsight CS. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Gainsight CS MCP in LangChain
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Gainsight CS MCP today
We host it, we monitor it, we maintain it. You just paste one token.