The Loss-Prevention Friction Engine for Founders
An AI-powered MCP server that stops you from building things nobody wants using clinical analytics, behavioral pattern scanning, and real-time market intelligence.
Tools • Quickstart • Architecture • Deployment
openGlad is a Model Context Protocol (MCP) server that acts as the ultimate friction engine for startups. It provides AI agents (Mistral's Le Chat, Claude, etc.) with specialized tools to enforce loss-prevention before you write a single line of code. Through MCP, you can seamlessly connect openGlad directly to Mistral's Le Chat natively:
- 🛑 Loss-Prevention Pipeline — Runs behavioral pattern scans, 3-scenario failure predictions, and locks building until monetization is confirmed.
- 🔍 Market Reality Check — Analyzes real-time Reddit trends across 11 entrepreneurship subreddits to detect overcrowding and entry risks.
- 📊 Startup Diagnostics — Evaluates execution stability, revenue health, burnout risk, and distribution discipline.
- 🩺 Clinical Triage — Objective, data-driven assessments with zero motivational fluff.
Think of it as an anti-delusion engine for your startup — designed to tell you 'no' before you waste months building the wrong thing.
┌──────────────┐ ┌───────────────────────┐ ┌──────────────┐
│ AI Client │ MCP │ openGlad Worker │ API │ Mistral AI │
│ (Le Chat, │◄──────►│ (Cloudflare Edge) │◄──────►│ (Agents + │
│ Claude) │ │ Version 4.0 │ │ Web Search) │
└──────────────┘ └───────────────────────┘ └──────┬───────┘
│
┌──────▼───────┐
│ Reddit │
│ 11 Subs │
└──────────────┘
Tech Stack:
- Runtime: Cloudflare Workers (edge-deployed, globally distributed)
- Protocol: MCP (Model Context Protocol) via Streamable HTTP
- AI Engine: Mistral AI Agents API with built-in web search
- Language: TypeScript (Modular Architecture)
| Tool | Description |
|---|---|
run_the_bet |
Mega-pipeline combining Pattern Scan, Loss Simulation, and the Revenue Gate using Mistral AI. |
pattern_scan |
Detects behavioral risk patterns (e.g., building-in-isolation, feature-creep). |
loss_simulation |
Generates 3-scenario failure predictions (best, base, worst cases) via Mistral. |
revenue_gate |
Locks building and asserts absolute friction until clear monetization strategy/evidence is confirmed. |
| Tool | Description |
|---|---|
analyze_market_trends |
Overcrowding & entry risk filter. Compares your startup idea against live Reddit trends using Mistral AI web search. |
scan_reddit_trends |
Scans Reddit communities to provide general warnings, market sentiment, and emerging opportunities. |
Data Sources — 11 subreddits scanned in real-time:
r/Startup_Ideas · r/Business_Ideas · r/SaaS · r/SideProject · r/EntrepreneurRideAlong · r/IndieHackers · r/Futurology · r/Technology · r/AINewsAndTrends · r/Startups · r/Entrepreneur
| Tool | Description |
|---|---|
analyze_startup |
Triage router. Runs Friction Engine for ideas, and Diagnostics for metrics. |
analyze_execution_stability |
Assesses development velocity, engineering risks, and technical debt. |
analyze_revenue_health |
Evaluates MRR/ARR trajectory, financial risks, churn, and unit economics. |
analyze_burnout_risk |
Detects burnout signals from work patterns, cognitive load, and focus entropy. |
analyze_distribution_discipline |
Measures marketing risks, output consistency, and funnel efficiency. |
generate_full_diagnosis |
Comprehensive system scan across all diagnostic dimensions. |
| Prompt | Description |
|---|---|
run-the-bet |
Executes the complete loss-prevention pipeline for a new idea. |
analyze-startup |
Guided startup analysis flow — triage and routing for incoming startup ideas or metrics. |
The MCP server is deployed and ready to use:
https://openglad-mcp.testworker12361.workers.dev/mcp
Add to your MCP client configuration:
{
"mcpServers": {
"openGlad": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://openglad-mcp.testworker12361.workers.dev/mcp"]
}
}
}npx @modelcontextprotocol/inspector@latest
# Enter URL: https://openglad-mcp.testworker12361.workers.dev/mcpOnce connected, try these with your AI client:
"Run the bet on my startup idea: an AI-powered tool that generates investor pitch decks from a one-page brief"
"Can you check if my idea for a daily planner app is going to fail?"
"Run a full health diagnostic on my startup with these metrics: MRR $12k, churn 8%, 3 developers, shipping weekly"
# Clone and install
cd worker-openglad
npm install
# Local development
npm run dev
# Deploy to Cloudflare
npx wrangler deploy
# Set your Mistral API key
npx wrangler secret put MISTRAL_API_KEYopenGlad/
└── worker-openglad/ # Cloudflare Worker project
├── src/
│ ├── config/ # Environment & constants
│ ├── prompts/ # LLM system prompts & templates
│ ├── services/ # Mistral & external APIs
│ ├── tools/ # MCP Tool definitions & handlers
│ ├── utils/ # Helper functions
│ └── index.ts # Server entry point & tool registration
├── wrangler.jsonc # Cloudflare Worker configuration
├── package.json
└── tsconfig.json
- User asks → "I want to build an AI resume builder"
- AI client → Calls
run_the_betoranalyze_startup - openGlad Worker → Runs
pattern_scanto identify behavioral risks and queries Mistral AI forloss_simulation. - Mistral Agent → Maps out why the idea will likely fail and searches Reddit to assess true market conditions.
- Revenue Gate → Blocks positive validation until a sustainable monetization path is proven.
- User receives → A brutal truth check: what their blind spots are, what their failure modes look like, and whether they are allowed to proceed to building.
- Cloudflare Workers — Serverless edge computing
- Model Context Protocol — Standard protocol for AI tool integration
- Mistral AI — Agents API with built-in web search
- Cloudflare Agents SDK — MCP server framework
MIT

