Developers

MCP server

Connect Claude, ChatGPT, Cursor or any MCP client to Flowzio by signing in, then ask it to plan, write, test, publish and report on your email marketing.

Flowzio's MCP server lets an AI assistant work in your account: https://flowzio.ai/api/mcp. Ask it in plain words ("how did last week go?", "draft a spring sale for our best customers", "set up an abandoned checkout flow") and it reads, drafts, tests and, when you say so, sends.

Connect Claude or ChatGPT

No key to copy: you sign in and choose what the app may do.

  1. Add a custom connector with the address https://flowzio.ai/api/mcp:
    • Claude (web and desktop): Settings > Connectors > Add custom connector.
    • ChatGPT: Settings > Apps and connectors > Advanced settings, turn on developer mode, then Create.
  2. Choose Connect. A Flowzio page opens: sign in, pick the brand, and choose Read and make changes or Read only.
  3. Choose Allow. You are back in the app, connected.

No Flowzio account yet? Create one first, then choose Connect in the app again.

Only the account owner or a manager of the brand can connect an app. The connection renews itself; it shows in Settings > API keys as a connected app, and Disconnect there cuts it off at once. It also ends when the person who connected it is removed from the team or the brand, made a viewer or disabled (at once), and when they change their password or two-step verification (within the hour), the same as their sign-ins.

Connect with a key

For Claude Code, Cursor, Codex and your own code. In Settings > API keys, generate a key with the use AI assistant: read, write and manage (or read only). Copy it; it is shown once.

# Claude Code
claude mcp add --transport http flowzio https://flowzio.ai/api/mcp \
  --header "Authorization: Bearer flz_YOUR_KEY"
{ "mcpServers": { "flowzio": {
  "url": "https://flowzio.ai/api/mcp",
  "headers": { "Authorization": "Bearer flz_YOUR_KEY" } } } }
# Codex CLI: ~/.codex/config.toml, with the key in an environment variable
[mcp_servers.flowzio]
url = "https://flowzio.ai/api/mcp"
bearer_token_env_var = "FLOWZIO_API_KEY"

For clients that require a local process:

{ "mcpServers": { "flowzio": { "command": "npx",
  "args": ["-y", "mcp-remote", "https://flowzio.ai/api/mcp",
           "--header", "Authorization: Bearer flz_YOUR_KEY"] } } }

Clients that support sign-in (Claude Code and Cursor do) can also connect with just the address and sign in the same way as Claude and ChatGPT.

Starting points

The server offers ready-made prompts. Claude shows them in the attachment menu, other clients as slash commands:

PromptWhat it does
Weekly reviewHow the week went, what earned, what slipped, and the three things worth doing next. Changes nothing
Plan and draft a campaignFrom a goal to a reviewed draft and a test in your inbox. Scheduled only on your yes
Set up the automations that earnFinds the missing flows, creates them, tests their emails, publishes the ones you approve
Grow the email listA website signup form and a landing page, written for the brand, ready to publish
Win back lapsed customersSizes the customers who stopped buying and drafts a campaign for them

What it can do

AreaReadChange (manage scope)
Accountbrand_overview, revenue_summary, knowledge_brief
Insightsanalyze, ask_numbers, latest_brief
Campaignslist_campaigns, get_campaign, campaign_readiness, list_email_templatescreate_campaign, update_campaign, send_campaign_test, duplicate_campaign, delete_campaign, schedule_campaign, control_campaign
Flowslist_flows, get_flow, get_flow_email, list_flow_recipescreate_flow, edit_flow_email, ai_edit_flow_email, update_flow, send_flow_email_test, publish_flow, set_flow_status
Formslist_forms, get_form, list_form_templatescreate_form, update_form, set_form_status
Landing pageslist_landing_pages, get_landing_page, list_landing_templatescreate_landing_page, update_landing_page, control_landing_page
Contactssearch_contacts, get_contactupsert_contact, unsubscribe_contact
Segmentslist_segments, count_segmentcreate_segment, update_segment, delete_segment
Storelist_productstrack_event, upsert_products (events:write scope)

Each tool describes its own arguments to the client. Two resources are there too: flowzio://brand/knowledge, the brief Flowzio's own AI writes from, and flowzio://docs/<page> for every page of these docs.

Edit a flow email block by block

get_flow lists a flow's steps; each email step has an id. get_flow_email returns that email's subject, preview text, and every block with its index, plus a revision. Pass variant: "B" for the second version of an A/B test.

edit_flow_email changes the draft of that email without resending the rest. Send the revision you read, and a list of edits, applied in order:

EditWhat it does
{ "op": "update", "index": 2, "fields": { "text": "New words" } }Changes fields on one block. null removes a field; the block type stays
{ "op": "replace", "index": 2, "block": { "type": "button", ... } }Swaps in a whole block
{ "op": "insert", "index": 0, "block": { ... } }Adds a block at that position; the block count appends
{ "op": "remove", "index": 3 }Removes a block
{ "op": "move", "index": 3, "to": 0 }Moves a block

