Retain MCP Server
OfficialClick on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Retain MCP ServerWhich customers are at critical risk?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Retain MCP Server
Let your AI agent see who is about to churn, and do something about it.
@retain-so/mcp-server connects Retain to any MCP client (Claude Code, Claude Desktop, Cursor, Windsurf, and friends). Ask in natural language which customers are at risk, pull a customer's full health profile, check MRR at risk, and log outreach, all without opening the dashboard.
Retain is an AI-first churn prevention and customer analytics platform. This server is the bridge between your agent and your Retain data.
What you can ask your agent to do
Read:
"Which customers are at critical risk this week?"
"Show me my high-risk customers ordered by MRR."
"What's my total MRR at risk, broken down by risk level?"
"Pull the full profile for Acme Inc."
"List the active alerts I haven't contacted yet."
"Summarize this month's churn metrics and net revenue retention."
Act (needs a read+write key):
"Add a note to Acme: reached out today."
"Mark the alert for Globex as contacted."
"Archive the resolved alert for Initech."
Related MCP server: Vitally MCP Server
Setup (under 5 minutes)
In Retain, go to Settings → Agent keys and create a key. Pick read for query-only, or read & write to let the agent take actions. Copy it (it is shown once).
Add the snippet for your client below.
Restart the client and ask your first question.
Claude Code
claude mcp add retain --env RETAIN_API_KEY=rk_agent_xxx -- npx -y @retain-so/mcp-serverClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"retain": {
"command": "npx",
"args": ["-y", "@retain-so/mcp-server"],
"env": { "RETAIN_API_KEY": "rk_agent_xxx" }
}
}
}Cursor / Windsurf (.cursor/mcp.json or ~/.codeium/windsurf/mcp_config.json)
{
"mcpServers": {
"retain": {
"command": "npx",
"args": ["-y", "@retain-so/mcp-server"],
"env": { "RETAIN_API_KEY": "rk_agent_xxx" }
}
}
}Tools
Tool | Type | What it does |
| read | Customers by churn risk ( |
| read | Full profile for one customer by id or name. |
| read | Total MRR at risk plus active-alert counts by risk level. |
| read | Active alerts by priority, with risk factors and outreach state. |
| read | Churn rate, MRR churned, expansion/contraction, net revenue retention. |
| write | Add a note to a customer's active alert. |
| write | Mark an alert as contacted. |
| write | Archive a resolved alert. |
Coming soon: send_retention_email (trigger a templated retention email).
Example conversation
You: Who's about to churn and how much money is on the line?
Agent: (calls
get_mrr_at_risk, thenget_at_risk_customers) You have $4,200 MRR at risk across 7 active alerts. The two biggest are Acme Inc ($900, critical, 18 days inactive) and Globex ($650, high).You: Note that I emailed Acme today and mark their alert as contacted.
Agent: (calls
add_customer_noteandmark_alert_contacted) Done. Logged the note on Acme and moved the alert to contacted.
Configuration
Variable | Required | Default | Description |
| yes | (none) | Agent key from Settings → Agent keys. |
| no |
| Override the API base URL (self-host / staging). |
Development
npm install
npm run dev # run from source with tsx
npm run build # bundle to dist/
npm run typecheckThe server holds no business logic and no database. It only translates MCP tool calls into HTTP requests against Retain's public /agent/* API. Contributions and new tools are welcome.
License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseBqualityDmaintenanceEnables interaction with Retell AI's voice and chat agent platform. Build, deploy, and manage AI phone agents, configure conversation flows, handle calls/chats, and manage phone numbers through natural language.Last updated52
- FlicenseBqualityAmaintenanceProvides access to Vitally customer success platform data, enabling users to search accounts and users, view health scores, manage conversations and tasks, and create notes through natural language interactions.Last updated111
- AlicenseAqualityDmaintenanceConnects AI assistants to Custify customer success data for querying account metrics, health scores, and usage trends. It also supports taking actions such as creating notes, managing tasks, and triggering playbooks.Last updated15263MIT

Summit53 MCP Serverofficial
Alicense-qualityCmaintenanceProvides 48 revenue intelligence tools that let AI assistants search deals, forecast revenue, analyze pipeline risk, manage outreach, and track value delivery via natural language.Last updated67Inno Setup
Related MCP Connectors
Search companies, enrich contacts, and reveal emails and phones from your AI agent.
Connect AI to your Attio CRM. Manage contacts, companies, deals, and sales pipelines. Create tasks…
Your AI copilot for customer onboarding — projects, KPIs, tasks, and safe writes.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/retain-so/mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server