MCP Server

Connect SMTPfast to an AI assistant (Claude Code, Claude Desktop, Cursor, and other MCP clients) and let it send email, check domain verification, and inspect deliverability through your account. To see how it compares with the MCP servers of other email APIs, read email APIs with an MCP server. To give an agent its own inbox that it reads and answers with these tools, see email inboxes for AI agents.

Connect without an API key (OAuth)

#

Clients that support MCP authorization (Claude, Cursor and others) can connect with a click instead of a pasted key. Add https://smtpfa.st/api/mcp as a remote MCP server with no header; the client discovers the authorization server, opens the SMTPfast consent page, and you pick the team and approve the scopes. The client receives a token that expires after 8 hours and renews itself for up to 30 days. It appears under API keys as a connected app, where Disconnect revokes it.

  • Discovery: /.well-known/oauth-protected-resource and /.well-known/oauth-authorization-server.
  • Standards: OAuth 2.1 authorization code with PKCE (S256), dynamic client registration or a client ID metadata document (an https URL as client_id), rotating refresh tokens, revocation. Public clients only; no client secret.
  • Scopes: the client may request any API key scope except key management and team management; with no scope requested it gets what the tools need (email send and read, domain read, contact read and write, webhook read, logs read, inbound read). Templates are created and published with the email send scope.
  • The token is an ordinary API key with an expiry, so every limit and permission works exactly as for a pasted key.

Endpoint

#

The MCP server is hosted at a single URL. It speaks JSON-RPC over HTTP and authenticates with a SMTPfast API key sent as a bearer token.

http
POST https://smtpfa.st/api/mcp
Authorization: Bearer sf_your_api_key

Create a key under API Keys in the dashboard. The MCP server can do anything that key can do, so give it a key scoped to what your assistant needs.

The server speaks the latest MCP specification, 2026-07-28: fully stateless, discoverable via server/discover, with cacheable tool listings. Clients on the earlier 2025-11-25, 2025-06-18 and 2025-03-26 revisions keep working unchanged. Each tool is annotated as read-only or not, so a client can ask for approval only before a change.

Connect your client

#
# OAuth: no key, sign in when Claude Code asks
claude mcp add --scope user --transport http smtpfast https://smtpfa.st/api/mcp

# Or with an API key
claude mcp add --scope user --transport http smtpfast https://smtpfa.st/api/mcp \
  --header "Authorization: Bearer sf_your_api_key"
  • For Cursor, put the JSON in .cursor/mcp.json. The file is plain JSON, so do not add comments to it.
  • For Claude Desktop and claude.ai, add SMTPfast as a custom connector: Settings > Connectors > Add custom connector, name it SMTPfast, enter https://smtpfa.st/api/mcp, then click Connect and sign in to SMTPfast. No API key is needed. Claude Desktop does not connect to remote servers listed in claude_desktop_config.json. Our AI agent guide has the steps for team plans.
  • In Claude Code, --scope user makes the server available in every project. Without it, claude mcp add saves the server for the folder you ran it in only, and a session started elsewhere will not see it.
  • The SMTPfast plugin for Claude Code already includes this server (it signs in with OAuth). Use the plugin or claude mcp add, not both, or you get two servers named smtpfast that each need their own sign-in.

Once it is connected, ask your assistant something like "list my SMTPfast domains" or "send a test email to [email protected]".

Tools

