stripe-analytics-mcp
Provides analytics on Stripe subscriptions, including MRR, churn, failed payments, and expiring trials.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@stripe-analytics-mcp How's my business doing?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
stripe-analytics-mcp
Ask your AI assistant "how's my business doing?" and get your MRR, churn, failed payments, and expiring trials in one answer.
The problem
You check your Stripe dashboard for MRR, churn, and revenue breakdown every day. Stripe's official MCP server only does operations — create customers, send invoices. It can't tell you what your MRR is. ChartMogul and Baremetrics compute these metrics but cost $100+/month and have no MCP interface. You're switching between your editor and browser tabs just to check a number.
Related MCP server: indie-metrics-mcp
The morning check
"How's my business doing?" / "Morning check" / "What happened overnight?"
One question, one answer, 30-second scan. Everything you'd normally check across 4 Stripe dashboard pages:
Dashboard — 2026-02-24
MRR: $4,280 (+$120 this week)
Subscriptions: 42 active, 3 trialing, 1 past due
MRR Movement (last 7 days)
- New: +$198 (2 new customers)
- Expansion: +$49 (1 upgrade)
- Contraction: -$0
- Churned: -$127 (1 cancellation)
- Net: +$120
Quick Ratio: 1.9 (healthy)
Failed Payments (2 — $147 at risk)
- alice@acme.com — $98 — card_declined — attempt 2
- bob@startup.io — $49 — insufficient_funds — attempt 1
Trials Expiring Soon (3 — $147 potential MRR)
- carol@bigco.com — Pro — 2 days left — $49/mo
- dave@agency.net — Basic — 1 day left — $19/mo
- eve@freelance.co — Pro — 3 days left — $49/moRecover failed payments
"Am I losing money to failed payments?"
Failed payments are the easiest revenue to recover — these customers already want to pay you. Get the list with failure reasons so you can reach out today:
Failed Payments
Total at risk: $245.00
Failed invoices: 3
| Customer | Amount | Reason | Attempts | Last Attempt | Plan |
|-------------------|--------|-------------------|----------|--------------|------|
| alice@acme.com | $98.00 | card_declined | 2 | 2026-02-23 | Pro |
| bob@startup.io | $49.00 | insufficient_funds| 1 | 2026-02-22 | Pro |
| carol@agency.net | $98.00 | expired_card | 3 | 2026-02-21 | Pro |Track MRR growth
"How did my MRR change this month?"
See exactly where growth is coming from and where you're leaking:
MRR Movement — Last 30 days
Net New MRR: +$840
- New MRR: +$570 (from new customers)
- Expansion MRR: +$390 (from upgrades)
- Contraction MRR: -$49 (from downgrades)
- Churned MRR: -$71 (from cancellations)Watch your trial funnel
The dashboard flags trials expiring within 3 days — customers about to decide whether to convert or leave. The highest-leverage moment to intervene.
Understand churn
"What's my churn rate?"
Both customer churn and revenue churn — because losing one $500/mo customer hurts more than losing five $10/mo customers:
Churn Analysis — Last 30 days
Customer Churn Rate: 3.2%
Revenue Churn Rate: 1.8%
Churned Customers: 4
Churned MRR: $127.00Know which plans work
"Which plan makes the most money?"
| Plan | Subscribers | MRR | % of Total |
|------------|-------------|-----------|------------|
| Pro | 28 | $2,744.00 | 64.1% |
| Basic | 35 | $665.00 | 15.5% |
| Enterprise | 3 | $871.00 | 20.4% |Quick start
STRIPE_SECRET_KEY=sk_test_... npx stripe-analytics-mcpThen ask your AI assistant: "How's my business doing?"
Install
npx stripe-analytics-mcpAdd to your Claude Code / Cursor / Windsurf MCP config:
{
"mcpServers": {
"stripe-analytics": {
"command": "npx",
"args": ["stripe-analytics-mcp"],
"env": {
"STRIPE_SECRET_KEY": "sk_test_..."
}
}
}
}How it works
Connects to Stripe (read-only), computes metrics from live subscription data, returns markdown your AI assistant renders naturally.
MRR: Sums subscription items, normalizes annual/weekly to monthly, applies discounts, excludes trials
Movement: Tracks new, expansion, contraction, and churn MRR from Stripe events
Quick Ratio: (New + Expansion) / (Contraction + Churn) — above 1.0 means growing
Failed payments: Scans open invoices with failed attempts
Trials: Identifies trialing subscriptions about to expire
Stateless — every query hits Stripe fresh. No data cached. No database. No account needed.
Configuration
Variable | Required | Description |
| Yes | Stripe secret key ( |
Development
git clone https://github.com/npow/stripe-analytics-mcp
cd stripe-analytics-mcp
npm install
npm run build
npm testLicense
Available Tools
8 toolsget_churnB
Compute customer churn rate and revenue churn rate for a given period. Returns percentage of customers lost, percentage of revenue lost, counts of churned customers, and churned MRR amount.
Inputs: period_days.
get_dashboardA
The morning check — get everything important in one call. Returns: current MRR with week-over-week change, MRR movement breakdown (new/expansion/contraction/churn), failed payments needing attention, trials expiring in 3 days, and Quick Ratio. Use this when someone asks "how's my business doing?" or "morning check" or "what happened overnight?"
Inputs: no named parameters.
get_failed_paymentsA
Get all failed payment attempts with customer email, amount, failure reason, attempt count, and plan. These are recoverable revenue — money you can get back by reaching out to customers. Shows total revenue at risk.
Inputs: days.
get_mrrA
Compute current Monthly Recurring Revenue (MRR) from active Stripe subscriptions. Normalizes annual/weekly/daily subscriptions to monthly amounts, applies discounts, and excludes trials. Returns total MRR, subscription count, and status breakdown.
Inputs: no named parameters.
get_mrr_movementA
MRR waterfall showing how MRR changed over a period: new MRR from new customers, expansion from upgrades, contraction from downgrades, and churn from cancellations. Answers "how did my MRR change this week/month?"
Inputs: period_days.
get_recent_changesB
List recent subscription changes including new subscriptions, cancellations, upgrades, downgrades, and failed payments. Returns detailed event list with customer info and summary counts.
Inputs: days.
get_revenue_by_planA
Break down MRR by pricing plan/product. Returns a table showing each plan with subscriber count, MRR contribution, and percentage of total revenue.
Inputs: no named parameters.
get_subscriber_statsB
Get subscriber statistics for a given period. Returns total active subscribers, new subscribers, churned subscribers, net change, trial count, and past due count.
Inputs: period_days.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool targets a distinct analytics concept (MRR, churn, revenue by plan, subscriber stats, recent changes, dashboard, failed payments, MRR movement). However, churn-related data appears in get_churn, get_subscriber_stats, get_recent_changes, and get_mrr_movement, and get_dashboard overlaps with several individual tools, creating mild misselection risk.
All tools use a consistent snake_case verb_noun pattern (get_mrr, get_churn, etc.), making the naming predictable and easy to parse.
Eight tools is well-scoped for a Stripe analytics server, covering essential metrics without redundancy or excessive fragmentation.
The surface covers core analytics (MRR, churn, plans, subscribers, changes, failed payments, movement, dashboard). Minor gaps exist for deeper customer-level or cohort analysis, but agents can work around them with existing tools.
Maintenance
Related MCP Connectors
Read-only revenue analytics from Stripe, Paddle, Polar, Lemon Squeezy, Creem and Freemius.
Read MRR, churn, users, errors, AI costs and 0-100 health scores for every app you run.
Ask about your subscription metrics, like MRR, ARR and growth, and see the customers behind them.
Track, analyze, and act on your streaming and SaaS subscriptions from any AI agent.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI-powered analytics from Stripe, PayPal, and Google Analytics 4 (BigQuery) data sources with built-in guardrails and automated workflows for financial and web performance insights.ISC
- AlicenseAqualityDmaintenanceMCP server that gives AI assistants real-time access to Stripe business metrics like MRR, churn, and revenue forecasts via natural language queries.7MIT
- AlicenseAqualityDmaintenanceEnables querying MRR, churn, and revenue from Stripe, Gumroad, and Lemon Squeezy directly inside Claude, allowing natural language questions about business metrics.555 npmMIT

Kordi MCP Serverofficial
AlicenseNot gradedqualityDmaintenanceTrack, analyze, and act on your streaming & SaaS subscriptions from any AI agent.MIT