mcpField
S
Saas Brain Mcp

Saas Brain Mcp

Local
github.com/Mohd16kaifData & Analytics0Updated 28w ago

About Saas Brain Mcp

Saas Brain Mcp connects Claude AI to Stripe and Supabase data for natural-language SaaS analysis. Its tools cover revenue, subscriptions, customer activity, and churn risk.

Key features

  1. 01Revenue queries by date range
  2. 02Top-customer and subscription lookup
  3. 03User activity and inactivity checks
  4. 04Churn-risk identification
  5. 05High-value customer risk checks

Use cases

  1. 01Review revenue over a selected period
  2. 02Find inactive subscribers at risk of churn
  3. 03Identify top spenders who have become inactive
  4. 04Inspect customer activity and subscription status

MCP support

The MCP server exposes analytics tools for Claude clients through a JSON-RPC 2.0 endpoint, using data from Stripe and Supabase.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

SaaS Brain MCP

Ask questions about your SaaS business in plain English using Claude AI.

"Who is about to churn?" • "What's my revenue this week?" • "Who are my best customers?"

No dashboards. No SQL. Just ask.

What it does

SaaS Brain is an MCP (Model Context Protocol) server that connects Claude AI to your Stripe and Supabase data. Ask natural language questions and get intelligent business insights instantly.

Available tools
ToolWhat it answers
getRevenueTotal revenue for any date range
getTopCustomersHighest spending customers
getActiveSubscriptionsAll active subscribers + plan info
getInactiveUsersUsers who haven't logged in for N days
getUserActivityLast login + activity for a specific user
getChurnRiskUsersPaying users who have gone inactive
getHighValueUsersCustomers above a spend threshold
getHighValueAtRiskUsersHigh spenders who are now inactive
Example questions you can ask Claude
  • "What's my revenue from January to March?"
  • "Show me my top 5 customers by spend"
  • "Which users are at risk of churning?"
  • "Who pays the most but hasn't logged in recently?"
  • "Give me a full health report of my SaaS"

Tech stack

  • Java 17 + Spring Boot
  • Stripe API
  • Supabase REST API
  • Docker
  • MCP Protocol (JSON-RPC 2.0)

Prerequisites

  • Java 17+
  • Maven
  • A Stripe account (free, test mode works)
  • A Supabase project (free tier works)
  • A Claude.ai account (free tier works)

Setup

1. Clone the repo
git clone https://github.com/Mohd16kaif/saas-brain-mcp.git
cd saas-brain-mcp
2. Add your API keys

Create 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

Get your keys from:

  • Stripe: dashboard.stripe.com → Developers → API Keys
  • Supabase: app.supabase.com → Settings → API → service_role key
3. Run locally
mvn spring-boot:run

Test it:

curl -X POST http://localhost:8080/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'

Deploy to Render (free, 24/7)

1. Fork this repo on GitHub
2. Create a new Web Service on Render
  • Go to render.com → New → Web Service
  • Connect your forked repo
  • Language: Docker
  • Branch: main
  • Instance Type: Free
3. Add environment variables in Render
KeyValue
STRIPE_API_KEYyour Stripe key
SUPABASE_URLyour Supabase project URL
SUPABASE_KEYyour Supabase service_role key
4. Deploy

Render builds and deploys automatically. Your server will be live at:

https://your-service-name.onrender.com

Connect to Claude.ai

  1. Go to claude.ai → Settings → Connectors
  2. Click Add custom connector
  3. Name: saas-brain
  4. URL: https://your-render-url.onrender.com/mcp
  5. Save and enable in chat

Then just ask Claude anything about your business.

Connect to Claude Desktop

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "saas-brain": {
      "type": "http",
      "url": "https://your-render-url.onrender.com/mcp"
    }
  }
}

File location:

  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Important notes

  • Use Supabase's service_role key (not the anon key) needed to query auth.users
  • Churn detection works by matching emails between Stripe and Supabase make sure users sign up with the same email in both
  • Free Render instances sleep after 15 minutes of inactivity first request may take 30 seconds to wake up

Cost

$0 Stripe test mode is free, Supabase free tier is permanent, Render free tier is sufficient for personal use.

License

MIT free to use, modify, and deploy.

Built by

Mohd. Kaif Shaikh GitHub

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.