One VM that runs a small MSP's entire marketing operation. It holds your context – messaging, services, price book, brand, ICP – and the connectors to every marketing surface: the website it generates, HubSpot, Google, email, and your chat assistant. Your team does marketing by talking to Claude, ChatGPT, or a coding agent; the Brain's MCP server supplies the context and the tools, and a web UI on the same VM configures and manages everything.
Claude / ChatGPT / Claude Code / Codex
│ (MCP, personal token)
▼
┌─────────────────────────────────────────────┐
│ brain (Fastify) │
│ /mcp MCP tools /api REST │
│ /app web UI (SPA) /forms public │
│ pg-boss jobs: content · nurture · digest │
│ context store · approvals · audit log │
├──────────────┬──────────────┬───────────────┤
│ site builder │ asset engine │ connectors │
│ (Astro core) │ docx/pptx/pdf│ Google·HubSpot│
└──────┬───────┴──────┬───────┴───────┬───────┘
▼ ▼ ▼
firebase/cloudflare Drive Gmail/Calendar
/github pages uploads HubSpot CRM
┌──────────┐ ┌───────┐
│ postgres │ │ caddy │ ← TLS, ports 80/443
└──────────┘ └───────┘
Set up (≈60 minutes to live). install.sh on a VM → first-run admin at /setup → add LLM keys and connectors → add the MCP server to your chat client → "run the wizard" → approve the proposed context → generate the design (one revision round, gated by an automated design critique) → generate the site → deploy. Details: docs/getting-started.md.
Operate (weekly, ≈5 minutes). Monday digest email → "what needs my approval?" in chat → review the posts, blog, plan actions, and any context changes → approve → the Brain executes: publishes content into the site, sends sequence emails, syncs the CRM, generates assets on request. The web UI is there for deeper edits any time. Details: docs/marketing.md.
curl -fsSL https://raw.githubusercontent.com/gaidar/msp-marketing/main/installer/install.sh | bashVM sizing and cloud specifics: installer/gce-quickstart.md.
| Guide | What it covers |
|---|---|
| getting-started.md | Install walkthrough and the 60-minutes-to-live checklist |
| deployment.md | Full deployment reference: env vars, hosting targets, upgrades, backups |
| testing.md | Running and testing the Brain locally, smoke tests, live-LLM runs |
| connect-your-chat.md | Adding the MCP server to Claude, ChatGPT, Claude Code, Codex |
| website.md | Design generation, publishing, DNS, city-page rules |
| marketing.md | The weekly ritual, approvals, content, sequences, leads, assets |
| context.md | What the context store holds, versioning, approvals, honesty rules |
| users.md | Roles, adding users, personal tokens |
| operations.md | Health, backups, upgrades, cost, troubleshooting |
| beyond-the-site.md | GBP, reviews, NAP – what the Brain cannot do for you |
| roadmap.md | What is planned and what is deliberately not being built |
pnpm install
pnpm test # vitest, runs against in-process PGlite – no Docker needed
pnpm seed:mock # builds the fictional "Northline IT" example into examples/mock-msp
pnpm dev # brain (:8080) + ui dev server (:5173)
pnpm build # ui → brain/public/app, brain → dist, template check build
docker compose up # full stack: brain + postgres + caddy
scripts/smoke.sh # end-to-end smoke against the compose stackFull local setup, the .env the stack needs, the smoke test's requirements, live-LLM
testing, and a troubleshooting table: docs/testing.md.
Complete VM and website-hosting deployment reference: docs/deployment.md.
- AC-1 Clean VM → live site + queued campaign in ≤60 minutes following the quickstart.
- AC-2 Wizard completes from Claude and ChatGPT (MCP), and from Claude Code / Codex (skills/AGENTS.md).
- AC-3 Website form → lead → sequence email → HubSpot contact visible.
- AC-4 All four asset kinds generate in docx, pptx, and pdf with correct branding.
- AC-5 Weekly digest is approvable end-to-end with zero terminal access.
- AC-6 Infra cost ≤ $20 per 30 days on the default GCE deployment.
- Lighthouse ≥90 performance/SEO/accessibility on the mock site's home page.
The example MSP in this repo – Northline IT (examples/mock-msp) – is entirely fictional, and the system is built to never invent facts: no fabricated clients, reviews, statistics, or testimonials anywhere in generated output. See docs/context.md for why that is enforced structurally.