MCP / Model Context Protocol

Your churn numbers, inside the assistant

The NoChurn API as seven tools an AI assistant can call. No server to deploy, no port to open — the client starts the process and talks to it over stdio.

Published as nochurn-mcp · version 0.1.0 · MIT

01 — What it is

The NoChurn API, exposed as tools an AI assistant can call. The assistant can ask how many of your customers are at risk, how many you contacted, how many came back saying they were saved — and get the same numbers the dashboard shows.

It runs over stdio, which is what Claude Desktop, Cursor and the other local MCP clients speak. There is no server to deploy and no port to open: the client starts the process and talks to it over stdin/stdout.

02 — The tools

Every tool answers with the API’s own JSON. An assistant asking "how many customers did we save" gets the number the API computed, not a summary written by hand — there is no second place where the answer can drift.

  • list_tenants — which tenants the token belongs to
  • get_dashboard_summary — how many users are at risk (60+) and critical (80+), the tier distribution, the activity series, which signals fired, and the users closest to churning
  • get_analytics — how many users were contacted, how many of those contacts were delivered, the failure rate, what the customers said, the score histogram and the save rate
  • get_outreach — the contacts themselves: the rule that fired, the channel, and the error when a delivery failed
  • get_score_distribution — the histogram, for when the average hides two populations
  • list_users — the tenant’s users, with their score, tier and the customer’s own rating
  • get_user_detail — one user: their score, the signals that fired, their recent events and the rating

03 — Install

One command, from npm:

npm install -g nochurn-mcp

# or run it without installing
npx nochurn-mcp

04 — Configure

Two environment variables. NOCHURN_TOKEN is the dashboard’s JWT — sign in, open the browser console on any dashboard page and read the session token. NOCHURN_TENANT_ID is the tenant you want to read; it is the id in the dashboard’s URL, and without it list_tenants still works.

{
  "mcpServers": {
    "nochurn": {
      "command": "npx",
      "args": ["-y", "nochurn-mcp"],
      "env": {
        "NOCHURN_TOKEN": "eyJhbG...",
        "NOCHURN_TENANT_ID": "114af97f-e5fc-4d0c-a075-35c67d0aec93"
      }
    }
  }
}
That file goes in your MCP client's own configuration. For Claude Desktop it is the mcpServers block in claude_desktop_config.json; for Cursor it is .cursor/mcp.json in the project.

05 — What the data is

The outreach and rating data names who was contacted about cancelling. That is your most sensitive data, and it never crosses a tenant boundary: every API call is scoped to the tenant, and a user id is unique per tenant, not globally.

The save rate needs history. The scores table holds only the current score, so the backend keeps a daily score history to compare against. On a tenant that has been running for less than the window, the rate is null — there was nothing to compare, which is not the same as saving nobody.

06 — The honest limits

This is version 0.1.0 of the server. It reads the API and it does not write to it: there is no tool that creates a rule, sends a message or changes a score.

The token is a real credential with the same reach your operator has. Treat it like one — it does not belong in a repository, and rotating it is a matter of signing in again.

Everything the MCP server can do, the API can do. The server is a thin adapter, not a second way into the data.
Get it on npmRead the API docs