npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@churnkey/mcp

v0.3.0

Published

Model Context Protocol server for Churnkey. Lets agents query sessions, payment-recovery analytics, and DSR endpoints with a Data API key.

Readme

@churnkey/mcp

Model Context Protocol server for Churnkey. Lets AI agents (Claude Code, Cursor, Claude Desktop, etc.) read your sessions, run analytics queries, and handle GDPR requests.

Tools

| Tool | Description | |------|-------------| | list_sessions | Cancel/dunning sessions, with filters for date range, customer, outcome (saveType/canceled/aborted), plan, segment, A/B test, etc. Negation via not: { ... }. Default 50 / max 500 per call. | | aggregate_sessions | Session counts, optionally grouped by breakdownBy dimensions (saveType, offerType, planId, day/week/month, …). Same filter set as list_sessions. | | aggregate_payment_recoveries | Failed-payment recovery (dunning) counts and dollar amounts — invoice / recovered / pending / lost, in original currency and USD. Group by time, card brand, decline reason, outcome, blueprint, currency, recovered/active state. | | list_payment_recoveries | Individual failed-payment recovery campaigns. Same filter set as the aggregation. | | dsr_access | GDPR/CCPA data access by email. | | dsr_delete | GDPR/CCPA data delete by email. Destructive. |

Session and recovery tools read from the Churnkey analytics warehouse — sessions refresh every ~3 hours, recoveries every ~20 minutes. DSR tools read/write the operational store directly (no lag).

Each tool's input schema is fully described to the MCP client — enums for saveType / offerType / billingInterval / breakdown dimensions, not object for exclusions, structured types for booleans and numbers. Mode (live vs test) is set by the API key prefix; pass a test_-prefixed key to query test data.

Setup

  1. Get your App ID and Data API Key from app.churnkey.co/settings/data-api.
  2. Add the server to your MCP client config.

Claude Desktop / Claude Code

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or ~/.claude/claude_desktop_config.json:

{
  "mcpServers": {
    "churnkey": {
      "command": "npx",
      "args": ["-y", "@churnkey/mcp"],
      "env": {
        "CHURNKEY_APP_ID": "your_app_id",
        "CHURNKEY_API_KEY": "your_api_key"
      }
    }
  }
}

Cursor

~/.cursor/mcp.json:

{
  "mcpServers": {
    "churnkey": {
      "command": "npx",
      "args": ["-y", "@churnkey/mcp"],
      "env": {
        "CHURNKEY_APP_ID": "your_app_id",
        "CHURNKEY_API_KEY": "your_api_key"
      }
    }
  }
}

Restart the client after editing config.

Environment variables

| Var | Required | Default | |-----|----------|---------| | CHURNKEY_APP_ID | yes | — | | CHURNKEY_API_KEY | yes | — | | CHURNKEY_API_URL | no | https://api.churnkey.co/v1 |

Use a test_-prefixed API key for staging data.

Programmatic use

You can also embed the server in another Node process:

import { createServer, loadConfig } from '@churnkey/mcp'
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'

const server = createServer(loadConfig())
await server.connect(new StdioServerTransport())

License

MIT