One MCP server, 32 tools, every model. Drop the snippet below into Claude Desktop, Cursor, or any MCP-aware agent and it can send, schedule, and manage email in natural language.
Instead of switching between your AI assistant and the Posthawk dashboard, use natural language to send, schedule, query logs, manage contacts, and inspect deliverability — all from inside the agent.
Every tool maps 1:1 to a Posthawk API endpoint. The MCP server exposes them with JSON schemas so the agent picks the right one without prompting tricks.
send-emailSend transactional emailget-emailFetch a sent email by job IDlist-scheduledList pending scheduled sendsget-scheduledInspect one scheduled sendcancel-scheduledCancel before it firesreschedule-emailChange the send-at timesend-nowPromote a scheduled send to immediatelist-contactsPage through audience contactsget-contactRead a single contact recordcreate-contactAdd a contact with tags + metadataupdate-contactEdit fields, tags, or metadatadelete-contactHard-delete a contactlist-domainsList sending domains in the workspaceget-domainInspect DKIM, SPF, DMARC, statusverify-domainTrigger a verification re-checklist-newslettersList all newslettersget-newsletterRead newsletter settingscreate-newsletterSpin up a new newsletterupdate-newsletterEdit settings, branding, footerlist-subscribersPage through confirmed subscribersadd-subscriberAdd a subscriber (with DOI if required)unsubscribe-subscriberSoft-unsubscribe a memberdelete-subscriberHard-delete a subscriberlist-issuesList drafted and sent issuesget-issueRead one issue’s content + statuscreate-issueCompose a new issueupdate-issueEdit subject, body, schedulesend-issueSend a finished issuerender-templateServer-render a template to HTMLlist-webhooksList configured webhook endpointscreate-webhookSubscribe to email eventsdelete-webhookRemove a webhook endpointTotal: 32 tools · All registered via the official MCP SDK · source on GitHub →
Whether your agent calls tools over MCP, imports an SDK, shells out to a CLI, or hits the raw API — Posthawk meets it where it is.
Connect the official Posthawk MCP server to any compatible agent — Claude, Claude Code, Cursor, Windsurf, or VS Code — and send emails, manage contacts, schedule sends, and check domains through natural language. 32 tools, OAuth 2.1.
npx posthawk-mcpView MCP serverFirst-class libraries for the languages agents write most. Type-safe clients with the same API surface — Emails, Scheduled, Contacts, and more — so generated code just works.
npm i posthawkBrowse SDKsA single binary an agent can shell out to — send, preview, and tail logs from any terminal or CI step. One-shot inline sends, no SDK import, exit codes you can branch on.
npm i -g posthawkExplore the CLIA clean, predictable REST API for direct tool use — send email, manage contacts, create campaigns, render templates, and configure webhooks. Stable endpoints, bearer auth.
api.posthawk.devAPI referenceA machine-readable llms.txt and docs written to be parsed by models, not just humans. Point an agent at it and it learns the auth flow, deliverability rules, and every endpoint.
posthawk.dev/llms.txtRead llms.txtSet POSTHAWK_BASE_URL and the same MCP server, SDKs, and CLI point at your own instance. Agents operate your infrastructure — your data never leaves your network.
POSTHAWK_BASE_URL=…Self-hosting guideNo HTTP plumbing, no SDK boilerplate in the prompt. The agent reads the tool schema, picks the right call, and fills the arguments — you just say what you want.
One command wires Posthawk into your agent. Claude Code uses OAuth — no API key to paste. Other clients drop in an npx config with a key.
OAuth opens your browser, you pick a workspace and click Authorize. An API key is created and scoped automatically.
"Email the new signups a welcome from hello@acme.com." The agent picks the right tool, fills the args, and executes — no dashboard.
PKCE and dynamic client registration for secure remote access. Every agent acts inside one authorized workspace.
Run the same MCP server, SDKs, and CLI against a self-hosted instance. Agents never touch a third party.
MCP, SDKs, CLI, and REST all map to the same endpoints — what the agent learns once works everywhere.
Connect Posthawk to your AI workflow in under a minute — free to start.
I use analytics cookies to understand how you use the site and improve your experience. Privacy Policy