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
Metadata
Release files for mcp-email-sender 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mcp_email_sender-0.1.2.tar.gz | 3.8 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcp_email_sender-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.4 kB
Release files / mcp_email_sender-0.1.2.tar.gz
| Download URL | mcp_email_sender-0.1.2.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ce2d068478c50b9a950e6ca481adb350b0a35e879453d0d2f7c600674bcb3f4d
|
|
BLAKE2b-256 checksum How to use checksums |
ead79456cf12165fed9e31737b32b95396748f0a74a788a71509a89e3dd97bfb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 31, 2026.
Transparency logRelease files / mcp_email_sender-0.1.2-py3-none-any.whl
| Download URL | mcp_email_sender-0.1.2-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b2898c1c5c510ed5bb98320ef3773c579c8b63afe4a78393a265e97b9cb03191
|
|
BLAKE2b-256 checksum How to use checksums |
2319e8bbc96a4e56dc88dce3d5e0bc26c9d6d4ce7dd81740d291dec517ec260d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 31, 2026.
Transparency logSecurity for mcp-email-sender 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for mcp_email_sender-0.1.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 31, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.