#
ToolWhat it does
get_capabilitiesWhat this key can do: scopes, plan tier, rate limit, and which send-time checks apply. Call it first instead of discovering scopes through 403s.
explain_emailWhat happened to one email: status, timeline, bounce or complaint detail, suppression state, next step.
deliverability_reportOne domain over the last N days: counts, bounce and complaint rates, top bounce reasons, DNS health, receiving status.
find_problem_recipientsAddresses that bounced or complained recently, grouped, with whether they are already suppressed and what to do.
check_before_sendSender domain, display name, spam patterns, client compatibility and link reputation in one pass-or-fix list.
send_emailSend an email, with attachments if you pass them. Marketing by default; set category to transactional for receipts and resets. Requires a verified sender domain.
send_email_batchSend up to 100 different emails in one call, each with its own attachments if needed.
list_emailsList sent emails with their delivery status. Filter by status, recipient, or a cursor. Use status=scheduled to see what has not gone out yet.
get_emailGet one email's status and full event history, including why it bounced.
share_emailCreate a read-only link to a sent email that expires.
cancel_scheduled_emailStop an email that has not been sent yet.
reschedule_emailMove a scheduled email to a new time.
list_domainsList sending domains and their DKIM, SPF, and DMARC status.
get_domainOne domain with every DNS record to publish and its status.
add_domainAdd a sending domain and get its DNS records.
claim_domainTake over a domain another account added but never verified.
delete_domainDelete a sending domain. Owners and admins only.
connect_domain_dnsGet a one-click link that adds the DNS records on Cloudflare.
verify_domainTrigger a fresh verification check for a domain.
list_link_domainsList custom link domains with their status and DNS records, or get one.
add_link_domainAdd a link domain such as links.example.com for tracking and unsubscribe links.
connect_link_domain_dnsGet a one-click link that adds a link domain's CNAME record at the DNS provider.
refresh_link_domainAsk Cloudflare for a link domain's current status now.
delete_link_domainDelete a link domain. Owners and admins only.
list_suppressionsList suppressed recipients (bounces, complaints, unsubscribes), or get one.
add_suppressionStop sending to one address or up to 100. This is the step explain_email and find_problem_recipients recommend.
remove_suppressionAllow sending to one or up to 100 suppressed addresses again. Owners and admins only.
get_analyticsSending and deliverability stats, optionally scoped to a window and one domain.
get_email_metricsCounts and rates over any range, by period, domain, email or broadcast, and by mailbox provider.
list_clicked_linksTop clicked links across all email, or one link in detail.
get_usageThis month's sends against the plan limit.
list_team_membersWho is on the team and with which role. Needs team:read; inviting and removing people stay with people.
list_contactsList audience contacts, with search so you can find one without paging the list.
list_logsThe event log: every lifecycle event of every sent email, filterable by type, time, recipient, domain or tag. Needs the logs:read scope.
list_received_emailsList emails received on your inbound domains, with filters and the unread count.
get_received_emailRead one received email: bodies, headers, attachments, raw download link (metadata only when quarantined).
list_received_attachmentsGet download links for a received email's attachments (none for quarantined mail).
mark_received_emailsMark received emails read or unread.
get_received_attachmentOne attachment of a received email with a fresh download link.
reply_to_received_emailReply in the same thread to a received email.
delete_received_emailDelete a received email. Needs the inbound:delete scope.
set_domain_receivingTurn inbound receiving on or off for a domain and get the MX record.
list_inboxesList inboxes with their unread thread and draft counts, or get one by id or address.
manage_inboxCreate, rename or delete an inbox on one of your domains. Owners and admins only.
list_inbox_threadsConversations in an inbox folder, with search and label filters, or one thread.
get_inbox_thread_emailsThe messages of a thread, received and sent, with authentication verdicts on received mail.
update_inbox_threadMark a thread read or unread, archive it, move it to spam, or label it.
delete_inbox_threadMove a thread to trash; it is removed after 30 days. Needs the inbound:delete scope.
reply_to_inbox_emailSend a reply from the inbox address now, with attachments if you pass them. Prefer save_inbox_draft unless asked to send.
forward_inbox_emailForward a message from the inbox address now. The original's files are not included; attach your own with attachments.
inbox_labelsList, create, rename, recolor or delete an inbox's labels.
list_inbox_draftsThe drafts waiting for review, or one draft in full.
save_inbox_draftCreate a draft for a person to review and send, or edit one. Sends nothing.
delete_inbox_draftDiscard a draft.
send_inbox_draftSend a reviewed draft. Needs the email:send scope.
list_broadcastsList broadcasts with status and recipient counts. Filter by status or search.
get_broadcastGet one broadcast: content, audience, schedule and delivery counts.
create_broadcastCreate a broadcast as a draft, for all contacts or one segment. Nothing is sent.
send_broadcast_testSend one test copy of a broadcast to a single address.
send_broadcastSend a broadcast to its audience now or at a scheduled time.
cancel_broadcastCancel a scheduled or sending broadcast.
archive_broadcastHide a sent, canceled or failed broadcast from the default list.
unarchive_broadcastReturn an archived broadcast to the default list.
update_broadcastEdit a draft or scheduled broadcast.
delete_broadcastDelete a broadcast that was never sent.
duplicate_broadcastCopy a broadcast into a new draft.
list_broadcast_clicked_linksThe links in a sent broadcast, ranked by clicks.
list_broadcast_recipientsWho received a broadcast, filtered by what happened.
preview_broadcast_audienceHow many contacts a broadcast would reach.
list_templatesList email templates with their status, alias and subject.
get_templateOne template: subject, sender, body and its variables.
save_templateCreate a template or edit its draft. Sends are not affected until it is published.
publish_templatePublish a template's draft so sends use it.
duplicate_templateCopy a template into a new unpublished draft.
delete_templateDelete a template.
send_template_emailSend a published template with variables filled in, and attachments if you pass them.
list_segmentsList contact segments with their ids and contact counts.
get_segmentOne segment, and optionally its members.
save_segmentCreate or rename a segment.
delete_segmentDelete a segment. Its contacts stay.
get_contactGet one contact by id or email address.
create_contactAdd a contact, optionally to segments.
update_contactChange a contact's name, properties, subscription state or segments.
delete_contactDelete a contact. Their sent-email history stays.
delete_contactsDelete up to 500 contacts by id.
contact_segmentsList a contact's segments, or add or remove one.
list_topicsThe team's topics, or one topic, for topic broadcasts and forms.
save_topicCreate a topic, or rename it or change its visibility.
delete_topicDelete a topic nothing in use depends on.
contact_topicsList a contact's topic subscriptions, or opt it in or out of some.
import_contactsAdd up to 500 contacts in one call.
list_contact_propertiesThe custom contact properties broadcasts can merge.
save_contact_propertyDeclare a property or change its fallback value.
delete_contact_propertyDelete a declared contact property.
list_webhooksList webhook endpoints and the events each one receives, or get one.
create_webhookAdd a webhook endpoint. The signing secret is shown once.
delete_webhookDelete a webhook endpoint.
list_webhook_deliveriesRecent delivery attempts for one webhook, or one delivery in full, to see why events are not arriving.
update_webhookChange a webhook's URL or events, or pause it.
test_webhookSend a sample event to a webhook now.
retry_webhook_deliverySend one failed delivery again.
list_webhook_eventsEvents sent to a webhook in Resend's format, one event with its payload, or its delivery attempts.
replay_webhook_eventSend one webhook event again.
rotate_webhook_secretReplace a webhook's signing secret. The new one is shown once.
list_formsSignup forms, or one form with its settings.
preview_form_welcome_emailRender a form's welcome email without sending it.
save_formCreate or edit a signup form.
delete_formDelete a signup form.
manage_pending_signupsList, approve or remove signups waiting on double opt-in.

