Repository avatar
AI Tools
v0.31.5
active

groundmail

io.github.Groundmail/groundmail

Send and receive email, give agents mailboxes, and manage domains and templates with Groundmail.

Documentation

Groundmail

Groundmail MCP server

Send transactional email and manage domains, templates, webhooks and suppressions
from Claude, Claude Code, ChatGPT, Cursor and any other MCP client.

npm MCP registry License: MIT

Docs · Get a free account · groundmail.dev


Quick start

The fastest way is the hosted server. Add the URL, sign in through your browser, and you're done. No API key to copy.

https://mcp.groundmail.dev/mcp
ClientHow to connect
Claude Codeclaude mcp add --transport http groundmail https://mcp.groundmail.dev/mcp, then run /mcp, pick groundmail and choose Authenticate
CursorAdd { "mcpServers": { "groundmail": { "url": "https://mcp.groundmail.dev/mcp" } } } to .cursor/mcp.json; Cursor shows "Needs login"
Claude.aiSettings → Connectors → Add custom connector → paste the URL
ChatGPTSettings → Apps & Connectors → Create (developer mode) → paste the URL, authentication OAuth

When you connect, you choose the access: Full, Send only or Read only. Revoke it any time in Groundmail under Settings → CLIs & agents.

What you can ask for

"Send a password reset email to ada@example.com from noreply@mail.acme.com."

"Did my last 10 emails get delivered? Show any bounces."

"Add mail.acme.com as a sending domain and apply the DNS records on Cloudflare."

"How is my deliverability over the last 7 days?"

Tools cover emails (send, list, look up), domains (add, apply DNS through Cloudflare, Vercel or GoDaddy, verify), templates, webhooks, suppressions, address validation, deliverability, DMARC monitoring, email testing (a test address per run, then wait for the email and read its code and links), imports from other providers and tenants (one per customer you send for: create, update, pause, resume, stats; tenant on sends, domains and suppressions). Each tool carries read-only and destructive annotations and an output schema. Full list: docs.groundmail.dev/ai/mcp.

Transports

ModeCommand / URLAuth
HTTP (hosted)https://mcp.groundmail.dev/mcpOAuth (recommended) or Authorization: Bearer gm_…
stdionpx -y groundmail-mcpGROUNDMAIL_API_KEY=gm_…
HTTP (local)npx -y groundmail-mcp --http --port 3000Authorization: Bearer gm_… on each request

Optional: GROUNDMAIL_API_URL (for example http://localhost:3003/api against a local API).

Local HTTP endpoint: http://127.0.0.1:3000/mcp · health: GET /health Hosted health: GET https://mcp.groundmail.dev/health

Cursor with an API key (stdio)

.cursor/mcp.json:

{
  "mcpServers": {
    "groundmail": {
      "command": "npx",
      "args": ["-y", "groundmail-mcp"],
      "env": {
        "GROUNDMAIL_API_KEY": "gm_your_key_here"
      }
    }
  }
}
Cursor with an API key (local or hosted HTTP)
npx -y groundmail-mcp --http --port 3000
{
  "mcpServers": {
    "groundmail": {
      "url": "http://127.0.0.1:3000/mcp",
      "headers": {
        "Authorization": "Bearer gm_your_key_here"
      }
    }
  }
}

For the hosted server with a key instead of OAuth, use "url": "https://mcp.groundmail.dev/mcp" with the same header.

Claude Code with an API key
# Hosted, API key
claude mcp add --transport http groundmail https://mcp.groundmail.dev/mcp \
  --header "Authorization: Bearer $GROUNDMAIL_API_KEY"

# Local stdio
claude mcp add groundmail --env GROUNDMAIL_API_KEY=gm_your_key_here -- npx -y groundmail-mcp

Want your coding agent to know Groundmail too? Install the agent skills: npx skills add Groundmail/groundmail-skills -y.

Why Groundmail

  • Mailboxes for your agents. Give an agent its own email address: it receives mail, replies in the thread and picks up sign-up codes on its own. No account needed to start. Agent mailboxes
  • Each kind of mail on its own IPs. Transactional email (sign-in codes, password resets, receipts), product email and opt-in newsletters send from separate IPs, so your newsletter never shares a pool with your password resets. We run our own mail servers and never send cold outreach or bought lists.
  • Start free. Free covers 3,000 emails a month. After that, pay as you go is $15 a month with 20,000 emails included, then from $0.70 per 1,000, less as you grow. Pricing
  • Built for code and for agents. REST API, SMTP, SDKs for Node, Python, Go, PHP and Ruby, a CLI, and an MCP server for Claude, ChatGPT and Cursor.

All Groundmail libraries

UsePackage
Node.js / TypeScriptgroundmail on npm
Python (Django), Go, Ruby (Rails Action Mailer)Groundmail/groundmail-sdks
PHPGroundmail/groundmail-php
LaravelGroundmail/groundmail-laravel
Symfony MailerGroundmail/groundmail-symfony-mailer
NodemailerGroundmail/groundmail-nodemailer
NestJSGroundmail/nestjs-groundmail
StrapiGroundmail/strapi-provider-email-groundmail
MedusaGroundmail/medusa-notification-groundmail
AdonisJSGroundmail/adonisjs-groundmail
Phoenix (Swoosh)Groundmail/swoosh_groundmail
CLIgroundmail-cli on npm
MCP server (Claude, ChatGPT, Cursor)Groundmail/groundmail-mcp
Agent skills and Claude Code pluginGroundmail/groundmail-skills
Email templates (React Email, MJML, HTML)Groundmail/email-templates

Website · Docs · Pricing · Sign up free

NPM
groundmail-mcp
Install Command
npm install groundmail-mcp
Runtime: npx

Remote