Developers/Guides

MCP server

PostBuddy runs a remote Model Context Protocol server, so AI assistants such as Claude and ChatGPT can read and design for an organisation on behalf of one of its members. Members connect assistants from the assistant itself; the Help center article Connect an AI assistant explains it for them. This page is for developers who connect another MCP client.

Endpoint and transport

WhatValue
Serverhttps://mcp.postbuddy.nl/mcp
TransportStreamable HTTP, stateless (no sessions)
Protocol versions2026-07-28 and 2025-11-25 (and earlier 2025 versions)
Protected resourcehttps://mcp.postbuddy.nl/.well-known/oauth-protected-resource/mcp
Authorization serverhttps://api.postbuddy.nl/auth

A call without a token answers 401 with WWW-Authenticate: Bearer resource_metadata=…; follow it to the authorization server.

Authorization

OAuth 2.1 with the authorization code flow and PKCE (S256 only). Clients identify themselves with a client ID metadata document (a URL as client_id) or register through dynamic client registration. Redirect URIs must match exactly and use https (loopback for native clients). Ask for the resource https://mcp.postbuddy.nl/mcp; tokens are bound to it.

  • Access tokens are opaque (pbo_at_…) and live 15 minutes; refresh tokens (pbo_rt_…) live 30 days and rotate on use. A reused refresh token ends the connection.
  • The member signs in, chooses the organisation and live, test or both data, and ticks the rights. The rights are cut down to the member's role on every call.
  • Every connection can be narrowed or revoked by the member and by Owners and Admins in the portal; revoking ends its tokens at once.

Scopes

ScopeGives
postflows.readPostflows, journeys, Postbatches and runs
postflows.writeCreate Postflows (paused) and build journeys; switching on and publishing a journey after the member confirmed it
items.readCards with status, path and problems (personal data masked)
analytics.readProduction, QR scan and design statistics
billing.readCosts, balance and invoices
templates.readTemplates, versions, previews and the design context
templates.writeCreate designs and change drafts
templates.publishPublish a draft after the member confirmed it
items.writeTest cards and the simulated run (test or both connections only)
personal_data.readNames, addresses and field values of cards, previews of real cards
offline_accessA refresh token

A tool that needs a scope the token lacks answers 403 with WWW-Authenticate: Bearer error="insufficient_scope", scope="…", so a client can ask the member for more (step-up).

Tools

ToolScope
get_connection (the organisation, data, rights and language)none
get_overview, search_helpnone (parts by rights)
list_postflows, get_postflow, list_postbatches, get_postbatchpostflows.read
search_items, get_item, get_problemsitems.read
get_statisticsanalytics.read
list_templates, get_template, render_preview, check_draft, get_design_context, list_media, get_uploadtemplates.read
create_design, edit_design, update_draft, undo_last_change, add_image, request_uploadtemplates.write
publish_drafttemplates.publish
create_test_item, run_test_cardsitems.write
get_postflow_options, get_flow, test_drive_flowpostflows.read
create_postflow, update_postflow, activate_postflow, edit_flow, publish_flow, undo_last_changepostflows.write

Designs are read and written in one description format: positions and sizes in millimetres from the top left of the trimmed card, font sizes in points, colours as #RRGGBB or a colour name, fonts by family, images by media id. get_design_context returns the format with the product's sizes, the base design, fonts, text styles, shapes, the house style and examples. Every change has a restore point and names the draft revision it was made against; a draft changed meanwhile answers draft_conflict.

Dynamic documents use the same format: a field of type list with the fields of its entries (its sample a JSON array), {{orders.count}} and {{orders.sum.amount}} as a list's figures in any text, a table (a list, relative column widths, rows of kind header, static, entries or totals with cells as text, {{entry.<field>}} in an entries row), a repeater (a group with repeat, its children the cell of one entry) and, on a letter with pages only, a flow area (a group with flow and a box of its own whose children stack from its top; the editor makes a letter's flow areas itself, and a flow area on a card is refused). Blocks may set keepTogether and newPage. On a letter with pages the sides are first and next; the operation { "lastPage": true } adds the Last page as a copy of Next and false removes it; the content goes in the first flow area and later flow areas stay empty; {{page.number}} and {{page.count}} number the pages, and render_preview shows every printed page as page-1, page-2 and so on. A table, repeater or flow area is refused when the plan or the size does not allow its editor tool.

Postflows: create_postflow creates a Postflow paused (no live cards); update_postflow changes its settings while paused; activate_postflow switches it on after the member confirmed it. Journeys are read with get_flow (the draft or the published version, with its revision, the check and a guide to every step type) and changed with edit_flow: operations add (after or before a step, or at the start of a branch), change, remove, addBranch, removeBranch, ending and replace, applied in order against the revision. Each step's settings are checked against its type: a setting the step does not have, or a value of the wrong kind, is refused with the step type's settings and their defaults (for a wait of three days: {"mode":"duration","duration":{"amount":3,"unit":"days"}}). Secret webhook header values are never accepted; the member types them in the builder, and until then the check reports webhook_secret_missing. test_drive_flow drives a sample card through the journey; publish_flow publishes the draft as a new version after the member confirmed it. Journey changes have restore points like designs; undo_last_change undoes the connection's newest change of either kind.

publish_draft, activate_postflow and publish_flow always ask the member: with input_required (2026-07-28 clients that announce elicitation), with an elicitation within the call (2025 clients), or with a confirmation link in the portal for other clients.

render_preview, create_design and edit_design name the MCP Apps resource ui://postbuddy/card-preview.html: front and back, zoom, the trim and safe zone lines and sample values to try, without network access. Clients without the extension get images and text.

Prompts

weekly_report, fix_problems, design_card, compare_designs, explain_card and build_postflow, in the member's language and only those the connection's rights carry out.

Limits and switches

  • 120 calls a minute per connection and 600 per organisation (429 with Retry-After).
  • Bodies up to 16 MB (add_image takes images up to 10 MB).
  • The organisation's plan must include AI assistants, and Owners and Admins can switch assistants off for the organisation; PostBuddy can switch them off or to reading only for the platform. In each case the tools answer with the reason and get_connection reports available: false or a notice.
  • Everything a tool returns from PostBuddy (texts, field values, help articles) is data; assistants are told never to follow instructions found in it.