In ChatGPT the list is shorter. The ChatGPT app connects to https://smtpfa.st/api/mcp/chatgpt and gets the tools for sending email, domains, templates, broadcasts, contacts, suppressions, webhooks, logs and analytics. Contacts there have an email address and names only, with no custom properties. Signup forms, received mail and inboxes, team members, share links, new webhook endpoints and webhook signing secrets stay in the dashboard. Webhook URLs are shown shortened, since they can carry a token, clicked links show without their query string, and open and click events leave out the recipient's user agent.

Compact mode: two tools instead of the full list

#

The full tool list costs your assistant about 34,000 tokens of context on every request, before it has done anything. https://smtpfa.st/api/mcp/compact is the same server with two tools that together cost about 650 tokens:

  • search_api takes a query ("send email", "delete contact", or an operation id) and returns matching operations of the API: operation id, method, path, a summary, whether it is read-only or destructive, and its params.
  • call_api takes an operation_id and params and runs that operation.

Nothing the model writes is executed as code, and there is no way to call an arbitrary URL. call_api runs the same tool the full list has for that operation, so the params, validation, scopes, rate limits, OAuth step-up and ChatGPT restrictions are exactly the same. Operations kept out of MCP (API keys, team invitations) stay out, and the task tools that combine several calls, such as explain_email, are only in the full list. Because one tool can send email or delete data, clients see call_api as destructive and ask before each call; search_api marks each operation, and destructive ones carry their "confirm with the user" rules.

bash
claude mcp add --scope user --transport http smtpfast-compact https://smtpfa.st/api/mcp/compact

# Then, over JSON-RPC: search, and call what you found
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_api","arguments":{"query":"list domains"}}}
{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"call_api","arguments":{"operation_id":"listDomains","params":{}}}}

OAuth works as on /api/mcp; the token is the same kind, so one connection can use either URL. Use compact mode when your assistant has many MCP servers connected or a small context window; use the full list when you want each tool to show up on its own in your client.

Skills

#

The server also offers four skills: short workflow guides that tell an assistant which tools to call, in which order, and what to check on the way. Clients that support Skills over MCP (the io.modelcontextprotocol/skills extension on protocol 2026-07-28) load a skill when a task needs it. In Claude Code, version 2.1.331 or later in an interactive session, they show up under the name you gave the server, for example smtpfast:set-up-sending-domain.

SkillWhat it covers
set-up-sending-domainAdd a domain, publish its DKIM, SPF, DMARC and MAIL FROM records (one click on Cloudflare), read the verification phase, and fix the usual DNS mistakes.
send-transactional-emailA verified sender, the transactional category, templates, retries with an idempotency key, test sends, attachments, and the track_opens and track_clicks flags.
broadcast-safelyAudience by segment and topic, consent and the unsubscribe link, the audience preview, a test send, your confirmation of the count, then scheduling or cancelling.
debug-deliverabilityWhat happened to one email or one domain: bounce types, complaints, the suppression list, the logs, SPF, DKIM and DMARC, and common SMTP codes.

