Claude, ChatGPT & MCP Plugin
Connect Claude, ChatGPT, Codex, and Cursor to Shaw via OAuth 2.1 MCP with Template Code Library pulls, Brand Kit sync, and direct Klaviyo email import.
Shaw exposes a stateless, authenticated Streamable HTTP MCP server at
https://shaw.ai/mcp alongside a redistributable plugin/ directory
(shaw.ai/plugin) for Claude Code and Codex. Every MCP
request runs inside your active Shaw organization and enforces OAuth 2.1 + PKCE
scopes, workspace roles, and credit limits.
Connect your AI client
Authorize once via OAuth 2.1 on Shaw Connect
(default scopes: org:read, pages:read, pages:write, connectors:read), or
pass a scoped personal API key (Authorization: Bearer sk_...) in headless
clients.
Open Connectors in Claude
In Claude.ai or Claude Desktop, go to Settings → Connectors → Add custom connector.
Enter the Shaw MCP endpoint
Paste https://shaw.ai/mcp as the remote MCP server URL and choose Add.
Approve workspace scopes on Shaw Connect
Complete the browser OAuth 2.1 flow at https://shaw.ai/app/connect and
confirm your workspace permissions.
Verify your connection
Ask Claude to check your workspace balance and search the catalog—for
example: "Check my Shaw credits and find skincare landing pages."
End-to-end agent workflow
Shaw agents follow a predictable four-step flow that inspects credit headroom and per-page template size for free before committing credits:
- Check credit balance & unlocks (
get_credits_balance). Read the active organization's plan (free,pro, oroperator),monthlyRemainingCredits,packCreditsRemaining, totalremainingCredits, and permanently unlocked template pages (unlockedTemplates). - Search the catalog (
search_templates). Filter byq,channel(websites,emails,apps,ads),category, orbrandat0credit cost. - Inspect per-page credit cost (
get_template). ReadcodeMetrics(credits,fileCount),pages, anddnafor candidatetpl_...IDs (with optionalpath) before asking the user to spend credits. Emails start at2,500credits minimum, and website/app pages cost5,000to15,000credits per page. - Unlock with explicit confirmation (
use_templateorpublish_template_to_klaviyo). Passconfirmed: trueand a concisereasonto unlock the page's HTML and linked CSS bundle—or import an email template directly into Klaviyo. Once unlocked, reusing that(templateSlug, pagePath)across future template versions costs0extra credits forever (lifetime updates).
When a page requires more credits than remainingCredits (and opt-in Auto
Top-Up is off, lacks a saved payment method, or has reached its monthly dollar
cap), Shaw returns status
402Payment Required (INSUFFICIENT_CREDITS,
"You need more credits") with an upgradeUrl to
shaw.ai/app/account. Do not retry automatically.
{
"status": 200,
"body": {
"ok": true,
"data": {
"organizationId": "org_01j9x2m4p7q8w2ab",
"plan": "free",
"periodKey": "2026-11",
"planCredits": 5000,
"monthlyUsedCredits": 0,
"monthlyRemainingCredits": 5000,
"packCreditsRemaining": 0,
"usedCredits": 0,
"remainingCredits": 5000,
"locPerCredit": 1,
"approxRemainingLoc": 5000,
"unlockedTemplates": [],
"packs": [],
"upgradeUrl": "https://shaw.ai/app/account"
}
}
}Tool domains & API endpoints
Tools register dynamically based on the scopes approved for your OAuth grant or
API key. Tools that mutate workspace state or spend credits require
confirmed: true and a reason string.
| Domain | MCP tools | Required scopes |
|---|---|---|
| Organization & Credits | get_me, get_credits_balance | org:read |
| Template Code Library | search_templates, get_template, list_brands, get_template_notes, use_template (confirmed: true) | pages:read |
| Brand Kit | get_brand_kit, update_brand_kit, import_brand_kit | pages:read, pages:write |
| Klaviyo Email Import | publish_template_to_klaviyo (confirmed: true) | pages:write |
/api/creditsRead the active workspace billing plan, monthly and pack credits remaining, and permanently unlocked template pages.
/api/templates/searchSearch catalog metadata and pre-flight credit costs without consuming credits.
/api/templates/usePermanently unlock one template page using credits (0 credits once unlocked)
and return HTML plus linked stylesheets.
/api/email-studio/klaviyo/publish-templateImport a library email template directly into Klaviyo as a reusable CODE
template or draft campaign (spends email credits on first unlock, 0 once
unlocked, no Pro subscription required).
Edge-locked archive restrictions
Raw browser-only archive and preview capability routes
(/api/templates/zip/*, /api/templates/ticket,
/api/templates/remixes/*/view, and /api/builder/pages/export) are
session-only and always return HTTP 403 (bearer_not_allowed) to MCP
and API-key clients. Remix creation endpoints (/api/templates/remixes/*) are
hidden from MCP; inspect metadata via get_template, extract metered page
code via use_template, and import library emails directly to Klaviyo via
publish_template_to_klaviyo.
If your account belongs to multiple Shaw organizations, pass the optional
tenant parameter on any MCP tool call (or set the X-Shaw-Tenant header on
HTTP requests) to target a specific workspace. See
Monthly credits for full metering rules and
Authentication & API keys for scope and token
details.
Publisher API quickstart
Create a scoped Shaw API key, inspect your workspace and monthly credits, search templates across languages, and compare Workspace vs. Docs MCP.
Monthly credits
Learn how Shaw meters template pages in credits, grants lifetime updates per unlocked page, supports Auto Top-Up, and handles 402 errors.