Email for
your AI coding tools.
The Groundmail MCP server lets Cursor, Claude Code and other agents send email, set up domains and wire webhooks while you build. Hosted with OAuth, or run it on your machine.
Hosted for convenience, local for control. Same account and the same tools either way.
Hosted with OAuth
Add https://mcp.groundmail.dev/mcp to your client. It discovers OAuth, you approve access in the browser, and no key lands in a config file.
Local stdio
Run npx -y groundmail-mcp with GROUNDMAIL_API_KEY set. Nothing to host, nothing to keep running.
Local HTTP
Start groundmail-mcp with --http for clients that prefer a URL. Requests authenticate with a Bearer API key.
One line of config.
// .cursor/mcp.json — hosted, signs in with OAuth
{
"mcpServers": {
"groundmail": {
"url": "https://mcp.groundmail.dev/mcp"
}
}
}# Hosted
claude mcp add --transport http groundmail \
https://mcp.groundmail.dev/mcp
# Local stdio, with GROUNDMAIL_API_KEY in your environment
claude mcp add --transport stdio groundmail \
-- npx -y groundmail-mcpWhat your agent can do. A curated set of tools for agent workflows.
Every tool calls the official groundmail SDK, so agent sends follow the same rules as your app: verified domains, suppressions and plan limits.
- Published on npm as
groundmail-mcp - OAuth or Bearer API key authentication
- Agent Skills and llms.txt for agents without MCP
- send_email
- Send a transactional email
- list_emailsget_email
- Look up sends and their status
- create_domainapply_domain_dnsverify_domain
- Add and verify a sending domain
- list_webhookscreate_webhookdelete_webhook
- Manage webhook endpoints
- send_test_webhook_event
- Fire a test event at your webhook
- list_suppressionsadd_suppressionremove_suppression
- Manage the suppression list
- list_category_opt_outsremove_category_opt_out
- See and undo product or newsletter unsubscribes
- validate_email
- Check an address before you accept it
- verify_email
- Confirm a mailbox exists, 1¢ a check
- list_templatesget_template
- Read templates by id or alias
- get_deliverability
- Delivery metrics for 7 or 30 days
- enable_dmarc_monitoringget_dmarc_report
- DMARC sources, pass rates and readiness
- create_tenantpause_tenantget_tenant_stats
- Run sending for each of your customers
- import_from_provider
- Bring over SendGrid, Postmark, Mailgun, Resend, Amazon SES or Azure Communication Services
Questions
Do I have to paste an API key into my editor?
No. The hosted server at mcp.groundmail.dev supports OAuth: add the URL, sign in to Groundmail in the browser, and approve access. A Bearer API key still works for scripts and CI.
Does the MCP server cover the whole API?
No. The tools are a curated set for agent workflows. Use an SDK, the CLI or the REST API when you need the full surface.
Which clients work?
Any MCP client. We document setup for Cursor and Claude Code, over stdio, local HTTP or the hosted server.
Put your email
on solid ground.
Start free on our transactional pool. Move to dedicated IPs or a dedicated server when you need the isolation. Same API either way.