MCP Hub
Back to servers

openGlad

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.

GitHub
Stars
7
Updated
Mar 1, 2026
Validated
Mar 11, 2026

openGlad Logo

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.

ToolsQuickstartArchitectureDeployment

openGlad Demo


What is openGlad?

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.

Architecture

┌──────────────┐         ┌───────────────────────┐         ┌──────────────┐
│   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)

Tools

🚧 Friction Engine (Loss Prevention)

ToolDescription
run_the_betMega-pipeline combining Pattern Scan, Loss Simulation, and the Revenue Gate using Mistral AI.
pattern_scanDetects behavioral risk patterns (e.g., building-in-isolation, feature-creep).
loss_simulationGenerates 3-scenario failure predictions (best, base, worst cases) via Mistral.
revenue_gateLocks building and asserts absolute friction until clear monetization strategy/evidence is confirmed.

🔍 Market Intelligence (Mistral-powered)

ToolDescription
analyze_market_trendsOvercrowding & entry risk filter. Compares your startup idea against live Reddit trends using Mistral AI web search.
scan_reddit_trendsScans 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

🩺 Startup Diagnostics

ToolDescription
analyze_startupTriage router. Runs Friction Engine for ideas, and Diagnostics for metrics.
analyze_execution_stabilityAssesses development velocity, engineering risks, and technical debt.
analyze_revenue_healthEvaluates MRR/ARR trajectory, financial risks, churn, and unit economics.
analyze_burnout_riskDetects burnout signals from work patterns, cognitive load, and focus entropy.
analyze_distribution_disciplineMeasures marketing risks, output consistency, and funnel efficiency.
generate_full_diagnosisComprehensive system scan across all diagnostic dimensions.

💬 MCP Prompts

PromptDescription
run-the-betExecutes the complete loss-prevention pipeline for a new idea.
analyze-startupGuided startup analysis flow — triage and routing for incoming startup ideas or metrics.

Quickstart

Connect to the hosted server

The MCP server is deployed and ready to use:

https://openglad-mcp.testworker12361.workers.dev/mcp

Mistral Le Chat / Claude Desktop / Cursor / Windsurf

Add to your MCP client configuration:

{
  "mcpServers": {
    "openGlad": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://openglad-mcp.testworker12361.workers.dev/mcp"]
    }
  }
}

MCP Inspector (for testing)

npx @modelcontextprotocol/inspector@latest
# Enter URL: https://openglad-mcp.testworker12361.workers.dev/mcp

Example Prompts

Once 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"

Deployment

Prerequisites

Deploy your own

# 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_KEY

Project Structure (v4.0.0 Modular)

openGlad/
└── 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

How It Works

Friction Engine Flow (Loss-Prevention)

  1. User asks"I want to build an AI resume builder"
  2. AI client → Calls run_the_bet or analyze_startup
  3. openGlad Worker → Runs pattern_scan to identify behavioral risks and queries Mistral AI for loss_simulation.
  4. Mistral Agent → Maps out why the idea will likely fail and searches Reddit to assess true market conditions.
  5. Revenue Gate → Blocks positive validation until a sustainable monetization path is proven.
  6. 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.

Built With

License

MIT

Reviews

No reviews yet

Sign in to write a review