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:
- Enable 2-Step Verification on your Google account
- Generate an App Password for "Mail"
- Use that as
SMTP_PASSWORD
Resend Setup
- Sign up at resend.com
- Add and verify your domain
- Create an API key
- Set
RESEND_API_KEYandRESEND_FROM
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0c5c2a8d93ed7218f2ff8f29be1294129152f8b809371723c670e6d5ee4ce01
|
|
| MD5 |
98c20c3f22993bd9cacefcaa84885c30
|
|
| BLAKE2b-256 |
913847bea7dae48ca3aa25216d59c251379bc4a9685295e04b852d71369a38f0
|
Provenance
The following attestation bundles were made for mcp_email_sender-0.1.0.tar.gz:
Publisher:
publish.yml on uaniay/plugins
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_email_sender-0.1.0.tar.gz -
Subject digest:
a0c5c2a8d93ed7218f2ff8f29be1294129152f8b809371723c670e6d5ee4ce01 - Sigstore transparency entry: 2084386735
- Sigstore integration time:
-
Permalink:
uaniay/plugins@dadef314f64b50740dbec6e7a07f775c35f7bd94 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/uaniay
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@dadef314f64b50740dbec6e7a07f775c35f7bd94 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file mcp_email_sender-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mcp_email_sender-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b502d1efdbdbf395097afeb965e6d16b7ccb5d389b9ae2d966a032a370d3fc6c
|
|
| MD5 |
a4835508b998f88bf03e611091219eb7
|
|
| BLAKE2b-256 |
a0cfa222f8082575a84b2d239b05319579472e86d83b4a3994d82f4010082971
|
Provenance
The following attestation bundles were made for mcp_email_sender-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on uaniay/plugins
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_email_sender-0.1.0-py3-none-any.whl -
Subject digest:
b502d1efdbdbf395097afeb965e6d16b7ccb5d389b9ae2d966a032a370d3fc6c - Sigstore transparency entry: 2084386740
- Sigstore integration time:
-
Permalink:
uaniay/plugins@dadef314f64b50740dbec6e7a07f775c35f7bd94 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/uaniay
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@dadef314f64b50740dbec6e7a07f775c35f7bd94 -
Trigger Event:
workflow_dispatch
-
Statement type: