stripe-analytics-mcp
Provides real-time Stripe subscription analytics including MRR, churn, failed payments, and expiring trials. Enables AI assistants to answer business health questions like 'How's my business doing?'
README
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.
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/mo
Recover 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.00
Know 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-mcp
Then ask your AI assistant: "How's my business doing?"
Install
npx stripe-analytics-mcp
Add 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 |
|---|---|---|
STRIPE_SECRET_KEY |
Yes | Stripe secret key (sk_test_... or sk_live_...). Read-only access is sufficient. |
Development
git clone https://github.com/npow/stripe-analytics-mcp
cd stripe-analytics-mcp
npm install
npm run build
npm test
License
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。