The official Model Context Protocol server for Posthawk. 32 tools across emails, scheduling, contacts, domains, newsletters, templates, and webhooks. Wire it into Claude Desktop, Cursor, Windsurf, Codex, or any MCP-aware client.
$ npx posthawk-mcpYou: "Send a welcome email to alex@example.com
from hello@posthawk.dev"
Claude: I'll send that email now.
[Calling send-email with:
from: hello@posthawk.dev
to: alex@example.com
subject: Welcome!
html: <h1>Welcome to Posthawk!</h1>]
Done! Email queued with job ID job_abc123.
Status: processingNo SDK imports, no HTTP boilerplate in the prompt. The agent reads the tool schema, picks the right call, fills the arguments — and you see the JSON it sent.
Windows: %APPDATA%\Claude\claude_desktop_config.json{
"mcpServers": {
"posthawk": {
"command": "npx",
"args": ["-y", "posthawk-mcp"],
"env": {
"POSTHAWK_API_KEY": "ck_live_..."
}
}
}
}Open via menu bar → Settings → Developer → Edit Config. Restart Claude Desktop after saving.
Don't see your client? Any MCP-spec client works — the server speaks the standard.
Every tool maps 1:1 to a Posthawk API endpoint. Schemas are exposed to the agent so it picks the right one without prompting tricks.
Drop the config below into your AI client of choice. Most use a JSON config; Claude Code uses a one-line CLI command.
OAuth (Claude Code, remote) opens your browser; stdio (everyone else) just needs a Posthawk API key from the dashboard.
"Email the new signups a welcome from hello@acme.com." The agent picks the tool and fills the args — no SDK, no HTTP plumbing.
Send emails, manage newsletters and subscribers, schedule sends, manage contacts, check domains, render templates, and configure webhooks — all through natural language.
Full OAuth 2.1 support with PKCE and dynamic client registration for secure remote access. Per-agent scoped API keys, revocable from the dashboard.
Set POSTHAWK_BASE_URL to point at any self-hosted Posthawk instance. Same tools, your infrastructure, your data residency.
stdio for local agents (Claude Desktop, Cursor, Windsurf) and Streamable HTTP for remote hosted access (Claude Code via OAuth).
Pick your client above, drop in the config, and the next sentence you type can be an email.
I use analytics cookies to understand how you use the site and improve your experience. Privacy Policy