saas-brain-mcp
SaaS Brain MCP
Claude AIを使って、SaaSビジネスに関する質問を平易な英語(または日本語)で行えます。
「誰が解約しそう?」 • 「今週の収益は?」 • 「優良顧客は誰?」
ダッシュボードもSQLも不要。ただ聞くだけです。
機能
SaaS Brainは、Claude AIとStripeおよびSupabaseのデータを接続するMCP(Model Context Protocol)サーバーです。自然言語で質問するだけで、ビジネスに関するインサイトを即座に得られます。
利用可能なツール
ツール | 回答内容 |
| 指定期間の総収益 |
| 支出額の多い顧客 |
| すべてのアクティブなサブスクライバーとプラン情報 |
| N日間ログインしていないユーザー |
| 特定ユーザーの最終ログインとアクティビティ |
| 非アクティブになった有料ユーザー |
| 支出額がしきい値を超えている顧客 |
| 支出額が多いが現在非アクティブなユーザー |
Claudeへの質問例
「1月から3月までの収益は?」
「支出額トップ5の顧客を表示して」
「解約リスクのあるユーザーは誰?」
「最も支払額が多いのに最近ログインしていないのは誰?」
「SaaSの全体的な健全性レポートを教えて」
Related MCP server: indie-metrics-mcp
技術スタック
Java 17 + Spring Boot
Stripe API
Supabase REST API
Docker
MCP Protocol (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 key
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時間365日)
1. GitHubでこのリポジトリをフォーク
2. Renderで新しいWeb Serviceを作成
render.com → New → Web Service に移動
フォークしたリポジトリを接続
Language: Docker
Branch:
mainInstance Type: Free
3. Renderで環境変数を追加
キー | 値 |
| Stripeキー |
| SupabaseプロジェクトURL |
| Supabase service_roleキー |
4. デプロイ
Renderが自動的にビルドとデプロイを行います。サーバーは以下で公開されます:
https://your-service-name.onrender.comClaude.aiへの接続
claude.ai → Settings → Connectors に移動
Add custom connector をクリック
Name:
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
重要な注意点
auth.usersをクエリするために、Supabaseのservice_roleキー(anonキーではない)を使用してください。解約検知はStripeとSupabaseのメールアドレスを照合することで機能します。ユーザーが両方で同じメールアドレスでサインアップしていることを確認してください。
無料のRenderインスタンスは15分間操作がないとスリープします。最初の要求時に起動まで30秒かかる場合があります。
コスト
$0 Stripeテストモードは無料、Supabase無料枠は永続的、Render無料枠は個人利用に十分です。
ライセンス
MIT 無料で利用、変更、デプロイ可能です。
開発者
Mohd. Kaif Shaikh GitHub
This server cannot be deployed
Maintenance
Related MCP Connectors
The Ramp MCP server enables users to securely connect Ramp with AI assistants like ChatGPT and Claude to query financial data and take actions using natural language. It transforms Ramp's developer API into a SQL interface that LLMs can query, allowing admins to analyze spend trends, identify cost savings, and run complex SQL analyses on comprehensive datasets (transactions, purchase orders, vendors, users), while all users can manage cards, view transactions, request reimbursements, and get expense policy answers.
Query your warehouse or a CSV with Claude/ChatGPT over MCP, governed by table-level ACL + audit.
Clamp Analytics MCP server: traffic, revenue, funnels, cohorts, errors, and search, for AI agents.
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
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.2514MIT
- AlicenseAqualityBmaintenanceMCP server that gives AI assistants real-time access to Stripe business metrics like MRR, churn, and revenue forecasts via natural language queries.7MIT
- AlicenseAqualityDmaintenanceOne 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.11MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server that connects Claude Desktop to PoetryQuill's live Supabase database. Ask Claude natural language questions about your platform data.-