Skip to main content
Glama
Orbit MCP

Orbit MCP

README.md
# Orbit MCP

**A lifecycle marketer for Claude and Codex.** It checks every email in a real browser before you send it — the first thing it ever caught was its own brand colour, too faint to read — and turns the emails you already send into a design system.

**Free and open source (MIT). Runs locally.** No account, no licence key, no telemetry, no hosted server. Install it from a clone with Node 20+ ([steps](#install)). Your ESP and API keys stay on your machine and go only to the platforms you connect.

Orbit MCP is the free, open source server. **[Orbit](https://yourorbit.team?utm_source=github&utm_medium=readme&utm_campaign=orbit_mcp)** is the paid desktop app, a command centre for your AI agents. You don't need it to use Orbit MCP.

Orbit MCP gives Claude a senior lifecycle operator's playbook: 86 skills and 147 tools spanning email and MJML, render QA, segmentation maths, deliverability, brand voice, Figma import, Notion export, diagram generation, and the sending layer itself — Braze, Stripo, Klaviyo, Iterable and the rest. Ask Claude a lifecycle question and it answers like someone who has shipped the program, not like someone who has read about it.

Most "AI for marketing" tools hand you generic email advice. Orbit carries the production-tested mechanics generic reasoning doesn't have — what a real browser reveals that a linter cannot, the Liquid branch nobody test-rendered until it shipped blank, Gmail's clipping limit cutting an email off mid-template, the Braze Canvas QA checklist, the Stripo push trap that silently drops slot values. That's the difference between a draft you can ship and a draft you have to redo.

## Check it installed, in ten seconds

Install Orbit MCP for your app ([steps](#install)), then paste this into Claude or Codex:

> Run `orbit_check_setup` and tell me what's ready and what still needs a credential.

`orbit_check_setup` is the one thing a bug report always asks for. It lists which platform credentials are set and which tools are ready.

Then the thing Orbit is best at. Paste this:

> Run Orbit's render gate on this email and tell me what a real browser reveals that a linter can't:
> `<html><body style="margin:0"><table width="100%"><tr><td style="padding:24px;font-family:Arial"><h1 style="font-size:28px;margin:0 0 12px">Your trial ends Friday</h1><p style="color:#8a8a8a;font-size:14px">Pick a plan and keep your automations running.</p><a href="#" style="display:inline-block;padding:9px 14px;background:#6366F1;color:#fff;text-decoration:none;border-radius:6px;font-size:13px">Choose a plan</a></td></tr></table></body></html>`

Orbit renders it at 640px and 390px in a real engine and measures what only a render reveals: single-word last lines, CTA rows that wrap, tap targets under 44px, computed contrast, byte size against Gmail's clipping limit. That grey paragraph fails contrast and that button is under the 44px tap minimum — neither is visible in the source.

![The Orbit render gate: the email on the left at 640px, findings on the right — four contrast failures with their measured ratios, a widow, and three tap targets under 44px](docs/images/render-gate.png)

Those are the real findings from the snippet above. Note the second one: `4.47:1 — #ffffff on #6366f1 at 13px`. That is Orbit's own brand indigo, missing AA by three hundredths. The gate does not make exceptions for the people who wrote it.

Then try `orbit_sample_size`, `orbit_rfm_score`, `orbit_qa_email`, or ask Claude to "load Orbit's winback playbook." Or read the shelf it came with — "list Orbit's guides, then read me the one on dunning" pulls from 99 long-form practitioner guides bundled inside the extension, offline, with nothing to log into.

## Build your own lifecycle brain

Orbit's flagship path isn't writing one email. It's giving the programme somewhere to live.

`orbit_bootstrap_brain` scaffolds a git repo — operating rules, conventions, a folder per lifecycle stage — as the single source of truth for your programme. `orbit_learn_email_template` or `orbit_import_design` takes an email you already send (HTML, Figma, PDF) and turns it into a module catalogue plus brand tokens: a design system derived from your real email, not a vendor's template gallery. `orbit_generate_brain_gate` writes the pre-send gate, parameterised to your byte limits and templating branches — the difference between a design system and a folder of files. `orbit_scaffold_brain_program` frames a PRD stub — the one-page spec — for each programme, so AI drafts never build unreviewed.

Most lifecycle work rots for two reasons: the knowledge lives in one person's head, and the templates drift inside the ESP — the platform that actually sends. The repo is the source. The ESP is a derived output.

`orbit_bootstrap_brain` on a fresh path produces exactly this — 14 files, no placeholders:

```
README.md              # the four rules: git canonical, graph derived,
CONVENTIONS.md         # comprehension != enforcement, ESP derived
knowledge/
  decisions-log.md     # every standing ruling, dated
  workflow-learnings.md
  verified-claims.md   # figures with receipts, or they don't ship
programs/
  onboarding/  engagement/  retention/
templates/  build/  assets/  reviews/  reference/
```

## What you get with no platform credentials at all

Roughly two-thirds of the tool surface needs nothing at all — no Braze account, no ESP, nothing to connect:

- **A render gate and a review gallery.** Interactive MCP App widgets that render creatives at the size they ship at, with per-item approve / needs-changes verdicts. Every review also writes a standalone HTML file you can hand to a stakeholder who has no Orbit — it works on its own.
  ![The Orbit review gallery: a rail of creatives grouped by lifecycle stage, an email rendered on a light stage, and approve / needs-changes / pending controls with a notes field](docs/images/review-gallery.png)
- **Your own email, as each client actually assembles it.** Side by side: the document you authored against the one Gmail builds after its sanitizer has been through it, with the style blocks it dropped and the measured height delta. Each pane says whether it is a real render or the baseline with a condition named but untested — it never shows you a picture of something nobody measured.
- **Calculators that draw.** Cohort retention comes back as the curve and the triangle, with periods a cohort has not lived through drawn as no-data rather than as zero. Plus sample size, significance, RFM, LTV/payback, replenishment, growth forecasting.
- **Your design system, on one sheet.** Paste an email you already send and Orbit reads back the module spine, the palette, a type-and-button specimen drawn with your own tokens, and the WCAG contrast of the four pairs that actually meet on the page.
- **QA and compliance lint** — accessibility (WCAG AA), dark-mode, Gmail clipping, GDPR consent, unsubscribe-page audits against the Gmail/Yahoo bulk-sender rules.
- **The MJML build pipeline** — component-first generation, compile, preview.
- **The skill library** — 86 protocols Claude loads and follows, on lifecycle design, deliverability, Braze mechanics, Stripo mechanics, experimentation, copy, and brand.
- **Lifecycle reporting from your own numbers** — step performance, a step against its own history, variants, trends, channel mix and a local HTML report. Supply rows directly, or pull them with your own ESP key. Reads only; reports and snapshots stay in your output folder. Method and per-metric matrix: [docs/LIFECYCLE-REPORTING.md](docs/LIFECYCLE-REPORTING.md).
  - **Partial:** Braze Canvas, Customer.io, Mailchimp, Iterable and Salesforce Marketing Cloud. Braze Canvas reads several email step fields that the public docs do not list. Iterable matches metric names that are not documented. Salesforce returns journey entries and goal counts only, with no sends, opens or clicks.
  - **Unverified:** Salesforce and Iterable throughout, and those Braze Canvas step fields. Tests use synthetic responses; no adapter has been run against a live account.
- **A 196,000-word practitioner library, offline.** 99 long-form practitioner guides ship inside the extension as MCP resources — welcome series, dunning, win-back, deliverability, Liquid, segmentation, experiment design. Claude reads and cites them directly, with no network call and nothing to log into. Ask it to "read Orbit's guide on dunning" and it has the whole thing. A ten-course reading path indexes them by level; the courses themselves are slugs and links, so the lessons open on the site.

## What needs a credential

The remaining tools talk to a third-party platform on your behalf, so they need that platform's own API credentials — yours, not Orbit's. All optional; skip whichever you don't use.

- **Braze** — REST API key + endpoint, to publish templates, read Canvases/campaigns, pull performance data.
- **Stripo** — REST API token (+ plugin credentials for the compose/push flow), to sync modules and export emails.
- **Figma** — API token, to import email designs.
- **Google AI (Gemini)** — API key, for on-brand header image generation.
- **Iterable / Klaviyo / Mailchimp / Customer.io / SFMC** — that platform's API key, for the generic `orbit_esp_*` tools.

Orbit degrades cleanly and tells you what's missing when a tool needs a credential you haven't set.

## Install

There is no packaged release yet, so Orbit installs from a clone. You need Git and Node 20+.

<!-- RELEASE: when a GitHub Release exists, add the download steps here and drop the line above. -->

```bash
git clone https://github.com/justinwilliames/orbit-mcp.git
cd orbit-mcp
npm ci
```

Platform credentials — Braze, Stripo, Figma, Klaviyo and the rest — are optional and stay local to your machine. After any install, ask **Check my Orbit setup.**

### Claude Code

From the `orbit-mcp` folder:

```bash
claude mcp add --scope user orbit -- node "$PWD/server/index.js"
```

Start a new session. To update, run `git pull && npm ci`.

### Claude Desktop

Quickest route: add this to `claude_desktop_config.json` (Settings → Developer → Edit Config), with the full path to your clone, then restart Claude Desktop.

```json
{ "mcpServers": { "orbit": { "command": "node", "args": ["/full/path/to/orbit-mcp/server/index.js"] } } }
```

Or build the extension and double-click the file it makes. The build runs the whole test suite, so allow about ten minutes:

```bash
npm run pack        # makes orbit-lifecycle-marketing-system-for-claude.mcpb
```

### Codex

```bash
npm run pack:codex  # makes the installer in .codex-build; also runs the test suite
bash .codex-build/install.sh        # Windows: .\.codex-build\install.ps1
```

Restart the ChatGPT desktop app and open a new Codex task. The installer puts the plugin in `~/plugins/orbit` and registers it in your personal Codex marketplace. Optional platform credentials go in `~/.orbit/config.json` as `ORBIT_*` keys.

## The companion app

Orbit MCP runs fully inside Claude and Codex. **[Orbit](https://yourorbit.team?utm_source=github&utm_medium=readme&utm_campaign=orbit_mcp)** is the paid desktop app. The practitioner guides bundled here are also published on the site, at [yourorbit.team/guides](https://yourorbit.team/guides?utm_source=github&utm_medium=readme&utm_campaign=orbit_mcp).

## What Orbit sends home

Nothing. There is no telemetry and no licence check. The only call Orbit can make on its own behalf is an optional update check against the public GitHub Releases API. It is off by default; tick **Check for Orbit updates on startup** or set `ORBIT_UPDATE_CHECK=1` to turn it on. Every other request goes to a platform you configured, with your own credentials. Full detail in [PRIVACY.md](PRIVACY.md).

## Licence

MIT — see [LICENSE](LICENSE) and [third-party notices](THIRD_PARTY_NOTICES.md). Free to use, modify and redistribute.

## Something broken?

Turn on the trace log — Claude Desktop → **Settings → Extensions → Orbit**
→ tick **Debug trace log** (or set `ORBIT_DEBUG_TRACE=1`), restart, and
reproduce. One JSON line per tool call lands in
`~/Orbit/logs/orbit-trace.jsonl`: tool, duration, outcome, response size,
and a *hash* of the arguments — never the arguments themselves, never your
content, never a credential. Safe to paste into an issue as-is.

Then [open a bug report](https://github.com/justinwilliames/orbit-mcp/issues/new/choose).
The template asks for the version, the host app, `orbit_check_setup`, and
that trace line. Orbit runs locally against accounts nobody else can see,
so those four things are the difference between a fix and a guessing game.
More detail in [docs/SETUP.md](docs/SETUP.md#when-something-is-actually-broken).

Anything else: [yourorbit.team](https://yourorbit.team?utm_source=github&utm_medium=readme&utm_campaign=orbit_mcp).