EmailSAFE
一个基于 MCP (Model Context Protocol) 的邮件服务,支持 LLM 发送带附件的电子邮件及在指定目录中搜索文件。提供安全的 SMTP 传输、多收件人支持和附件模式匹配搜索功能,适用于 Gmail、Outlook、Yahoo、QQ 邮箱和网易 126 邮箱等主流邮箱服务。
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
A Model Context Protocol server that provides email functionality. This server enables LLMs to compose and send emails, as well as search for attachments within specified directories.
Features
- Send emails with multiple recipients
- Support for email attachments
- Search for files in directories based on pattern matching
- Secure email transmission using SMTP
Available Tools
send_email- Sends emails based on the provided subject, body, and receiver.receiver(array of strings, required): List of recipient email addressesbody(string, required): The main content of the emailsubject(string, required): The subject line of the emailattachments(array of strings or string, optional): Email attachments (filenames)
search_attachments- Searches for files in a specified directory that match a given pattern.pattern(string, required): The text pattern to search for in file names
Prompts
- send_email
- Send an email with optional attachments
- Arguments:
receiver(required): The list of recipient email addressesbody(required): The main content of the emailsubject(required): The subject line of the emailattachments(optional): Email attachments
- search_attachments
- Search for files matching a pattern
- Arguments:
pattern(required): The text pattern to search for in file names
Installation
Using pip
Install the required dependencies:
pip install pydantic python-dotenv
Email Configuration
An email.json file with SMTP server configurations:
[
{
"domain": "@gmail.com",
"server": "smtp.gmail.com",
"port": 587
},
{
"domain": "@outlook.com",
"server": "smtp.office365.com",
9a955beb4dc4OBSERVED · 2026-10-07Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add mcp-server-email --env PASSWORD=${PASSWORD} -- uvx mcp-server-email{
"mcpServers": {
"mcp-server-email": {
"command": "uvx",
"args": [
"mcp-server-email"
],
"env": {
"PASSWORD": "${PASSWORD}"
}
}
}
}Exposed tools (4)
2 read · 2 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
search_attachments | read | |
search_attachments_tool | read | Searches for files in a specified directory that match a given pattern. The search can be case-insensitive and returns the full paths of all matching files. |
send_email | write | |
send_email_tool | write | A function call tool designed to send emails based on the provided recipients, subject, body, and optional attachments. This tool ensures secure and accurate email delivery while supporting multiple recipients and customizable content. It is ideal for automating email workflows. |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- none-found
Findings (0)
No findings outside the package's declared scope.
Gates applied: no_behavioural_pass.
9a955beb4dc4full audit observations/trust-audit/mcp-server/shy2593666979__email-1.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-07 | 9a955beb4dc4 | SAFE | B | 89 | first audit |
Questions
What is the Email MCP server?
一个基于 MCP (Model Context Protocol) 的邮件服务,支持 LLM 发送带附件的电子邮件及在指定目录中搜索文件。提供安全的 SMTP 传输、多收件人支持和附件模式匹配搜索功能,适用于 Gmail、Outlook、Yahoo、QQ 邮箱和网易 126 邮箱等主流邮箱服务。
What tools does Email expose?
4 in total: 2 read-only, 2 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Email safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Email need?
It reads PASSWORD from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does Email run?
It speaks stdio, so it runs as a local process your client starts. It is published on PyPI as mcp-server-email.
How current is this page?
The grade is for one exact copy of the source (9a955beb4dc4), read on 2026-10-07. The repository is watched and re-audited when it changes.