Churnkey SDK

MCP serverMonitoring & ops

Once 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

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.

Churnkey SDKStart free

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/mcp

    Add 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/mcp

    In 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

PackageDescription
@churnkey/reactThe cancel flow. Drop-in component, headless hook, or core state machine. React 18 and 19.
@churnkey/nodeServer-side token generation. Only needed if Churnkey is handling billing actions for you, or if you're using the hosted embed.
@churnkey/mcpModel 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

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