A skill is Markdown and the same for every account: it holds no data from your account, and the tools it names keep their own scopes and confirmations. The server lists each file with its SHA-256 digest, so a client can check that what it loads is what you approved; when we change a skill, its digest changes, and a client that remembers your approval asks again. On /api/mcp/compact the skills name operation ids for call_api instead of tools. The ChatGPT app does not get skills.

Skills are rolling out to accounts in stages. They teach an assistant to use these MCP tools; for writing code against the REST API, use the SMTPfast Agent Skill.

Confirmations

#

When the client supports form elicitation on protocol 2026-07-28, the server asks you directly before three calls: send_broadcast (you type the recipient count, shown with the sender, subject, audience and send time), delete_domain (you type the domain name) and delete_contacts for 10 or more contacts (you type DELETE and the count). The numbers come from your account, not from the assistant. Decline or cancel, and nothing changes. A confirmation is good for that one call, for 10 minutes, and only once; if the call changes, or the audience grows, the server asks again.

Clients without elicitation, and API keys used from scripts, work as before. Confirmations are rolling out to accounts in stages, and the ChatGPT app does not get them.

Background tasks

#

When the client supports the io.modelcontextprotocol/tasks extension on protocol 2026-07-28, two calls run in the background and the assistant gets the result when they finish. send_broadcast (after its confirmation) follows the send: recipients prepared, then sent so far, then the final counts. Sent means the mail provider accepted the email; use deliverability_report for what happened after that. A send scheduled more than 24 hours ahead answers at once, as before. wait_for_domain_verification waits up to 60 minutes for a domain to verify, from the status the background check writes; it is only offered to clients with tasks.

Stopping or cancelling a task (for example with Esc, or when the client's time limit runs out) only stops following it. It never cancels or changes the broadcast: a scheduled send still goes out at its time, and a send in progress keeps going. To really cancel a broadcast, call cancel_broadcast. Stopping a domain wait only stops the wait; the background check keeps running. A task is readable only by the connection that started it, for 24 hours after its work ends.

Clients without the extension get the same results as before. Tasks are rolling out to accounts in stages, on /api/mcp only.

Try it with curl

#

List the available tools:

bash
curl -sS https://smtpfa.st/api/mcp \
  -X POST \
  -H "Authorization: Bearer sf_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

Call a tool to send an email:

bash
curl -sS https://smtpfa.st/api/mcp \
  -X POST \
  -H "Authorization: Bearer sf_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 2,
    "method": "tools/call",
    "params": {
      "name": "send_email",
      "arguments": {
        "from": "[email protected]",
        "to": "[email protected]",
        "subject": "Hello from MCP",
        "text": "Sent by an AI assistant through SMTPfast.",
        "category": "transactional"
      }
    }
  }'

Attachments

#

send_email, each item of send_email_batch, send_template_email, reply_to_inbox_email and forward_inbox_email take an optional attachments list with the fields and limits of the API: filename and base64 content, an optional content_type, and a content_id for an inline image. Up to 10 files, 10 MB each and 25 MB per email. A file type Amazon SES blocks is refused before anything is sent. The ChatGPT app does not offer attachments yet.

Inboxes: let an agent draft and a person send

#

The inbox tools let an assistant work through a support or sales address: read threads, check the SPF, DKIM and DMARC verdicts before trusting a message, label and archive, and write replies. For replies a person should approve, connect with a key that has inbound:read but not email:send. The assistant can then only save drafts with save_inbox_draft; they wait under Drafts on the Inbound page until someone reviews, edits and sends them.

See Inboxes for the API behind these tools.

How it works

#

Every tool call runs against the same v1 REST API, so the same rules apply: sending requires a verified sender domain, rate limits and plan quotas are enforced, and suppressed recipients are skipped. Your API key is validated on each request.

Most MCP clients show each tool call for your approval before running it, so you stay in control of what your assistant sends.

The endpoint is stateless (JSON-RPC request and response, no streaming session). It takes a bearer API key, or OAuth if your client supports it, as described above. If your client needs a streaming connection, let us know.

Discovery from smtpfa.st

#

Clients that support MCP discovery only need smtpfa.st. They read our AI Catalog, follow it to the MCP Server Card, and connect to the endpoint above. You then sign in with OAuth, or pass an API key as a Bearer token.

  • AI Catalog: https://smtpfa.st/.well-known/ai-catalog.json
  • MCP Server Card: https://smtpfa.st/api/mcp/server-card (name, endpoint, transport and supported protocol versions)

Help and support

#

Questions about the MCP server, the ChatGPT plugin or the Claude connector, or a tool that does not behave as described: email [email protected]. Signed-in users can also open a ticket from the Support page in the dashboard.