Colour fields (bg, color, textColor, buttonColor, buttonTextColor, cardBg and the like) take a hex colour such as #4D513C; 4D513C is stored as #4D513C, null or an empty value means automatic, and anything else, such as rgb(...) or olive, is refused with the field named. Each index counts the blocks as the edits before it left them. subject and previewText can change in the same call. An edit is refused if the flow changed since you read it; read it again and retry. An editor that was open during the edit asks you to reload before it saves anything, so the edit isn't undone. Reload it to see the change.

Edits save to the draft. A published flow keeps sending its published version until the draft is published, with publish_flow or Publish in the editor.

Change a flow email in words

ai_edit_flow_email makes one change the way the email studio's chat does: describe it, and Flowzio's own AI makes it on the draft, changing only what the words are about. { "flowId": "...", "nodeId": "...", "revision": "...", "instruction": "Make the FINISH UP button blue" }. Add index from get_flow_email when the change is about one block. It knows the brand's products and pictures, keeps contrast readable, and recolours a button drawn into a picture in the picture. Make one change per call. When it can't make the change, it says why and saves nothing. It uses the account's AI credits, like the studio.

Send a test of a flow email

send_flow_email_test sends one email step, from the saved draft, to up to five inboxes: { "flowId": "...", "nodeId": "...", "to": ["[email protected]"] }. The subject starts with [TEST], the sender is the step's or the brand's, and links are tracked. Pass variant: "B" for the B version of an A/B test.

sample fills what a contact and trigger would: firstName, lastName, email, checkoutUrl, orderUrl, and products as [{ "name": "Trail Mug", "price": 24 }]. Blank values show the email's fallbacks; with no products, a Cart items block shows two sample products labelled as a sample, as the preview does.

The flow isn't published, activated, or entered, and nobody is enrolled. It needs the manage scope. From your own code, call it as a tool through POST /api/mcp with the same key.

Guardrails

  • One brand per connection. Nothing outside the brand you picked (or the key's brand) exists to the server.
  • The app's own checks. Every change goes through the same checks as the screen that makes it: a flow is published with the editor's review (every step valid, every email read, your mailing address set), a landing page only when it is complete, a form only when the builder can read it.
  • Sending is deliberate. A campaign sends only through schedule_campaign, after the launch review (campaign_readiness), and no sooner than two minutes ahead, so there is always a moment to cancel. There is no send-now. A test goes only to the addresses given.
  • It asks first. Publishing a flow and deleting anything are marked as actions to confirm, so Claude and other clients ask you before they run. The assistant is told to draft and test first, and to ask before anything reaches customers.
  • Sent things stay. A sent campaign can be copied but not deleted; a segment a campaign or flow uses can't be deleted; a live landing page is paused before it can go.
  • Events are events. track_event does what POST /api/track does, flows included; pass historical: true for anything that already happened.
  • Scopes. read for looking, manage for changing, events:write for store data. A key with only events:write (a store's key) can record events and read nothing. Disconnect an app, or rotate or revoke a key, in Settings to cut the assistant off at once.
  • The API limits apply: 3,000 calls a minute per key.

If something is off

  • The connect page says it can't be used: start connecting again from the app. If it keeps happening, remove Flowzio there and add it again.
  • "Only the account owner or a manager of a brand can connect an app": ask the account owner to connect it, or to make you a manager.
  • 401: the key is missing, mistyped, expired or revoked, or the app was disconnected. A connected app signs in again by itself.
  • "lacks the manage scope" (error -32001): connect again and choose Read and make changes, or generate a key with the use read, write and manage.
  • Drafts read generic: see AI knowledge; knowledge_brief reports how much the brief is built on.
Protocol notes

Streamable HTTP, stateless. POST one JSON-RPC 2.0 message (or an array) as application/json; the answer is JSON. Methods: initialize, ping, tools/list, tools/call, resources/list, resources/read, resources/templates/list, prompts/list, prompts/get. Versions 2025-11-25 to 2024-11-05. GET and DELETE answer 405 (no stream, no session). A tool's own failure is a result with isError; a missing scope or unknown tool is a JSON-RPC error.

Sign-in is OAuth 2.1 with PKCE (S256). Without a token, /api/mcp answers 401 with WWW-Authenticate: Bearer resource_metadata="https://flowzio.ai/.well-known/oauth-protected-resource/api/mcp". The authorization server metadata is at /.well-known/oauth-authorization-server; apps register themselves at /api/oauth/register (RFC 7591), send the person to /oauth/authorize, and exchange the code at /api/oauth/token. Access tokens last an hour; refresh tokens last 90 days and are replaced at every use; /api/oauth/revoke ends a connection. Scopes are read and manage.

curl -s https://flowzio.ai/api/mcp -H "Authorization: Bearer flz_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"brand_overview","arguments":{}}}'

Spotted something wrong or missing? Email [email protected].