Skip to main content
Glama
README.md
# mimet

**See why users drop off. Fix it in your editor.**

`mimet` captures fine-grained user behavior alongside live page copy, ranks recurring friction patterns by conversion impact, and brings evidence-backed UX hypotheses straight into **Cursor** and **Claude Code** via **Remote MCP**.

- **Website:** https://mimet.dev
- **Privacy & External Transmission Disclosure:** https://mimet.dev/privacy
- **Tracker v2 bundle:** `6.7 KB` gzipped (`v2/tracker.js`), zero external dependencies, `defer` loading, no CORS preflight
- **Optional User Voice widget:** `2.4 KB` gzipped (`v2/voice.js`), Shadow DOM, auto-linked to the visitor's session & block
- **Zero server-side LLMs (BYO-AI):** Your editor plan runs the inference and your source code stays local
- **Plans:** Free `$0 / month` (1 project, up to 3,000 sessions/mo, 14-day MCP lookback) · Pro `$29 / month` (up to 5 projects, 30,000 sessions/mo per project, full MCP lookback)

---

## Why mimet?

- **Traditional analytics (GA4, funnels)** flatten behavior into averages. A high bounce rate tells you *where* people left, never *which sentence* confused them or *which button* they hovered over before closing the tab.
- **Session replays and heatmaps** rarely survive a busy sprint. Even when you spot one awkward recording, you cannot tell whether it is an edge case or a recurring pattern hurting signups.

`mimet` bridges qualitative depth and quantitative priority inside your editor:

1. **Read every session in context:** Captures block-level exposure (`active_ms`, visibility %, scroll direction), scroll reversals, hover stalls, text selection/copy signals, tab-away duration, form friction, and optional 1-line user voices (`/v2/voice.js`) paired with a masked **Content Map** of the actual text on screen.
2. **Prioritize friction by business impact:** Aggregates **traffic sources**, **block-level funnels (converted vs. dropped comparison)**, **recurring behavior groups**, and **before/after release comparisons** so you fix high-impact UX friction first instead of chasing N=1 anecdotes.
3. **Ship UX improvements inside your editor:** Connect Remote MCP to Cursor or Claude Code, run the built-in `cro-audit` MCP prompt, verify exact copy in your local repo with `grep`, and draft targeted diffs.

---

## Quick Start (3 Steps)

Sign in with GitHub at https://mimet.dev/login to create a project, register your allowed origin, and copy your public write key (`pk_live_...`) and MCP API key (`mcp_sk_...`).

### 1. Add one script tag

```html
<script
  defer
  src="https://mimet.dev/v2/tracker.js"
  data-v="2"
  data-content="public"
  data-key="pk_live_YOUR_PUBLIC_KEY"
></script>
```

Optional: add the `2.4 KB` micro-feedback widget to capture user voices linked straight to each visitor's timeline:

```html
<script
  defer
  src="https://mimet.dev/v2/voice.js"
  data-key="pk_live_YOUR_PUBLIC_KEY"
></script>
```

- Use `data-content="public"` on public marketing pages.
- Omit `data-content` (or set `data-content="allowlist"`) on authenticated screens so only elements explicitly marked with `data-mt-content="allow"` are included in the Content Map.
- Mark conversion CTAs with `data-track-conversion="signup_cta"` and exclude floating widgets or non-content UI with `data-mt-ignore`.

### 2. Connect Remote MCP

Store your key in an environment variable (`MIMET_MCP_KEY`) and configure your AI editor:

**Cursor / `.mcp.json`:**

```json
{
  "mcpServers": {
    "mimet": {
      "type": "http",
      "url": "https://mimet.dev/api/mcp",
      "headers": {
        "Authorization": "Bearer ${MIMET_MCP_KEY}"
      }
    }
  }
}
```

**Claude Code CLI:**

```bash
claude mcp add --scope local --transport http mimet https://mimet.dev/api/mcp \
  --header "Authorization: Bearer $MIMET_MCP_KEY"
```

### 3. Audit inside your editor

