groundmail

Features

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.

Ways to connect

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.

Setup

One line of config

Cursor

// .cursor/mcp.json — hosted, signs in with OAuth
{
  "mcpServers": {
    "groundmail": {
      "url": "https://mcp.groundmail.dev/mcp"
    }
  }
}

Claude Code

# 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-mcp

Tools

What your agent can do

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_emails · get_email

    Look up sends and their status

  • create_domain · apply_domain_dns · verify_domain

    Add and verify a sending domain

  • list_webhooks · create_webhook · delete_webhook

    Manage webhook endpoints

  • send_test_webhook_event

    Fire a test event at your webhook

  • list_suppressions · add_suppression · remove_suppression

    Manage the suppression list

  • list_templates · get_template

    Read templates by id or alias

  • get_deliverability

    Delivery metrics for 7 or 30 days

FAQ

Common 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 transactional 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.