@retainq/mcp
v1.0.0
Published
RetainQ MCP Server — Connect AI assistants to your churn reduction platform. Query retention metrics, manage flows/offers, analyze customer data, and run AI churn analysis.
Maintainers
Readme
@retainq/mcp
RetainQ MCP Server — Connect AI assistants to your churn reduction platform.
What is this?
This is a Model Context Protocol (MCP) server for RetainQ. It lets AI assistants (like Claude, Cursor, Kiro, etc.) interact with your RetainQ workspace — query retention metrics, manage flows, analyze churn data, and more.
Installation
npx @retainq/mcpOr install globally:
npm install -g @retainq/mcpConfiguration
Environment Variable
Set your RetainQ API key:
export RETAINQ_API_KEY=rq_live_your_key_hereGet an API key from Settings → API Keys in your RetainQ dashboard.
MCP Client Config
Add to your MCP client configuration (e.g., Claude Desktop, Kiro, Cursor):
{
"mcpServers": {
"retainq": {
"command": "npx",
"args": ["@retainq/mcp"],
"env": {
"RETAINQ_API_KEY": "rq_live_your_key_here"
}
}
}
}Available Tools (32)
Analytics
get_retention_stats— Workspace metrics overviewget_recent_sessions— Latest flow sessions with outcomesget_top_churn_reasons— Cancellation reasons ranked by frequencyget_high_risk_customers— Customers above churn risk thresholdget_offer_performance— Offer acceptance rates and revenue
Flows
list_flows— List all flowsget_flow— Get flow detailscreate_flow— Create new flow (simple or advanced)update_flow— Update flow metadatadelete_flow— Archive a flowconfigure_simple_flow— Set simple flow config (survey, offers, feedback, design)set_advanced_flow_schema— Set node-based flow schemapublish_flow— Publish and make liveget_flow_schema— Get current published schema
Offers
list_offers— List all retention offerscreate_offer— Create new offerupdate_offer— Update offerdelete_offer— Archive offer
Customers
list_customers— List customers with churn scoresget_customer— Get customer by emailget_customer_sessions— Get a customer's session history
Opportunities
list_opportunities— List retention opportunitiesconfirm_opportunity— Confirm/fulfill an opportunityreject_opportunity— Reject an opportunity
AI Intelligence
run_churn_analysis— Run AI-powered churn analysisask_ai— Ask RetainQ AI a question about your data
Notifications
list_notifications— Get recent notificationsget_notification_preferences— Get notification settingsupdate_notification_preferences— Update notification settings
Feedback
list_feedback— Get session feedback/answersexport_feedback_csv— Export feedback as CSV
API Base URL
By default connects to https://app.retainq.com/api/v1/public. Override with:
export RETAINQ_API_URL=http://localhost:3000/api/v1/publicLicense
MIT