Use the built-in **`cro-audit`** MCP prompt or ask Cursor / Claude Code:

```text
Check traffic sources, block-level funnel metrics (converted vs. dropped), and top drop-off groups on /pricing using mimet.
Inspect representative timelines and any linked user voices, verify the copy in this repo with grep, and propose UX changes to lift conversion.
```

---

## Remote MCP Reference

- **Endpoint:** `POST https://mimet.dev/api/mcp` (stateless Streamable HTTP, JSON responses)
- **Authentication:** `Authorization: Bearer mcp_sk_...`

### Built-in MCP Prompt

| Prompt | Description |
| :--- | :--- |
| `cro-audit` | Guided end-to-end CRO audit workflow that separates **Log facts**, **Code facts** (verified via local `grep`), and **Hypotheses**, isolates `untrusted_content`, and requires human approval before `save_insight`. |

### Included MCP Tools (9)

| Tool | Description |
| :--- | :--- |
| `list_traffic_sources` | Aggregate sessions, conversions, CVR, duration, and anomaly score by traffic source (`utm_source` > external referrer > `direct`). |
| `list_behavior_groups` | Rank recurring behavioral patterns by session share, conversion rate, and anomaly score (with optional `source` filter). |
| `get_block_metrics` | Per-block quantitative funnel: reach rate, `active_ms`, re-entry rate, scroll turns, exit rate, and **converted vs. dropped** comparison. |
| `compare_periods` | Compare before/after release windows (overall CVR + per-block metric deltas) with low-sample warnings. |
| `list_user_voices` | Read micro-feedback submissions from `/v2/voice.js` (isolated as `untrusted_content`) with linked `session_id` and `block_id`. |
| `get_longtail_sessions` | Inspect outlier / high-anomaly sessions that fall outside major behavior groups. |
| `get_session_story` | Read a specific session's behavioral story or millisecond-level `format: "timeline"` paired with its Content Map. |
| `list_insights` | List validated UX findings previously saved for the project so audits build on prior learnings. |
| `save_insight` | Save a confirmed finding (only after human approval) so future releases track resolved vs. recurring friction. |

---

## Privacy & Security

`mimet` is designed for production apps and strict security reviews:

- **Zero form input capture:** Never reads `.value`, `.defaultValue`, `FormData`, or browser `validationMessage` strings.
- **No cookies or `localStorage`:** Uses an ephemeral per-tab session ID with no cross-site tracking.
- **Automatic PII masking:** Email addresses, 10+ digit numbers, postal codes, and token-like strings are masked on the client before transmission and re-masked on the server.
- **Browser auto-translate guard:** Automatically skips Content Map and text extraction while browser auto-translation (`translated-ltr`/`translated-rtl` or changed `<html lang>`) is active so translated text never pollutes your Content Map.
- **Allowlist default behind login:** Authenticated screens default to `allowlist` mode.
- **Prompt-injection isolation:** Captured copy and user voices are stripped of invisible/bidi control characters, isolated as `untrusted_content`, and MCP workflows require local repository `grep` verification before proposing any code change.

See https://mimet.dev/privacy for the full Privacy Policy, external transmission disclosures, and ready-to-use disclosure templates for sites installing `mimet`.

---

## Repository Contents

```text
tracker/       Auditable, zero-dependency browser tracker (v1, v2) and voice widget source (MIT licensed)
server.json    Official MCP Registry manifest (io.github.capmasa/mimet)
LICENSE        MIT License (Powerhealth Inc.)
```

The hosted Remote MCP server and self-serve dashboard run at https://mimet.dev.

---

## Support & Feedback

- **Issues, feature requests, and privacy/deletion inquiries:** https://github.com/capmasa/mimet-public/issues
- **X:** https://x.com/Mimet_jp
- **Website:** https://mimet.dev
- **Privacy Policy:** https://mimet.dev/privacy
- **Terms of Service:** https://mimet.dev/terms
- **Legal Notice:** https://mimet.dev/legal

## License

MIT — Copyright (c) 2026 Powerhealth Inc. See [LICENSE](./LICENSE).