Churnkey SDK
MCP serverMonitoring & opsOnce added, your AI can read and manage your Churnkey cancel flows, retention metrics, and payment recovery. That means you can check how well you are keeping customers and change what happens when someone tries to cancel, just by asking your AI.
Use Churnkey SDK in Claude, ChatGPT or Ahel Desktop
Free. Sign in, add Churnkey SDK and connect your AI. About a minute.
Also: Claude Code · Cursor · Codex
Then ask your AI: use Churnkey SDK
Needs your own Churnkey SDK account. You sign in to it and approve access when you connect.
Details
Available today. Use it from your connected AI after setup.
After adding it, ask your AI to pull your latest retention metrics or review one of your cancel flows to see what it can access.
What your AI can do with it
- Review retention metrics
- Track how retention changes over time
- Update cancel flows
- Check payment recovery results
- Adjust payment recovery settings
Install Churnkey SDK
The server’s own address, for the clients that take one directly. Or connect Ahel once and every client you use reads it from one address, with the account kept on Ahel rather than in each client’s config.
Claude Code
claude mcp add --transport http --scope user churnkey-sdk 'https://mcp.churnkey.co/mcp'Run it once in your project, then open /mcp to approve any sign-in the server asks for.
Claude Desktop
https://mcp.churnkey.co/mcpAdd a custom connector in Settings, paste this address, and approve the sign-in.
Cursor
cursor://anysphere.cursor-deeplink/mcp/install?name=churnkey-sdk&config=eyJ1cmwiOiJodHRwczovL21jcC5jaHVybmtleS5jby9tY3AifQ==Open the link and Cursor adds the server at that address.
ChatGPT
https://mcp.churnkey.co/mcpIn Settings, enable Developer mode, create an MCP app, and paste this address. Your plan and workspace must allow custom apps.
Codex
codex mcp add churnkey-sdk --url 'https://mcp.churnkey.co/mcp'Run it once, then sign in with codex mcp login churnkey-sdk if the server asks for an account.
From the project's README
As published by churnkey/sdk in README.md.
A production-ready cancel flow for React. Open source. Optionally connects to Churnkey for analytics and AI-powered retention.
Packages
| Package | Description |
|---|---|
@churnkey/react | The cancel flow. Drop-in component, headless hook, or core state machine. React 18 and 19. |
@churnkey/node | Server-side token generation. Only needed if Churnkey is handling billing actions for you, or if you're using the hosted embed. |
@churnkey/mcp | Model Context Protocol server. Lets Claude, Cursor, and other AI agents query your Churnkey data (sessions, analytics, DSR) using a Data API key. |
Quick start
npm install @churnkey/react
import { CancelFlow } from '@churnkey/react'
import '@churnkey/react/styles.css'
<CancelFlow
steps={[
{
type: 'survey',
title: 'Why are you leaving?',
reasons: [
{
id: 'expensive',
label: 'Too expensive',
offer: { type: 'discount', couponId: 'STRIPE_SAVE20', percentOff: 20, durationInMonths: 3 },
},
{ id: 'not-using', label: 'Not using it enough', offer: { type: 'pause', months: 2 } },
{ id: 'missing', label: 'Missing features' },
],
},
{ type: 'feedback', title: 'Anything else?' },
{ type: 'confirm' },
]}
handleDiscount={async (offer) => myBilling.applyCoupon(offer.couponId)}
handlePause={async (offer) => myBilling.pause({ months: offer.result?.months ?? offer.months })}
handleCancel={async () => myBilling.cancel()}
onClose={() => setOpen(false)}
/>
Documentation and resources
@churnkey/react— full API reference, customization, headless usage, custom step types@churnkey/node—createTokenandauthHash@churnkey/mcp— MCP server for Claude / Cursor / Claude Desktop- Create a free Churnkey account — get an
appIdfor analytics - churnkey.co — dashboard, hosted embed, AI retention features
Repo layout
sdk/
├── packages/
│ ├── react/ @churnkey/react
│ ├── node/ @churnkey/node
│ └── mcp/ @churnkey/mcp
├── apps/
│ └── playground/ internal dev playground
└── scripts/ release + tooling helpers
Local development
pnpm install
pnpm --filter @churnkey/react build
pnpm --filter @churnkey/react test
To work against the playground:
pnpm --filter @churnkey/react dev # rebuilds on change
pnpm --filter @churnkey/playground dev # runs the playground app
License
MIT
Signals
- GitHub stars
- 23
- Forks
- 1
- Last commit
- Sep 2026
- Weekly_downloads
- 359 weekly_downloads
Advanced
- Delivery
- churnkey MCP server → your Ahel connector (mcp.ahel.ai) → your AI.
- Item type
- mcp-server
- Key
co-churnkey-churnkey- Source
- github.com/churnkey/sdk
- Hosted endpoint
https://mcp.churnkey.co/mcp
More in Monitoring & ops
MCP server
More in Monitoring & opsWorld Monitor
MCP server · koala73
More in Monitoring & opsNetdata
MCP server · netdata
More in Monitoring & opsotakit
MCP server · otakit
More in Monitoring & opsStatuser
MCP server · statuser-cloud
More in Monitoring & opsaltmetric-mcp
MCP server · altmetric
More in Monitoring & ops