Loading repository data…
Loading repository data…
Tuguberk / repository
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.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
openGlad is a Model Context Protocol (MCP) server that acts as the ultimate friction engine for startups. It provides AI agents (Claude, Cursor, Windsurf, Le Chat, etc.) with specialized tools to enforce loss-prevention before you write a single line of code:
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 │
│ (Claude, │◄──────►│ (Cloudflare Edge) │
│ Cursor, │ │ Version 5.0 │
│ Windsurf) │ └─────────────┬─────────────────┘
└──────────────┘ │ Parallel fetch (cached 1hr)
┌────────────┼────────────┐
┌──────▼──────┐ ┌──▼────┐ ┌─────▼──────┐ ┌──────▼──────┐
│ Reddit │ │ HN │ │ GitHub │ │ Polymarket │
│ 11+ subs │ │Algolia│ │ Public API │ │ Gamma API │
│ + topic exp.│ │ free │ │ no key │ │ free │
└─────────────┘ └───────┘ └────────────┘ └─────────────┘
Tech Stack:
| Tool |
|---|
| Description |
|---|
| Market Data |
|---|
run_the_bet | Mega-pipeline combining Pattern Scan, Loss Simulation, and Revenue Gate. Start here for new ideas. | Reddit + HN + GitHub + Polymarket |
pattern_scan | Detects behavioral risk patterns (overbuilding drift, monetization avoidance, prestige bias). | None |
loss_simulation | Generates 3-scenario failure predictions (best, likely, worst) with quantified expected loss. | Reddit + HN + GitHub + Polymarket |
revenue_gate | Locks building until clear monetization strategy is confirmed. Produces unlock tasks. | None |
compare_ideas | Parallel multi-source analysis of 2-3 ideas with ranked comparison and single verdict. | Reddit + HN + GitHub + Polymarket |
| Tool | Description | Market Data |
|---|---|---|
analyze_market_trends | Overcrowding & entry risk filter. Detects tarpit ideas and late entry risks. | Reddit + HN + GitHub + Polymarket |
scan_reddit_trends | Broad trend scanner: sentiment, red flags, cautionary tales, and 6-12 month predictions. | Reddit + HN + GitHub + Polymarket |
Data Sources:
| Source | API | What it adds |
|---|---|---|
| Public JSON (free, no key) | Community sentiment, 11 base subreddits + dynamic topic expansion | |
| Hacker News | Algolia API (free, no key) | Technical founder signal — developer adoption, HN discussions |
| GitHub | Public Search API (free, no key) | Competitor repo activity, star velocity, open source adoption |
| Polymarket | Gamma API (free, no key) | Prediction market odds — real money bets on outcome probabilities |
Reddit subreddits (base): r/Startup_Ideas · r/Business_Ideas · r/SaaS · r/SideProject · r/EntrepreneurRideAlong · r/IndieHackers · r/Futurology · r/Technology · r/AINewsAndTrends · r/Startups · r/Entrepreneur
Dynamic expansion adds topic-specific subreddits (e.g. r/MachineLearning for AI queries, r/CryptoCurrency for crypto, r/fintech for finance).
| Tool | Description |
|---|---|
analyze_startup | Smart triage router. Auto-detects ideas vs metrics and routes accordingly. |
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 | Full loss-prevention pipeline for a new idea. |
market-check | Market saturation and trend analysis combining broad scan + focused analysis. |
should-i-build | Quick friction check: pattern scan + revenue gate to determine if building is allowed. |
analyze-startup | Guided startup analysis — triage and routing for ideas or metrics. |
| Resource | URI | Description |
|---|---|---|
| Usage Guide | openglad://guide | Agent-readable guide with tool selection logic, recommended workflows, and usage tips. |
The MCP server is deployed and ready to use:
https://openglad.tuguberk.dev/mcp
Add to your MCP client configuration:
{
"mcpServers": {
"openGlad": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://openglad.tuguberk.dev/mcp"]
}
}
}
npx @modelcontextprotocol/inspector@latest
# Enter URL: https://openglad.tuguberk.dev/mcp
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"
"Compare these two ideas for me: (1) AI accounting SaaS for freelancers, (2) no-code internal tools builder"
"Run a full health diagnostic on my startup with these metrics: MRR $12k, churn 8%, 3 developers, shipping weekly"
"Is the micro-SaaS market oversaturated? Check trends across Reddit, HN, and GitHub."
# Clone and install
git clone https://github.com/tugberkakbulut/openGlad.git
cd openGlad
npm install
# Local development
npm run dev
# Deploy to Cloudflare
npx wrangler deploy
No API keys required — openGlad fetches all market data via free public APIs. Results are cached at the edge for 1 hour per query.
openGlad/
├── src/
│ ├── config/
│ │ └── constants.ts # Subreddits + dynamic topic expansion map
│ ├── prompts/
│ │ └── index.ts # LLM system prompts for all tools
│ ├── services/
│ │ ├── aggregator.ts # Multi-source fetcher + evidence envelope wrapper
│ │ ├── reddit.ts # Reddit search + engagement ranking + dedup + retry
│ │ ├── hackernews.ts # HN Algolia API integration
│ │ ├── polymarket.ts # Polymarket Gamma API integration
│ │ └── github.ts # GitHub public search API integration
│ ├── tools/
│ │ ├── friction.ts # Friction engine tools (run_the_bet, compare_ideas, etc.)
│ │ └── diagnostics.ts # Diagnostic tools (execution, revenue, burnout, distribution)
│ ├── utils/
│ │ ├── dedupe.ts # Jaccard N-gram deduplication + per-author caps + engagement scoring
│ │ └── helpers.ts # Evidence envelope response builder
│ └── index.ts # Server entry point, prompts, resources & tool registration
├── wrangler.jsonc # Cloudflare Worker configuration
├── package.json
└── tsconfig.json
run_the_bet or analyze_startupMulti-source aggregation, Jaccard deduplication, engagement-based ranking, thin-source retry, and evidence envelope patterns are inspired by mvanhorn/last30days-skill (MIT).
MIT