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.0.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.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_email_sender-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 a0c5c2a8d93ed7218f2ff8f29be1294129152f8b809371723c670e6d5ee4ce01
MD5 98c20c3f22993bd9cacefcaa84885c30
BLAKE2b-256 913847bea7dae48ca3aa25216d59c251379bc4a9685295e04b852d71369a38f0

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_email_sender-0.1.0.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.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_email_sender-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b502d1efdbdbf395097afeb965e6d16b7ccb5d389b9ae2d966a032a370d3fc6c
MD5 a4835508b998f88bf03e611091219eb7
BLAKE2b-256 a0cfa222f8082575a84b2d239b05319579472e86d83b4a3994d82f4010082971

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_email_sender-0.1.0-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