openGlad logo

openGlad

Community
Tuguberk

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.

PublisherTuguberk
RepositoryopenGlad
LanguageTypeScript
Forks
1
Stars
9
Available tools
0
Transport typestdio, streamable-http
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    openGlad exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    9 stars and 1 forks from the linked repository.


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)

ToolDescriptionMarket Data
run_the_betMega-pipeline combining Pattern Scan, Loss Simulation, and Revenue Gate. Start here for new ideas.Reddit + HN + GitHub + Polymarket
pattern_scanDetects behavioral risk patterns (overbuilding drift, monetization avoidance, prestige bias).None
loss_simulationGenerates 3-scenario failure predictions (best, likely, worst) with quantified expected loss.Reddit + HN + GitHub + Polymarket
revenue_gateLocks building until clear monetization strategy is confirmed. Produces unlock tasks.None
compare_ideasParallel multi-source analysis of 2-3 ideas with ranked comparison and single verdict.Reddit + HN + GitHub + Polymarket

🔍 Market Intelligence (Multi-Source)

ToolDescriptionMarket Data
analyze_market_trendsOvercrowding & entry risk filter. Detects tarpit ideas and late entry risks.Reddit + HN + GitHub + Polymarket
scan_reddit_trendsBroad trend scanner: sentiment, red flags, cautionary tales, and 6-12 month predictions.Reddit + HN + GitHub + Polymarket

Data Sources:

SourceAPIWhat it adds
RedditPublic JSON (free, no key)Community sentiment, 11 base subreddits + dynamic topic expansion
Hacker NewsAlgolia API (free, no key)Technical founder signal — developer adoption, HN discussions
GitHubPublic Search API (free, no key)Competitor repo activity, star velocity, open source adoption
PolymarketGamma 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

ToolDescription
analyze_startupSmart triage router. Auto-detects ideas vs metrics and routes accordingly.
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-betFull loss-prevention pipeline for a new idea.
market-checkMarket saturation and trend analysis combining broad scan + focused analysis.
should-i-buildQuick friction check: pattern scan + revenue gate to determine if building is allowed.
analyze-startupGuided startup analysis — triage and routing for ideas or metrics.

📖 MCP Resources

ResourceURIDescription
Usage Guideopenglad://guideAgent-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:

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

MCP Inspector (for testing)

bash
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

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

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "tugberkakbulut-openglad": {
      "command": "",
      "args": []
    }
  }
}

Use openGlad MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once openGlad is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. You can run MCP locally on your device or connect to a remote MCP server URL.

Option 1: Use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add openGlad as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the openGlad MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "tugberkakbulut-openglad": {
      "command": "npx",
      "args": [
        "-y",
        "openglad-mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the openGlad MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the openGlad MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use openGlad to help me with this task?
openGlad
Sure. I read it.
Here is what I found using openGlad.

Option 2: Add an MCP server URL

Use this when openGlad is already hosted remotely or your team wants one shared connector that multiple users can access.

1

Open MCP connectors

In TypingMind, go to Plugins, open MCP connectors, then choose Add URL.

  1. Open TypingMind in your browser.
  2. Go to Plugins.
  3. Open MCP connectors.
  4. Click Add URL.
TypingMind Add Custom MCP Server URL form
2

Paste the server URL

Enter your server URL in the Server URL field. Add a connection name, description, icon, custom HTTP headers, or OAuth client settings if the server requires them.

  1. Paste your server URL into the Server URL field.
  2. Enter a connection name for openGlad.
  3. Add a description and icon if you want it to be easier to identify.
  4. Add custom HTTP headers or OAuth client details if the server requires authentication.
3

Create the connection

Click Create connection, then return to the Plugins list and confirm the new MCP connection is active.

  1. Click Create connection.
  2. Return to the MCP connectors list.
  3. Confirm the openGlad connection appears as active.
  4. Refresh the plugin list if the connection does not appear immediately.
4

Switch models without reconnecting

Start a chat with your preferred model, enable the openGlad tools from Plugins, and switch to another model whenever needed. The MCP connection stays available to the TypingMind workspace.

  1. Start a new chat in TypingMind.
  2. Select the AI model you want to use.
  3. Enable the openGlad tools from Plugins.
  4. Ask the model to use the tool when needed.
  5. Switch to another AI model and reuse the same MCP connection.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use openGlad to help me with this task?
openGlad
Sure. I read it.
Here is what I found using openGlad.

Frequently asked questions

What is the openGlad MCP server used for?

openGlad is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use openGlad MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use openGlad with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use openGlad MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With openGlad connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect openGlad MCP to TypingMind?

openGlad can be connected in TypingMind with the local MCP connector or by adding a remote MCP server URL. Use the local connector when the server needs access to files, apps, or private resources on your device, and use a server URL when the MCP server is hosted remotely.

What tools does openGlad MCP provide in TypingMind?

openGlad exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use openGlad MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If openGlad requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