MCP reference
The Sendapt MCP server gives an AI assistant 29 tools over the Sendapt API: read campaign and Autopilot reports, find contacts, manage tags, lists and contacts, draft campaigns from templates and, with your permission, send them. It speaks the Model Context Protocol over Streamable HTTP. Setting it up in an assistant: connect guides.
Server address
https://mcp.sendapt.com/mcpHosted by Sendapt. There is nothing to install. Every request carries the caller's own credential, and the server passes it on to the API; it stores no tokens and makes no decisions of its own. Your assistant needs to support remote MCP servers (Claude, Claude Code, ChatGPT, Cursor, VS Code).
Sign in (OAuth)
Most assistants sign in by themselves. A request without a credential gets 401 with WWW-Authenticate pointing to the resource metadata (https://mcp.sendapt.com/.well-known/oauth-protected-resource/mcp), which names Sendapt as the authorization server. The assistant registers itself, opens the Sendapt consent page, and gets an access token (sa_oat_…) that it refreshes on its own.
- Only a workspace owner or admin can connect, with a confirmed email, on a paid plan.
- One connection is one workspace; the person picks it on the consent page.
- The consent page offers every read, write and delete permission and "Send campaigns and series". Delete and send are never ticked for you. One-off email and events are never offered.
- The person's role is checked on every call: a connection stops when they are no longer an owner or admin.
- Connected apps are listed under Settings, API keys, where one click disconnects them.
The OAuth endpoints, scopes and token lifetimes: API reference, Sign in with OAuth.
With an API key instead
For an app that cannot sign in, create an Assistant (MCP) key under API keys and send it as a header. The key's scopes decide what the tools may do, exactly as with sign-in. An Assistant key reads everything and writes tags, lists and contacts; it never deletes or sends.
Authorization: Bearer sa_live_xxxxxxxxxxxxxxxxxxxxxxxxTools
Each tool calls one API endpoint and needs that endpoint's scope. A tool whose scope the connection lacks is still listed, and answers with a plain sentence naming the missing permission. Contacts are named by email, tags and lists by name (ids work too).
Your workspace
Which workspace and permissions whoami
Says which workspace the assistant is connected to and what it is allowed to do.
"Which workspace are you connected to?"
GET /api/v1/me
Reads
Tags
List tags list_tags
Every tag, with how many contacts carry it.
"Which tags are on nobody?"
GET /api/v1/tags
Reads tags:readCreate a tag create_tag
Adds a tag, in a colour if you like.
"Create a tag webinar-nov in green."
POST /api/v1/tags
Changes tags:writeRename or recolour a tag update_tag
Renames a tag everywhere it is used, or changes its colour.
"Rename vip to customer:vip."
PATCH /api/v1/tags/:name
Changes tags:writeDelete a tag delete_tag
Takes a tag off every contact and audience. Asks you first.
"Delete the tag test-import."
DELETE /api/v1/tags/:name
Deletes tags:delete
Lists
List lists list_lists
Your lists with how many people are in each.
"How many people are on each of my lists?"
GET /api/v1/lists
Reads lists:readGet one list get_list
One list with its member counts.
"How many subscribed people are on Newsletter?"
GET /api/v1/lists/:name
Reads lists:readCreate a list create_list
Makes a new list.
"Make a list called Webinar 12 Nov."
POST /api/v1/lists
Changes lists:writeRename a list or change its description update_list
Renames a list or rewrites its description.
"Rename Beta to Early access."
PATCH /api/v1/lists/:name
Changes lists:writeAdd people to a list or take them off change_list_members
Adds or removes people by email.
"Add these 20 emails to Webinar 12 Nov."
POST /api/v1/lists/:name/contacts
Changes Can start a series lists:writeDelete a list delete_list
Deletes a list and keeps its contacts. Asks you first.
"Delete the list Old import."
DELETE /api/v1/lists/:name
Deletes lists:delete
Contacts
List or search contacts list_contacts
Finds contacts by name, email, status, tag or list.
"Who is tagged plan:trial and still subscribed?"
GET /api/v1/contacts
Reads contacts:readGet one contact get_contact
One person: tags, lists, last open and click, and the series they are in.
"What do we know about jane@example.com?"
GET /api/v1/contacts/:email
Reads contacts:readAdd or update a contact save_contact
Adds a person or updates one: names, tags, lists, unsubscribe. Never re-subscribes anyone.
"Add sam@example.com to Newsletter with the tag webinar-nov."
POST /api/v1/contacts
Changes Can start a series contacts:writeDelete a contact delete_contact
Deletes a person and their history for good. Asks you first.
"Delete test@example.com."
DELETE /api/v1/contacts/:email
Deletes contacts:delete
Templates
List email templates list_templates
Your saved templates, to start a campaign from.
"Which templates do I have?"
GET /api/v1/templates
Reads templates:readGet one email template get_template
One template with its subject and content.
"Show me the Monthly newsletter template."
GET /api/v1/templates/:ref
Reads templates:read
Campaigns
List campaigns list_campaigns
Your campaigns with their totals.
"List the campaigns I sent in October."
GET /api/v1/campaigns
Reads campaigns:readGet a campaign's report get_campaign_report
One campaign's full report: opens and clicks over time, top links, countries, devices and mailbox services.
"Which links in the October newsletter got clicked most?"
GET /api/v1/campaigns/:id
Reads campaigns:readCreate a draft campaign create_campaign
Drafts a campaign from a template, for the lists or tags you name, and says how many people it would reach. Sends nothing.
"Draft the December newsletter for the Customers list."
POST /api/v1/campaigns
Changes campaigns:writeChange a draft campaign update_campaign
Changes a draft's subject, content, sender or audience. Sends nothing.
"Make the subject shorter and add the VIP tag."
PATCH /api/v1/campaigns/:id
Changes campaigns:writeWho got a campaign get_campaign_recipients
Who a campaign went to and what each did: opened, clicked, bounced.
"Who clicked in the October newsletter?"
GET /api/v1/campaigns/:id/recipients
Reads contacts:readSend a test of a campaign send_campaign_test
Sends one [Test] copy to someone on your team. Asks you first.
"Send me a test of the draft."
POST /api/v1/campaigns/:id/test
Sends email campaigns:sendSend or schedule a campaign send_campaign
Sends a draft now or at a time you choose, only to the number of people you agreed to. Asks you first.
"Schedule it for Tuesday 9 am."
POST /api/v1/campaigns/:id/send
Sends email campaigns:sendPause, resume or unschedule a campaign change_campaign_status
Pauses a campaign that is sending, resumes it, or cancels a schedule.
"Pause the campaign that is going out."
POST /api/v1/campaigns/:id/status
Changes campaigns:write
Autopilot
List Autopilot series list_autopilot
Every series: what starts and stops it, how many people are in it, and its email numbers.
"Which Autopilot series loses the most people to unsubscribes?"
GET /api/v1/autopilot
Reads autopilot:readGet an Autopilot series report get_autopilot_report
One series email by email: sent, opened, clicked and unsubscribes after each.
"Which email in my welcome series has the lowest open rate?"
GET /api/v1/autopilot/:id
Reads autopilot:readPut people into an Autopilot series add_to_autopilot
Adds subscribed contacts to a series that is on; they get its emails. Asks you first.
"Add these five people to the onboarding series."
POST /api/v1/autopilot/:id/contacts
Sends email campaigns:sendPause or switch on an Autopilot series change_autopilot_status
Pauses a series, or switches it on and says what is missing if it cannot start.
"Pause the welcome series."
POST /api/v1/autopilot/:id/status
Changes autopilot:write
What keeps it safe
- Only the three send tools send email, and only with campaigns:send. They are marked destructive and say to tell the person who and how many and wait for a clear yes.
- A campaign is sent only to the number of people the person agreed to (expected_audience), and a retried send never sends twice.
- Delete tools are marked destructive and say "Cannot be undone. Ask the person first."
- Delete and send tools a connection may not use are not listed at all.
- Tools that add a tag or a list member say they can start an Autopilot series, which sends email.
- Saving a contact never re-subscribes someone who unsubscribed.
- Autopilot reports are counts only; they do not list who is in a series.
- Every call is logged with the key or the connected app; deletes, sends, schedules and tests are in the audit log.
Errors and limits
| No credential | 401 with WWW-Authenticate: the assistant starts sign-in. |
| Expired or unknown token | 401 invalid_token: the assistant refreshes the token or signs in again. |
| Missing permission | The tool answers with a sentence naming the scope. Connect again and tick it. |
| Free plan | Refused: the API, and so the MCP server, is on paid plans. |
| Too many calls | The API's per-workspace limits apply, and the MCP server limits calls per credential. Wait a minute. |
Sending
The send tools (send_campaign_test, send_campaign, add_to_autopilot) need campaigns:send, which the consent page never ticks for you and the Assistant key type never holds. A test goes only to a member of the workspace's team. send_campaign takes expected_audience, the number the person agreed to (audience.count from create_campaign); if the audience changed, nothing is sent and the answer gives the new number. Each send carries an Idempotency-Key made from the call, so a repeated call returns the first answer instead of sending again. Switching a series on or resuming a campaign also needs campaigns:send.
Not in the MCP server yet
One-off emails (receipts, password resets: the send endpoint is for your own code), events, creating or editing templates and Autopilot emails, and custom contact fields.