openGlad

openGlad

openGlad is an MCP server that provides AI agents with tools for loss-prevention, market intelligence, and startup diagnostics using data from Reddit, Hacker News, GitHub, and Polymarket.

Category
访问服务器

README

<p align="center"> <img src="github/opengladlogo.png" alt="openGlad Logo" width="250" /> <p align="center"><strong>The Loss-Prevention Friction Engine for Founders</strong></p> <p align="center"> An AI-powered MCP server that stops you from building things nobody wants using clinical analytics, behavioral pattern scanning, and real-time market intelligence from Reddit, Hacker News, GitHub, and Polymarket. </p> <p align="center"> <a href="#tools">Tools</a> • <a href="#quickstart">Quickstart</a> • <a href="#architecture">Architecture</a> • <a href="#deployment">Deployment</a> </p> </p>

<p align="center"> <img src="github/openGladDemo.gif" alt="openGlad Demo" style="max-width: 100%;" /> </p>


What is openGlad?

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:

  • 🛑 Loss-Prevention Pipeline — Runs behavioral pattern scans, 3-scenario failure predictions, and locks building until monetization is confirmed.
  • 🔍 Multi-Source Market Intelligence — Aggregates real-time data from Reddit (11+ subreddits), Hacker News, GitHub, and Polymarket prediction markets to detect overcrowding and entry risks.
  • ⚔️ Comparative Friction Analysis — Runs parallel market intelligence on 2-3 ideas simultaneously and returns a ranked verdict on which one (if any) is worth pursuing.
  • 📊 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             │
│  (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:

  • Runtime: Cloudflare Workers (edge-deployed, globally distributed)
  • Protocol: MCP (Model Context Protocol) via Streamable HTTP
  • Market Data: Reddit + Hacker News (Algolia) + GitHub + Polymarket (all free, no API keys)
  • Language: TypeScript (Modular Architecture)

Tools

🚧 Friction Engine (Loss Prevention)

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

🔍 Market Intelligence (Multi-Source)

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
Reddit 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).

🩺 Startup Diagnostics

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.

💬 MCP Prompts

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.

📖 MCP Resources

Resource URI Description
Usage Guide openglad://guide Agent-readable guide with tool selection logic, recommended workflows, and usage tips.

Quickstart

Connect to the hosted server

The MCP server is deployed and ready to use:

https://openglad.tuguberk.dev/mcp

Claude Desktop / Cursor / Windsurf / Any MCP Client

Add to your MCP client configuration:

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

MCP Inspector (for testing)

npx @modelcontextprotocol/inspector@latest
# Enter URL: https://openglad.tuguberk.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"
"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."

Deployment

Prerequisites

Deploy your own

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

Project Structure

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

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 → Fetches from 4 sources in parallel: Reddit (11+ subreddits), HackerNews, GitHub, Polymarket (all cached 1hr at edge)
  4. Deduplication & Ranking → Jaccard similarity removes cross-source duplicates; per-author cap (max 3) prevents single-voice dominance; engagement scoring weights freshness + score + activity
  5. Pattern Scan → Identifies behavioral risks (overbuilding, monetization avoidance)
  6. Loss Simulation → Maps out 3 failure scenarios with quantified expected loss grounded in real market signals
  7. Revenue Gate → Locks building until monetization is proven
  8. User receives → A brutal reality check: blind spots, failure modes, and whether they're allowed to build

compare_ideas Flow

  1. User provides → 2-3 startup idea descriptions
  2. Parallel fetch → Market context fetched for all ideas simultaneously
  3. Comparative analysis → Each idea gets a compressed friction block (pattern risk, market signal, expected loss, gate status)
  4. Ranked verdict → Single recommendation on which idea (if any) to pursue

Built With

Inspiration

Multi-source aggregation, Jaccard deduplication, engagement-based ranking, thin-source retry, and evidence envelope patterns are inspired by mvanhorn/last30days-skill (MIT).

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选