Back to Browse

Htmlradar MCP Server

Developer ToolsLow Risk9.2MCP RegistryLocal
Free

Server data from the Official MCP Registry

Publish HTML as a tracked link and see who opened it and which sections they read.

About

Publish HTML as a tracked link and see who opened it and which sections they read.

Security Report

9.2
Low Risk9.2Low Risk

Valid MCP server (1 strong, 1 medium validity signals). 1 known CVE in dependencies ⚠️ Package registry links to a different repository than scanned source. Imported from the Official MCP Registry. 1 finding(s) downgraded by scanner intelligence.

10 files analyzed · 2 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

What You'll Need

Set these up before or after installing:

HTMLRadar API key, created at https://htmlradar.com/settings under "API keys". Starts with hr_live_.Required

Environment variable: HTMLRADAR_API_KEY

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "com-htmlradar-share": {
      "env": {
        "HTMLRADAR_API_KEY": "your-htmlradar-api-key-here"
      },
      "args": [
        "-y",
        "htmlradar-mcp"
      ],
      "command": "npx"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

HTMLRadar

The open-source DocSend alternative for HTML files.

Read tracking for the HTML your LLM just generated.

License: AGPL v3 GitHub stars Self-hostable PRs welcome

Send an HTML deck, brief, or proposal as a tracked link. See who opened it, which sections they actually read, and how long they stayed — not just that it was opened.

htmlradar.com · free for 2 tracked links, $15/mo or $150/yr for unlimited · or self-host the whole thing.

Issues and PRs · roadmap · changelog documents v1.2; latest published tag is v1.1.2.

HTMLRadar dashboard walkthrough using synthetic sample data

Walkthrough uses synthetic sample data in the real sender dashboard.


Why this exists

Teams that use LLMs heavily ship more and more of their work as HTML — specs, reports, dashboards, design mocks, decks. ChatGPT, Claude, v0, Lovable and Anthropic Artifacts all produce HTML for the things that matter.

The tracking tooling never followed. DocSend and everything like it is built around uploading a file and tracking that file. PDF was the print-era container.

HTMLRadar tracks the document people actually send now, and reports reading at section level rather than a single "opened" flag.


What this is

Send-side analytics for HTML documents. Upload an HTML file (or paste a URL you already host), send a tracked link htmlradar.page/r/{slug}, see who opened it, which sections they dwelled on, and when they bounced. Section-level dwell, not "opened."

What it does

  • Section-level dwell — on any HTML. At least half a section must stay visible for one continuous second before its dwell starts qualifying; the read signal fires after three qualified seconds. The tracker auto-detects sections from your HTML: explicit anchored headings → bare h1/h2/h3 (slugged from text) → slide/page containers (section, .slide, .page) → paragraph buckets on plain prose. Dashboard tells you a recipient spent 2m 41s on §03 The Ask, 12s on Problem, and skipped Market sizing.
  • Per-viewer dashboard, aggregated across every share. One row per person who actually opened the doc, with email + country + device + referrer + total time + scroll depth + visits + first/last seen. Updates live every 30 seconds while the tab is in focus.
  • Per-recipient share links. One document, many shares. Each share carries its own email gate, password, expiry, revocation, and email-domain or per-email allow-list.
  • Files alongside the deck. Attach PDFs, financial models, images, and ZIPs to any share. Recipients see a small corner pill that opens a side drawer; files are always available when present (the per-share "Lock the deck" toggle controls deck save/print only, never attachments). Every download is logged per viewer + per session + per filename.
  • Version history. Replace the HTML after partner feedback. Every existing share keeps the same link and serves the new version on next open. The v{n} chip on the doc page is a popover with every upload's original local filename, byte size, and timestamp.
  • Retroactive share access. Change a share's password, expiry, or allow-list without revoking. The proxy re-checks the allow-list on every request — removing an email kicks them out immediately on their next click, not their next browser session.
  • Edit + preview without leaving the dashboard. Preview the doc as the recipient sees it before sending (short-lived HMAC token, no gate). Both "Preview document" and "Preview as you" open in a new tab so your dashboard stays where you left it.
  • Branded first-open email. When a recipient creates their first real session, HTMLRadar requests an HTML notification — viewer email + doc title + a single "See the read →" CTA back to the dashboard. Tease, not report.
  • Engaged-time, not tab-open time. Both per-section dwell and per-session active time apply a 5-second idle watchdog (keydown / scroll / touchstart, mousemove deliberately excluded). Same methodology as Chartbeat / Parse.ly engagement-time. A tab parked while the reader walked away stops counting after 5 seconds.
  • Bot / accidental-tap filter. After the document loads, HTMLRadar waits through a 5-second warm-up before creating the session. If the recipient backgrounds the tab or bounces during that wait, there is no session, notification request, or inflated viewer count.
  • Privacy-respecting. Recipient records contain an email when entered or a random browser ID, referrer, coarse device and location data, section dwell, scroll depth, and active time. HTMLRadar stores no raw IP address, keystrokes, mouse positions, DOM snapshots, or session replay. Recipients can opt out via window.HTMLRadar.optOut().

What it deliberately is not

A sender-side analytics tool for one document at a time. Not a CMS, deck builder, static-site host, PDF viewer, or website analytics platform. You bring the HTML.


Architecture

Five packages, two storage backends.

htmlradar/
├── packages/
│   ├── tracker/      # ~8 KB gzipped browser IIFE — embedded in the recipient's view
│   ├── proxy/        # Cloudflare Worker at htmlradar.page/r/{slug} — gates + HTML fetch + tracker inject + attachment serving
│   ├── app/          # Next.js 14 on Cloudflare Pages — sender's dashboard
│   ├── monitor/      # Cloudflare cron Worker — checks Supabase every 5 min and pages the founder on regressions
│   └── mcp/          # stdio MCP server — lets an agent publish HTML and read back who opened it
├── schema/           # Ordered idempotent SQL migrations — tables, RLS, SECURITY DEFINER RPCs, triggers
├── examples/         # Demo HTML for trying it locally
└── docs/             # Architecture, privacy, quickstart, self-hosting

Document HTML + attachment bytes live in Cloudflare R2. Everything else (sessions, sections, viewers, shares, attachments metadata, version history) lives in Supabase Postgres.

Recipient links live on a second domain, htmlradar.page, while the dashboard and the marketing site stay on htmlradar.com. A recipient document is HTML somebody else wrote, and serving it on the application's own domain would put a stranger's markup on the same origin as a signed-in session, and would let anyone who uploaded a convincing fake sign-in page have it served under our certificate and our reputation. A separate registrable domain removes both problems at once: the document's origin carries no application cookies, and if the content domain ever ends up on a phishing blocklist, the application domain does not. Links sent before the split still work — the worker answers htmlradar.com/r/… with a permanent redirect. Self-hosters choose their own two hosts, or run both roles on one; see docs/self-hosting.md.

The architecture decisions — why a Cloudflare Worker proxy, why hand-rolled PostgREST instead of @supabase/supabase-js, why per-session bearer tokens instead of HMAC, the engagement-time methodology, the retroactive allow-list — are in docs/architecture.md.

Stack

  • Frontend: Next.js 14 (App Router, Server Components), Tailwind CSS, Newsreader + Geist (self-hosted via next/font)
  • Backend: Supabase Postgres — RLS + SECURITY DEFINER RPCs + pg_net triggers for email
  • Proxy: Cloudflare Worker, HTMLRewriter for tracker injection
  • Storage: Cloudflare R2 for uploaded HTML
  • Auth: Supabase Auth (Google OAuth + magic-link)
  • Email: Resend, invoked from Postgres via pg_net
  • Payments: Polar.sh checkout link (Stripe Connect Express under the hood for Indian indie founders)

Core hosting runs on Cloudflare and Supabase. Resend is optional for notification email, and Polar handles billing for the hosted Pro plan.


Quick start — hosted

  1. Sign in at htmlradar.com with Google or magic link.
  2. Upload an HTML file or paste a URL.
  3. Create a per-recipient share. Email gate / password / expiry / allow-list optional per share.
  4. Send the tracked link.
  5. Watch the dashboard. HTMLRadar requests a first-read email when the recipient creates their first real session.

Free tier: 2 tracked links lifetime across unlimited documents, 20 attachments per doc up to 25 MB each and 100 MB total per doc. Pro tier ($15/month, or $150/year — two months free): unlimited tracked links, your own link names (htmlradar.page/r/acme-proposal rather than a generated one), no "Powered by HTMLRadar" footer on the recipient view, priority support. Coming soon on Pro: custom domain on share URLs, dynamic per-viewer watermark, repeat-open alerts. What's next is on the public roadmap.

Quick start — self-host

You'll need:

  • A Cloudflare account (Workers + R2 + Pages)
  • A Supabase project (free tier is enough)
  • A domain on Cloudflare DNS
  • Node ≥20, PNPM ≥10
  • A Resend account for outbound email (optional — without it, the first-read trigger writes a skipped row to notifications_log and the rest of the product still works)

Then:

git clone https://github.com/htmlradar/htmlradar
cd htmlradar
pnpm install
cp .env.example .env.local           # fill in keys (Supabase, R2, Resend)
pnpm typecheck && pnpm test          # sanity check
pnpm build                           # build app, tracker, mcp (the only packages with a build script)

Schema setup: apply every numbered SQL file directly under schema/, in order, 001 through 035, via the Supabase SQL editor — and nothing in schema/tests/. The files in schema/tests/ are destructive test programs for a scratch database (they create auth users and sample rows) and must never run against a real install. Each migration is idempotent (CREATE TABLE IF NOT EXISTS, CREATE OR REPLACE FUNCTION, DO $$ ... IF NOT EXISTS ... $$), so re-running is safe. The most recent migrations:

  • 030_notification_email_utm.sql — UTM parameters on the dashboard links inside notification emails.
  • 031_notify_email_tell_a_friend.sql — one "tell a friend" line in the first-read notification email.
  • 032_comped_accounts.sqlprofiles.comped for internal / lifetime-Pro accounts (never billed, exempt from the expiry sweep) plus column-level lockdown of profiles updates. Put your own addresses in its placeholder list before running it.
  • 033_custom_share_slug.sql — Pro customers may choose a tracked link's address; the rules are enforced in the database.
  • 034_api_keys.sqlapi_keys table (hash only) and the create_share_as RPC for the public API.
  • 035_api_rate_limits.sql — rate limits for the public API and a daily ceiling on API-key creation.

Resend secrets go in Supabase Vault (works on free tier — no ALTER DATABASE SET required):

select vault.create_secret('re_your_resend_api_key', 'resend_api_key');
select vault.create_secret('hello@yourdomain.com',  'resend_from');

Full guide with deployment commands in docs/self-hosting.md.


Use it from your agent

HTMLRadar ships an MCP server, so the agent that wrote the HTML can publish it as a tracked link — and ask, the next day, whether anyone read it.

Create an API key at htmlradar.com/settings under API keys, then export it, so the key never becomes a command-line argument that lands in your shell history:

export HTMLRADAR_API_KEY=hr_live_xxx

Claude Code

claude mcp add htmlradar -e HTMLRADAR_API_KEY=$HTMLRADAR_API_KEY -- npx -y htmlradar-mcp

Or install the plugin, which wires up the same server and adds a skill that knows when to offer a tracked link and when to stay quiet:

/plugin marketplace add htmlradar/htmlradar
/plugin install htmlradar@htmlradar

Cursor — put this in .cursor/mcp.json in your project, or ~/.cursor/mcp.json to make it global. Cursor expands ${env:NAME} inside env, which keeps the key out of a file you might commit:

{
  "mcpServers": {
    "htmlradar": {
      "command": "npx",
      "args": ["-y", "htmlradar-mcp"],
      "env": { "HTMLRADAR_API_KEY": "${env:HTMLRADAR_API_KEY}" }
    }
  }
}

There is a one-click Add to Cursor button on htmlradar.com/mcp. It installs the server with a placeholder key, which you then replace with your own.

Codex CLI

codex mcp add htmlradar --env HTMLRADAR_API_KEY=$HTMLRADAR_API_KEY -- npx -y htmlradar-mcp

Three tools: share_html, get_share_activity, whoami. Every option, the self-hosting variable and the privacy notes are in packages/mcp/README.md.

If you modify the source and run a network service from it, AGPL-3.0 requires you to make your modifications available. See LICENSE.


Development

pnpm dev                              # runs app, monitor, proxy, tracker in parallel (mcp has no dev script)
pnpm typecheck                        # tsc --noEmit across packages
pnpm lint                             # eslint + prettier
pnpm test                             # vitest across app + proxy + tracker + mcp

Local URLs after pnpm dev:

  • Web app: http://localhost:3000
  • Proxy worker: http://localhost:8787
  • Tracker bundle: packages/tracker/dist/tracker.js (after pnpm --filter @htmlradar/tracker build)

Tracker bundle size budget: ≤14 KB gzipped. Build will warn if you cross it.


Contributing

PRs welcome. DCO sign-off is required — just git commit -s. No CLA.

  • Big features: open an issue first to discuss scope.
  • Bug fixes + small improvements: PR directly.
  • Style is enforced by pnpm lint. CI runs the full suite on every push.

See CONTRIBUTING.md for the full guide.

Security

Found a vulnerability? Email security@htmlradar.com. Please don't open a public issue. See SECURITY.md for the disclosure policy.

License

AGPL-3.0-or-later. See LICENSE.

Want to run a hosted service from a closed-source modified version, or embed the tracker in a closed-source product? A commercial license is available — see COMMERCIAL-LICENSE.md, or email hello@htmlradar.com.


Engineering deep-dive: htmlradar.com/blog/how-we-built-htmlradar

Reviews

No reviews yet

Be the first to review this server!