Skip to main content

MCP server for sending emails via SMTP or Resend

Project description

mcp-email

MCP server for sending emails. Supports SMTP and Resend providers.

Installation

cd mcp-servers/email
uv sync

Providers

Set EMAIL_PROVIDER to choose the backend:

Provider Value Required env vars
SMTP (default) smtp SMTP_HOST, SMTP_USERNAME, SMTP_PASSWORD
Resend resend RESEND_API_KEY, RESEND_FROM

SMTP Configuration

EMAIL_PROVIDER=smtp            # or omit (default)
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USERNAME=you@gmail.com
SMTP_PASSWORD=your-app-password
SMTP_FROM=you@gmail.com        # defaults to SMTP_USERNAME
SMTP_USE_TLS=true              # default: true

Resend Configuration

EMAIL_PROVIDER=resend
RESEND_API_KEY=re_xxxxxxxxxxxx
RESEND_FROM=you@yourdomain.com

Usage

With Claude Desktop / Claude Code

{
  "mcpServers": {
    "email": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/mcp-servers/email", "mcp-email"],
      "env": {
        "EMAIL_PROVIDER": "smtp",
        "SMTP_HOST": "smtp.gmail.com",
        "SMTP_PORT": "587",
        "SMTP_USERNAME": "you@gmail.com",
        "SMTP_PASSWORD": "your-app-password"
      }
    }
  }
}

Tools

send_email — Send an email

Parameter Type Required Description
to string[] yes Recipient email addresses
subject string yes Email subject line
body string yes Email body content
html boolean no Whether body is HTML (default: plain text)
cc string[] no CC recipients
bcc string[] no BCC recipients
attachments object[] no File attachments (see below)

Attachments format:

{
  "path": "/absolute/path/to/file.pdf",
  "filename": "report.pdf"
}

Or with base64 content:

{
  "content_base64": "SGVsbG8gd29ybGQ=",
  "filename": "hello.txt"
}

Gmail Setup

For Gmail, use an App Password:

  1. Enable 2-Step Verification on your Google account
  2. Generate an App Password for "Mail"
  3. Use that as SMTP_PASSWORD

Resend Setup

  1. Sign up at resend.com
  2. Add and verify your domain
  3. Create an API key
  4. Set RESEND_API_KEY and RESEND_FROM

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_email_sender-0.1.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_email_sender-0.1.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file mcp_email_sender-0.1.1.tar.gz.

File metadata

  • Download URL: mcp_email_sender-0.1.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mcp_email_sender-0.1.1.tar.gz
Algorithm Hash digest
SHA256 772d6b1c0a21910c2eeac90a004e0ae28e05aae80e93c1a6ec8fbc0d49f750ac
MD5 b254a9599d0730bcf3f5c3f061085bf5
BLAKE2b-256 7820f8c2282c96be1fc5aeddbcf92228f34ae8dc3c00fac54e6e8e500e4be26c

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_email_sender-0.1.1.tar.gz:

Publisher: publish.yml on uaniay/plugins

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcp_email_sender-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_email_sender-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 32918c8332c5111800e23232368370e33c0a80dfa5289d63c5d3d96585210aba
MD5 87befa9b8eee1ff6f9fd5491c257bf15
BLAKE2b-256 df88a8749f4520c714ad00bc1bd56f03fcc9a0934dea253cfaad9458403e819e

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_email_sender-0.1.1-py3-none-any.whl:

Publisher: publish.yml on uaniay/plugins

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page