saas-brain-mcp
SaaS Brain MCP
使用 Claude AI 以纯英语询问有关您的 SaaS 业务的问题。
“谁即将流失?” • “我本周的收入是多少?” • “谁是我最好的客户?”
无需仪表板。无需 SQL。直接提问即可。
功能介绍
SaaS Brain 是一个 MCP(模型上下文协议)服务器,它将 Claude AI 连接到您的 Stripe 和 Supabase 数据。通过自然语言提问,即可立即获得智能业务洞察。
可用工具
工具 | 回答内容 |
| 任意日期范围内的总收入 |
| 消费最高的客户 |
| 所有活跃订阅者及计划信息 |
| N 天未登录的用户 |
| 特定用户的最后登录时间及活动 |
| 已停止活跃的付费用户 |
| 超过消费阈值的客户 |
| 消费高但目前已不活跃的客户 |
您可以向 Claude 询问的示例问题
“我从一月到三月的收入是多少?”
“按消费额显示我的前 5 名客户”
“哪些用户有流失风险?”
“谁付钱最多但最近没登录过?”
“给我一份我的 SaaS 的完整健康报告”
Related MCP server: indie-metrics-mcp
技术栈
Java 17 + Spring Boot
Stripe API
Supabase REST API
Docker
MCP 协议 (JSON-RPC 2.0)
前置要求
Java 17+
Maven
Stripe 账户(免费,测试模式可用)
Supabase 项目(免费层级可用)
Claude.ai 账户(免费层级可用)
设置
1. 克隆仓库
git clone https://github.com/Mohd16kaif/saas-brain-mcp.git
cd saas-brain-mcp2. 添加您的 API 密钥
创建 src/main/resources/application.properties:
server.port=8080
spring.application.name=saas-brain-mcp
stripe.api.key=sk_test_YOUR_STRIPE_KEY
supabase.url=https://YOUR_PROJECT.supabase.co
supabase.key=YOUR_SERVICE_ROLE_KEY从以下位置获取您的密钥:
Stripe: dashboard.stripe.com → Developers → API Keys
Supabase: app.supabase.com → Settings → API → service_role 密钥
3. 本地运行
mvn spring-boot:run测试它:
curl -X POST http://localhost:8080/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'部署到 Render(免费,24/7)
1. 在 GitHub 上 Fork 此仓库
2. 在 Render 上创建一个新的 Web Service
前往 render.com → New → Web Service
连接您 Fork 的仓库
语言: Docker
分支:
main实例类型: Free
3. 在 Render 中添加环境变量
键 | 值 |
| 您的 Stripe 密钥 |
| 您的 Supabase 项目 URL |
| 您的 Supabase service_role 密钥 |
4. 部署
Render 会自动构建和部署。您的服务器将在线运行于:
https://your-service-name.onrender.com连接到 Claude.ai
前往 claude.ai → Settings → Connectors
点击 Add custom connector
名称:
saas-brainURL:
https://your-render-url.onrender.com/mcp保存并在聊天中启用
然后只需向 Claude 询问任何关于您业务的问题即可。
连接到 Claude Desktop
将此内容添加到您的 claude_desktop_config.json:
{
"mcpServers": {
"saas-brain": {
"type": "http",
"url": "https://your-render-url.onrender.com/mcp"
}
}
}文件位置:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
重要说明
使用 Supabase 的
service_role密钥(而非anon密钥),这是查询auth.users所必需的流失检测通过匹配 Stripe 和 Supabase 之间的电子邮件来工作,请确保用户在两者中使用相同的电子邮件注册
免费的 Render 实例在 15 分钟不活动后会进入休眠状态,首次请求可能需要 30 秒唤醒
成本
$0 - Stripe 测试模式免费,Supabase 免费层级永久免费,Render 免费层级足以满足个人使用。
许可证
MIT - 可免费使用、修改和部署。
构建者
Mohd. Kaif Shaikh - GitHub
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityFmaintenanceFree, open-source MCP server that connects Claude to the Shopify Partner API. 25 tools for revenue analytics, churn analysis, retention cohorts, merchant health scoring, conversion funnels, revenue forecasting, and growth velocity.2512MIT
- AlicenseAqualityBmaintenanceMCP server that gives AI assistants real-time access to Stripe business metrics like MRR, churn, and revenue forecasts via natural language queries.7MIT
- AlicenseAqualityBmaintenanceOne MCP server for the SaaS back office. Stripe, HubSpot, and Google Sheets exposed as typed, read-only-by-default tools for Claude and any MCP client.1MIT
- Flicense-qualityBmaintenanceAn MCP server that connects Claude Desktop to PoetryQuill's live Supabase database. Ask Claude natural language questions about your platform data.
Related MCP Connectors
Hosted Amazon Seller Central and Amazon Ads MCP server for Claude, ChatGPT, Cursor, and agents.
MCP server for interacting with the Supabase platform
Hosted Amazon Seller and Vendor MCP server for Claude, ChatGPT, Cursor, Codex, Gemini, Copilot.
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Mohd16kaif/saas-brain-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server