Truvek Design MCP
This server has a remotely hosted endpoint. Open its connector listing for connection details, authentication requirements, and setup instructions:
Truvek Design MCP
Agent-first email design and QA for CRMs built with Claude Code, Cursor, Lovable, Bolt and similar tools.
An agent sees a competitor's email screenshot, a Figma frame or a brief. Truvek gives it a typed layout schema, a tested module library, an ESP-aware compiler and a linter that explains every finding. The output is HTML that holds up in Outlook, Gmail, Apple Mail, mobile and dark mode, plus the sending plumbing that home-built CRMs usually miss.
Part of the Truvek suite: Comply checks email and SMS copy against spam and privacy law before sending. Design (this package) makes the HTML hold up in every inbox. Telltide (post-send monitoring) is coming.
Why agents should call this instead of writing HTML
Models write email that looks right in a browser and breaks in inboxes. The failures are predictable and Truvek catches all of them:
What code tools generate | What happens | What Truvek does |
Flexbox, grid, divs | Outlook for Windows (Word engine) collapses the layout | Tables, ghost tables, hybrid columns |
Padded | Outlook flattens them to thin links | VML + HTML bulletproof buttons |
SVG icons, | Gmail and Outlook drop them | Refuses at compile, flags at lint |
| Visible in the inbox | Lint errors with line numbers |
| "Hi ," | Fallbacks per ESP dialect |
Raw customer data in template literals | HTML injection in email |
|
localhost, Vercel preview and relative links | Broken for every recipient | Lint errors |
No List-Unsubscribe headers | Gmail and Yahoo bulk sender failures |
|
HTML over 102 KB | Gmail clips the footer and unsubscribe | Size budget and warnings |
No dark mode | Dark text on dark backgrounds | Remapped neutrals, brand bands kept |
Everything is deterministic and versioned (ruleset_version), so results are reproducible and auditable.
Related MCP server: Maket
Tools
Tool | Purpose |
| Procedural guides: screenshot-to-layout, outlook, gmail, dark-mode, accessibility, sending-from-your-app, why-truvek |
| Layout JSON Schema, module catalogue, dialects, worked example |
| Colours, font stack and logo candidates from the user's own site (SSRF-guarded) |
| Layout to HTML + plain text (+ TypeScript |
| 51 rules with rule id, line, affected clients, why and fix. |
| Safe mechanical fixes, returns what still needs judgement |
| Full reasoning and examples for any rule |
| Headers, RFC 8058 one-click unsubscribe endpoint and send code for Resend, SES, Postmark, SendGrid, Nodemailer, Mailgun |
Dialects
app (your own code sends: Resend, SES, Postmark, Nodemailer), handlebars (SendGrid, Mailgun), sfmc (AMPscript), braze (Liquid), klaviyo, shopify. Unsubscribe and merge syntax were checked against vendor docs on 28 Nov 2026 and each dialect returns its verified source.
Agent loop
design_get_guide("screenshot-to-layout")
design_get_schema
design_extract_brand(user's own site) # optional
design_compile(layout, dialect) # repeat until verdict is not "block"
comply_check_message(subject, body, consent) # Truvek Comply
deliver_send_requirements(provider) # if the app sends its own mailOne connection gives the agent every Truvek tool, Design and Comply:
claude mcp add --transport http truvek https://truvek.io/mcpDesign on its own stays at https://design.truvek.io/mcp, and Comply on its own at https://truvek.io/comply/mcp (where its tools have no comply_ prefix). The full reference is at truvek.io/tools, and truvek.io/llms.txt has the same for agents.
For existing HTML: design_lint then design_autofix, fix what is left, then design_lint stage=rendered on a sample render.
Response format
Every tool, in Design and in Comply, returns the same fields first:
{
"verdict": "block",
"findings": [
{ "rule": "css-flex-grid", "title": "Flexbox or CSS grid layout", "scope": "outlook", "line": 12, "fix": "Use role=\"presentation\" tables..." }
],
"next_tool": "design_autofix"
}verdict:pass,review(warnings only) orblock(errors) for checks,infofor reference tools.findings:rule,title,scope(the rule's category, such asoutlookoraccessibility),line(first line in the HTML, ornull),fix, then the detail (severity,why,affects,evidence).next_tool: the tool to call next, ornullat the end of the loop. When it is on another Truvek server,next_tool_servergives that server's MCP URL. On the combined endpoint every tool is on one server, so names use its prefixes andnext_tool_serveris left out.
design_compile keeps the lint summary under lint (pass, counts, summary); its findings are in the top-level list. next_step keeps a plain-language version of the same advice.
Run
npm install
npm run build
npm test
# Local (Claude Code / Claude Desktop): stdio
claude mcp add truvek-design -- node /path/to/dist/stdio.js
# Remote (Streamable HTTP, POST /mcp)
cp .env.example .env # set TRUVEK_API_KEYS to require bearer auth
npm run start:httpSecurity
Follows the Truvek baseline for anything built with Claude Code:
No secrets in code or committed files.
.envand local agent files are gitignored; keys come from environment variables only.API keys are compared as SHA-256 hashes in constant time. Open mode (no keys set) and keyed mode both default to 120 requests a minute per IP or key (
RATE_LIMIT_PER_MIN), matching Truvek Comply.Per-key or per-IP rate limiting on
/mcp, 2 MB body cap.design_extract_brandfetches https only, refuses private and reserved IP ranges (including cloud metadata), re-validates every redirect, and caps size and time. Every address is checked again inside the socket's own DNS lookup (undici dispatcher), so DNS rebinding cannot swap in a private IP after the first check.Compiled copy is escaped; links must be absolute https, mailto, tel or merge fields; the generated
render()escapes values, percent-encodes values inside URLs and validates link schemes.
Layout
src/
schema.ts layout + brand schema (zod)
modules.ts bulletproof module library
compile.ts document shell, dark mode, plain text, render() generator
dialects.ts ESP merge and unsubscribe syntax
lint/rules.ts ruleset with reasoning
lint/index.ts linter
autofix.ts safe mechanical fixes
deliver.ts headers, one-click unsubscribe, provider code
brand.ts brand extraction with SSRF guard
knowledge.ts agent guides
server.ts MCP tool registration
stdio.ts, http.ts
examples/ sample layout traced from a promo screenshot
test/ vitest suite (compile, render, lint, autofix, protocol, SSRF)Licence
MIT. See LICENSE. Truvek Comply is MIT too.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Build responsive HTML email campaigns from any brand website: design, QA, export.
Design on-brand emails with your AI, preview them in chat, and send through server-side guardrails.
Analyze, audit, fix and diff HTML, MJML, Maizzle and React Email across 21 email clients.
Visual email & layout builder that turns AI assistants into a Temway authoring studio.
Related MCP Servers
AlicenseNot gradedqualityFmaintenanceLet your AI assistant design beautiful emails & layouts — in your Temway workspace. It turns Claude, ChatGPT, Cursor and friends into a visual email & layout authoring studio.1MIT- AlicenseAqualityBmaintenanceLocal-first visual design workspace for AI assistants. Compose wireframes and branded multi-page HTML/CSS documents with live preview, annotations, brand and asset libraries, typed data collections, layout validation, PDF export, and draft-only Gmail handoff.1621MIT
- AlicenseNot gradedqualityDmaintenanceEnables MCP-compatible agents to analyze a brand website, build a custom email design system, assemble responsive HTML campaigns, QA rendering, and export production-ready email.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to build and edit real HTML/CSS designs on a live canvas through 35 MCP tools, letting them inspect screenshots, computed styles and layout, then export production-ready React or Tailwind code. Humans can refine the same layers visually in a macOS editor.6,734 npmMIT