MCP Recipe Book / ARR Cube
Recipe ARR Cube Version 1.0 Status Live Tools Subscription Lookup · Export Data Query type Aggregation / Time-series
REVENUE INTELLIGENCE RECIPE

Build your Board-ready Customer Cube artifact with Chargebee MCP

With Chargebee MCP, your subscriptions, currencies, customer MRR/ARR, products and plans are all live and interlinked. Point your AI client at that data to build a board-ready revenue dashboard.  Nine quarters of company performance in a single artifact.

THE CUSTOMER CUBE ARTIFACT
Connect your AI client to Chargebee, ask one question in plain language, and it reads your full subscription history, converts every currency to USD, and builds a customer-level ARR cube spanning nine quarters. Every paying account, sorted by product line. No exports, no spreadsheets, no waiting on a data team.

The manual alternative is a quarterly grind: pull the subscriptions, reconcile the currencies, rebuild the pivot, recompute growth and retention by hand. It hands you a headline number, not a view. It rarely surfaces the vertical whose net retention is quietly carrying the whole book (Financial Services here, near 136%), the account that has gone flat for nine straight quarters on a 30% discount, or the new logo that ramped from zero to seven figures inside two years.
The output is one explorable artifact with three views.

Summary lays out total ARR, growth, and gross and net retention, each expandable by segment, region and industry, alongside discount bands and ranked tables for top accounts, expansion, new sales and churn.

Insights reads the cube back as plain-language strengths, risks, signals to watch and open strategic questions, each with a suggested next step.

Raw Data is the full, sortable, filterable customer table. All produced in a single conversation.

Anonymized sample shown. Company names, domains and figures here are fictional and for illustration only.

Answering "what is each customer worth, by quarter, for the last two years?" used to mean a request to data engineering, a wait, and an analyst to reconcile whatever came back.

The people who lean on this are RevOps leads building board-level revenue views, Controllers reconciling recognized revenue against subscription data, and finance operators who have been rebuilding this view by hand every quarter.

02Why this works

The history is
already there.

Most platforms record only the current state of a subscription. The commercial history (when it started, when it ended, when terms last changed, what it was worth at each point) lives elsewhere, usually assembled by hand on request.

Chargebee is built differently. The full event chain is stored on every subscription record, which is what makes nine-quarter time-series analysis possible without a data warehouse or a data team. Connect an AI client through the Model Context Protocol and that history becomes queryable in plain English. One question retrieves the records, converts currencies, sorts products, and formats the output. No SQL. No scheduled export. No analyst in the loop.

Paste it into your AI client to build your own ARR cube.

Show the full prompt+
Objective: Using the Chargebee MCP connector, build a customer-level ARR cube showing every paying customer's recurring revenue by quarter from Q1 2024 through Q1 2026. This will be used as a board-level revenue intelligence report.

Step 1 — Pull subscriptions from Chargebee
Make paginated calls to list_subscriptions across three passes to capture all relevant revenue:
  • Pass 1: status = active
  • Pass 2: status = non_renewing
  • Pass 3: status = cancelled, filtered to cancelled_at on or after January 1, 2024

For each pass, use limit = 100 and paginate using next_offset until all records are retrieved. Only process subscriptions where mrr > 0 (exclude free, trial, and zero-revenue accounts).

Step 2 — Extract the following fields from each subscription
  • subscription.customer_id
  • subscription.mrr (in cents for most currencies; do not divide for zero-decimal currencies: JPY, KRW, IDR, etc.)
  • subscription.currency_code
  • subscription.status
  • subscription.started_at
  • subscription.cancelled_at
  • subscription.current_term_end
  • subscription.subscription_items[].item_price_id
  • subscription.subscription_items[].amount
  • subscription.discounts[]
  • customer.billing_address.company
  • customer.email (extract domain from everything after @)

Step 3 — Aggregate by customer
Group all subscriptions by customer_id. For each customer:
  • Sum mrr across all active subscriptions
  • Convert to ARR in USD: ARR (USD) = (mrr ÷ 100) × 12 × FX rate
  • FX rates (May 2026): USD 1.000 · EUR 1.082 · GBP 1.273 · AUD 0.647 · CAD 0.729 · INR 0.012 · SGD 0.741 · JPY 0.00671 · MXN 0.052 · BRL 0.193 · AED 0.272 · CHF 1.131. Use 1.0 for any unlisted currency.
  • Use the currency and FX rate of the customer's highest-MRR subscription as representative.

Step 4 — Calculate quarterly ARR
For each of the 9 quarters, a subscription is active at quarter-end if:
  started_at ≤ quarter_end AND (status = active OR cancelled_at > quarter_end OR current_term_end > quarter_end)

Quarter-end Unix timestamps:
  Q1 2024: 1711929599 · Q2 2024: 1719791999 · Q3 2024: 1727740799 · Q4 2024: 1735689599
  Q1 2025: 1743465599 · Q2 2025: 1751327999 · Q3 2025: 1759276799 · Q4 2025: 1767225599
  Q1 2026: 1775001599

Step 5 — Classify each customer's primary product
Using item_price_id from the highest-MRR subscription (first match wins):
  • Contains impl or implementation → Exclude (one-time charge)
  • Contains revrec → RevRec
  • Contains retention → Retention
  • Contains receivabl → Receivables
  • Contains cpq → CPQ
  • Contains enterprise, performance, scale, rise, finance suite, rgm, usage-based, ubb, or starter → Billing
  • Everything else → Other ARR

⚑ Customize this step — the product names above (RevRec, Retention, Receivables, CPQ, Billing) are specific to this Chargebee instance. Replace the keyword matches and category labels with your own product line names before running.

Step 6 — Calculate total discount
Blended discount rate = total discount amount ÷ MRR before discounts (from subscription.discounts[] on the primary subscription). Express as a decimal.

Step 7 — Output one row per customer, sorted by Q1 2026 ARR (USD) descending
Exclude any customer where Q1 2026 ARR = $0.

Columns: ID · Domain · Account Name · URL · Product · Current Plan Handle · Currency · FX Rate · Total Discount · Q1 2024 Plan ARR through Q1 2026 Plan ARR (all in USD).

Format ARR as whole dollars with commas (e.g. $1,390,939). Display $0 as a dash (—). Export as a CSV file.
Customize Step 5 before you run this. The product names above (RevRec, Retention, Receivables, CPQ, Billing) reflect our company's product line. Replace the keyword matches and category labels with your own before running the prompt.
Requirements
A Chargebee account · an AI client with Chargebee MCP connected (Claude, ChatGPT, Cursor, or similar) · subscription data going back to at least Q1 2024.
Setup
Open your AI client, connect to Chargebee through the MCP integration, and sign in with your Chargebee credentials.
FX rates
The prompt uses May 2026 exchange rates. If you need current-day precision, update the rate table in Step 3 before running.
Prompt
Copy the full prompt above and paste it directly into your AI client. The output is a sortable table you can export as a CSV.
More recipes
Want the rest of the recipe book?
Browse all recipes →
Not running it yourself?
Talk to the team about what an ARR cube shows for your book.
Get a demo →