MCP ScannerCustom audit
All servers

tecnologicachile/mail-mcp

Secure IMAP/SMTP/EWS/Graph API MCP server in Rust — Microsoft 365, Hotmail, Gmail, Zoho, OAuth2, multi-account

Packagemail-mcp
Version0.7.1 in Cargo.toml
Publishertecnologicachile community
MCP Registrynot listed
Scanned2026-11-25
Scannerv1.3.0
Methodologyv1.2
Stars 118Forks 35Last push 2026-10-23
Rust 100.0%by source files the scanner reads
Code safetypartly tracedExposure6.1Prompts10.0Supply chain6.0Secrets10.0Transparency10.0
Analysis confidence91%
How much of the server the scanner could read: tools analyzed, files parsed, limits hit.
Code Safetypartly traced—

Paths from tool input into commands, SQL, files and URLs

Capability Exposure6.1/10Fair

How much power the tools give an agent over the machine

Prompt Integritynothing published yet10.0/10

Hidden instructions and poisoning in text for the model

Supply Chain6.0/10Fair

Known vulnerabilities in the packages the server uses

Secrets & Credentialsnothing published yet10.0/10

How the server reads credentials and where they can go

Behavior Transparencynothing published yet10.0/10

Whether the tools do only what their descriptions say

How far the analysis went

The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.

  • In 28 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there

Top risks in plain words

  • MEDIUM5 production dependencies have known vulnerabilities (worst: medium).

How to use it safely

Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.

  • Update its vulnerable packages

    Use lettre 0.11.24 or later, url 2.5.9 or later.

  • Keep confirmations on

    Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.

What its tools can do on your machine

The server offers 37 tools. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.

Read or write filesopen, create, change or delete files
draft_create, draft_delete, draft_list, draft_send, draft_update, ews_get_message and 27 more
33 of 37
Connect to the internet or other hostssend requests or open connections
draft_list, draft_send, imap_copy_message, imap_get_attachment, imap_get_message, imap_get_message_raw and 5 more
11 of 37

No tool was seen to: start other programs on the machine; read passwords, tokens or keys; read environment variables; touch sensitive locations.

Where its requests and secrets go

Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.

Hosts written in the code

The literal addresses the tools' requests name.

  • None: no request names a fixed host.
Addresses from settings

Constants or settings that start an address; the value comes from configuration.

  • None seen.
Secrets it reads

Credential-like environment variables. Give the server a key with the least access it needs.

  • None: no credential-like variable is read by the tools.

Text it brings in from outside

Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.

  • files6 tools · draft_create, draft_update, graph_send_message +3
Reads private data30 tools
Takes text from outside0 tools
Can send data out0 tools

Not all three are present in the tools the scanner traced.

Tool annotations

No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.

Tools, prompts and resources (37: 37 tools)

Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.

draft_createtool Save a new email as a draft in the account's Drafts folder (IMAP, EWS or Graph, chosen from the account's configuration). Nothing is sent. Requires MAIL_DRAFTS_Filesoutside text
Save a new email as a draft in the account's Drafts folder (IMAP, EWS or Graph, chosen from the account's configuration). Nothing is sent. Requires MAIL_DRAFTS_ENABLED=true.
draft_deletetool Delete a draft. Only acts on drafts. Requires MAIL_DRAFTS_ENABLED=true and confirm=true.Files
Delete a draft. Only acts on drafts. Requires MAIL_DRAFTS_ENABLED=true and confirm=true.
draft_listtool List the account's drafts, newest first, with their draft_id. Requires MAIL_DRAFTS_ENABLED=true.FilesNetwork
List the account's drafts, newest first, with their draft_id. Requires MAIL_DRAFTS_ENABLED=true.
draft_sendtool Send an existing draft and remove it from Drafts. Requires MAIL_DRAFTS_ENABLED=true and MAIL_SMTP_WRITE_ENABLED=true. Before calling, show the user the draft's FilesNetwork
Send an existing draft and remove it from Drafts. Requires MAIL_DRAFTS_ENABLED=true and MAIL_SMTP_WRITE_ENABLED=true. Before calling, show the user the draft's recipients, subject and body and get explicit confirmation.
draft_updatetool Replace a draft's recipients, subject, body and attachments (full replacement: attachments not passed again are dropped). Returns a new draft_id; the old one stFilesoutside text
Replace a draft's recipients, subject, body and attachments (full replacement: attachments not passed again are dropped). Returns a new draft_id; the old one stops working. Requires MAIL_DRAFTS_ENABLED=true.
ews_get_messagetool Get full email content via Exchange Web Services using an EWS item ID.Files
Get full email content via Exchange Web Services using an EWS item ID.
ews_search_messagestool Search emails via Exchange Web Services. Preferred for Microsoft accounts. Supports inbox, sent, drafts, deleted, junk folders.Files
Search emails via Exchange Web Services. Preferred for Microsoft accounts. Supports inbox, sent, drafts, deleted, junk folders.
ews_send_messagetool Send email via Exchange Web Services. Works on Microsoft tenants that block SMTP and Graph API. Before calling, show the user a full preview (To, CC, BCC, subje
Send email via Exchange Web Services. Works on Microsoft tenants that block SMTP and Graph API. Before calling, show the user a full preview (To, CC, BCC, subject, rendered body, attachments) and get explicit confirmation.
get_setup_guidetool Get detailed setup instructions for email providers (Microsoft OAuth2, Gmail, Zoho, etc.)
Get detailed setup instructions for email providers (Microsoft OAuth2, Gmail, Zoho, etc.)
graph_send_messagetool Send email via Microsoft Graph API (required for personal hotmail/outlook.com accounts where SMTP is blocked). Before calling, show the user a full preview (To,Filesoutside text
Send email via Microsoft Graph API (required for personal hotmail/outlook.com accounts where SMTP is blocked). Before calling, show the user a full preview (To, CC, BCC, subject, rendered body, attachments) and get explicit confirmation.
imap_append_messagetool Append a raw RFC822 message to a mailboxFiles
Append a raw RFC822 message to a mailbox
imap_bulk_deletetool Delete up to 500 messages in one operationFiles
Delete up to 500 messages in one operation
imap_bulk_movetool Move up to 500 messages to a mailbox in one operationFiles
Move up to 500 messages to a mailbox in one operation
imap_bulk_update_flagstool Update flags on up to 500 messages in one operationFiles
Update flags on up to 500 messages in one operation
imap_copy_messagetool Copy a message to a mailbox, in the same account or in another one (destination_account_id)FilesNetwork
Copy a message to a mailbox, in the same account or in another one (destination_account_id)
imap_create_mailboxtool Create a new mailbox/folderFiles
Create a new mailbox/folder
imap_delete_mailboxtool Delete a mailbox/folderFiles
Delete a mailbox/folder
imap_delete_messagetool Delete a message. Requires confirm=trueFiles
Delete a message. Requires confirm=true
imap_get_attachmenttool Download one attachment (by part_id from imap_get_message, or by filename) to disk and return its path. The bytes stay out of the response unless include_base64FilesNetworkoutside text
Download one attachment (by part_id from imap_get_message, or by filename) to disk and return its path. The bytes stay out of the response unless include_base64 is set and the file is within max_inline_bytes
imap_get_messagetool Get parsed message detailsFilesNetwork
Get parsed message details
imap_get_message_rawtool Get bounded RFC822 sourceFilesNetwork
Get bounded RFC822 source
imap_list_accountstool List configured IMAP accounts (use list_all_accounts for full capabilities view)
List configured IMAP accounts (use list_all_accounts for full capabilities view)
imap_list_mailboxestool List mailboxes for an accountFiles
List mailboxes for an account
imap_mailbox_statustool Get mailbox message counts (total, unseen, recent) without selecting itFiles
Get mailbox message counts (total, unseen, recent) without selecting it
imap_move_messagetool Move a message to a mailbox in the same account. To move across accounts, copy it with imap_copy_message and then delete the originalFiles
Move a message to a mailbox in the same account. To move across accounts, copy it with imap_copy_message and then delete the original
imap_rename_mailboxtool Rename a mailbox/folderFiles
Rename a mailbox/folder
imap_search_all_mailboxestool Search every mailbox of an account in one call (e.g. a whole conversation via thread_message_id); results are newest first and labelled with their mailboxFilesNetwork
Search every mailbox of an account in one call (e.g. a whole conversation via thread_message_id); results are newest first and labelled with their mailbox
imap_search_and_deletetool Search messages and delete matches in one operation (up to 500). Requires confirm=trueFiles
Search messages and delete matches in one operation (up to 500). Requires confirm=true
imap_search_and_movetool Search messages and move matches to a mailbox in one operation (up to 500)Files
Search messages and move matches to a mailbox in one operation (up to 500)
imap_search_messagestool Search messages with cursor paginationFilesNetwork
Search messages with cursor pagination
imap_update_message_flagstool Add or remove IMAP flagsFilesNetwork
Add or remove IMAP flags
imap_verify_accounttool Verify account connectivity and capabilitiesFiles
Verify account connectivity and capabilities
list_all_accountstool List all configured email accounts with their capabilities (IMAP, SMTP, Graph API, EWS). Use this to know which send/read tools to use per account.
List all configured email accounts with their capabilities (IMAP, SMTP, Graph API, EWS). Use this to know which send/read tools to use per account.
smtp_forward_messagetool Forward an existing message via SMTP. Before calling, show the user a full preview (To, CC, BCC, subject, rendered body, attachments) and get explicit confirmatFilesNetwork
Forward an existing message via SMTP. Before calling, show the user a full preview (To, CC, BCC, subject, rendered body, attachments) and get explicit confirmation.
smtp_reply_messagetool Reply to an existing message via SMTP (fetches original for proper threading). Before calling, show the user a full preview (To, CC, BCC, subject, rendered bodyFilesNetworkoutside text
Reply to an existing message via SMTP (fetches original for proper threading). Before calling, show the user a full preview (To, CC, BCC, subject, rendered body, attachments) and get explicit confirmation.
smtp_send_messagetool Send a new email via SMTP. Before calling, show the user a full preview (To, CC, BCC, subject, rendered body, attachments) and get explicit confirmation.Filesoutside text
Send a new email via SMTP. Before calling, show the user a full preview (To, CC, BCC, subject, rendered body, attachments) and get explicit confirmation.
smtp_verify_accounttool Test SMTP account connectivity and authenticationFiles
Test SMTP account connectivity and authentication

Text the model reads (37)

Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.

list_all_accounts tool
List all configured email accounts with their capabilities (IMAP, SMTP, Graph API, EWS). Use this to know which send/read tools to use per account.
imap_list_accounts tool
List configured IMAP accounts (use list_all_accounts for full capabilities view)
imap_verify_account tool
Verify account connectivity and capabilities
imap_list_mailboxes tool
List mailboxes for an account
imap_search_messages tool
Search messages with cursor pagination
imap_search_all_mailboxes tool
Search every mailbox of an account in one call (e.g. a whole conversation via thread_message_id); results are newest first and labelled with their mailbox
imap_get_message tool
Get parsed message details
imap_get_message_raw tool
Get bounded RFC822 source
imap_get_attachment tool
Download one attachment (by part_id from imap_get_message, or by filename) to disk and return its path. The bytes stay out of the response unless include_base64 is set and the file is within max_inline_bytes
imap_update_message_flags tool
Add or remove IMAP flags
imap_copy_message tool
Copy a message to a mailbox, in the same account or in another one (destination_account_id)
imap_move_message tool
Move a message to a mailbox in the same account. To move across accounts, copy it with imap_copy_message and then delete the original
imap_delete_message tool
Delete a message. Requires confirm=true
imap_create_mailbox tool
Create a new mailbox/folder
imap_delete_mailbox tool
Delete a mailbox/folder
imap_rename_mailbox tool
Rename a mailbox/folder
imap_mailbox_status tool
Get mailbox message counts (total, unseen, recent) without selecting it
imap_bulk_move tool
Move up to 500 messages to a mailbox in one operation
imap_bulk_delete tool
Delete up to 500 messages in one operation
imap_bulk_update_flags tool
Update flags on up to 500 messages in one operation
imap_append_message tool
Append a raw RFC822 message to a mailbox
imap_search_and_move tool
Search messages and move matches to a mailbox in one operation (up to 500)
imap_search_and_delete tool
Search messages and delete matches in one operation (up to 500). Requires confirm=true
smtp_send_message tool
Send a new email via SMTP. Before calling, show the user a full preview (To, CC, BCC, subject, rendered body, attachments) and get explicit confirmation.
smtp_reply_message tool
Reply to an existing message via SMTP (fetches original for proper threading). Before calling, show the user a full preview (To, CC, BCC, subject, rendered body, attachments) and get explicit confirmation.
smtp_forward_message tool
Forward an existing message via SMTP. Before calling, show the user a full preview (To, CC, BCC, subject, rendered body, attachments) and get explicit confirmation.
smtp_verify_account tool
Test SMTP account connectivity and authentication
graph_send_message tool
Send email via Microsoft Graph API (required for personal hotmail/outlook.com accounts where SMTP is blocked). Before calling, show the user a full preview (To, CC, BCC, subject, rendered body, attachments) and get explicit confirmation.
ews_search_messages tool
Search emails via Exchange Web Services. Preferred for Microsoft accounts. Supports inbox, sent, drafts, deleted, junk folders.
ews_get_message tool
Get full email content via Exchange Web Services using an EWS item ID.
ews_send_message tool
Send email via Exchange Web Services. Works on Microsoft tenants that block SMTP and Graph API. Before calling, show the user a full preview (To, CC, BCC, subject, rendered body, attachments) and get explicit confirmation.
draft_create tool
Save a new email as a draft in the account's Drafts folder (IMAP, EWS or Graph, chosen from the account's configuration). Nothing is sent. Requires MAIL_DRAFTS_ENABLED=true.
draft_update tool
Replace a draft's recipients, subject, body and attachments (full replacement: attachments not passed again are dropped). Returns a new draft_id; the old one stops working. Requires MAIL_DRAFTS_ENABLED=true.
draft_send tool
Send an existing draft and remove it from Drafts. Requires MAIL_DRAFTS_ENABLED=true and MAIL_SMTP_WRITE_ENABLED=true. Before calling, show the user the draft's recipients, subject and body and get explicit confirmation.
draft_delete tool
Delete a draft. Only acts on drafts. Requires MAIL_DRAFTS_ENABLED=true and confirm=true.
draft_list tool
List the account's drafts, newest first, with their draft_id. Requires MAIL_DRAFTS_ENABLED=true.
get_setup_guide tool
Get detailed setup instructions for email providers (Microsoft OAuth2, Gmail, Zoho, etc.)

What we checked

The same checks run on every server. Each line below has one of these marks:

FoundA published issue such as a risky tool or a CVE
PassedWe ran the check on this server and found nothing
After reviewChecked; we publish it once a person verifies it
Partly tracedRan, but the scanner could not follow every path to its end
FactWhat the code does, not a judgement either way
Not checkedThe scanner had nothing to read for it, or it needs the live server
Code Safetypartly traced
  • 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injection
    Checked on every scan. Results in this category are published only after a person has verified them.
Capability Exposure6.1
  • Runs programs the caller chooses
    No tool runs a command or program the caller supplies — 37 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Executes caller-supplied code
    No tool evaluates code the caller supplies — 37 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Reads or writes any file path
    No tool works on a file path the caller supplies without a root check — 37 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Requests any address
    No tool sends a request to an address the caller supplies — 37 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Runs caller-supplied SQL
    No tool executes a query the caller supplies — 37 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Tools that start processes
    Not seen in the traced code of 37 capabilities; 37 more call code the scanner could not follow, where it may happen
  • Tools that touch files
    33 of 37 capabilities touch files; 4 more call code the scanner could not follow, where it may happen
  • Tools that call the network
    11 of 37 capabilities call the network; 26 more call code the scanner could not follow, where it may happen
Where the code is: 37 handlers in 1 file at commit 7fb72674adcc
Prompt Integrity10.0
  • 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrity
    Checked on every scan. Results in this category are published only after a person has verified them.
Supply Chain6.0
  • Dependency manifests
    1 manifest: Cargo.toml
  • Lockfiles checked against OSV
    1 file resolved and checked against the OSV database
  • Known vulnerabilities in production dependencies MEDIUM
    5 production packages with known advisories
  • Known vulnerabilities in other dependencies
    No package used only for development, tests or examples has a known advisory
  • MCP SDK version
    rmcp 3.9
Secrets & Credentials10.0
  • 3 checks: credential harvesting, undeclared credential access, credentials sent over the network
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Tools that read credentials
    Not seen in the traced code of 37 capabilities; 37 more call code the scanner could not follow, where it may happen
  • Authentication declared
    Not checked: needs the live server's tools/list (a remote server declares how clients authenticate)
Behavior Transparency10.0
  • 3 checks: undeclared network access, undeclared file access, undeclared process execution
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Tool descriptions present
    Every tool has a description the model and the user can read
  • Statically known names
    Every tool's name could be read from the code
  • Input schemas
    Not checked: needs the live server's tools/list (every tool declares an input schema)
  • Destructive tools annotated
    Not checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)

Dependencies with known vulnerabilities (5 in production)

PackageInstalledWorstAdvisoriesFixed in
lettrecrates.io 0.11.23 MEDIUM 6 advisories 0.11.24
  • MEDIUMRUSTSEC-2026-0560 GHSA-q3jf-wmp2-47pgSTARTTLS response injection allows a man-in-the-middle to forge SMTP replies
  • MEDIUMRUSTSEC-2026-0563 GHSA-62w5-58xq-p27jMessages for an address with a quoted local part are sent to a different address
  • MEDIUMRUSTSEC-2026-0565 GHSA-pmvc-x69f-5p9fUnbounded buffering of an SMTP reply allows a malicious server to exhaust memory
  • MEDIUMRUSTSEC-2026-0561Missing dot-stuffing after a bare LF or CR allows SMTP command injection
  • MEDIUMRUSTSEC-2026-0562 GHSA-23wm-4vvw-r7p2Panic on an `EHLO` reply line of only white space allows denial of service
  • MEDIUMRUSTSEC-2026-0564Panic on a mailbox display name containing CR or LF allows denial of service
chronocrates.io 0.4.44 MEDIUM 1 advisory no fix yet
pin-utilscrates.io 0.1.0 MEDIUM 1 advisory no fix yet
ttf-parsercrates.io 0.25.1 MEDIUM 1 advisory no fix yet
urlcrates.io 2.5.8 MEDIUM 1 advisory 2.5.9
  • MEDIUMRUSTSEC-2026-0592 GHSA-hrj5-67jp-wqp9Stack overflow in `Url::origin()` on nested `blob:` URLs

Past security advisories

Vulnerabilities published for this server itself, from the GitHub Advisory Database.

No security advisories have been published for this server in the GitHub Advisory Database.

How it runs

Where it runsOn your machine, started by your MCP client from this repository or its package
Transportnot stated in the code the scanner read; most local servers talk over stdio
Sign-innot checked needs the live server
MCP SDKrmcp 3.9

The project's own security

Security policyyes docs/SECURITY.md
Private reportingthe policy does not name a private channel
Past advisoriesnone in the GitHub Advisory Database
Last push2026-10-23
Signed releasesnot checked yet

Where it is published

Listed in5 catalogs (awesome_punkpeye, github_search, glama, mcp_toplist, mcpservers_org)
LicenseMIT
Created2026-03-13
Topicsai-agents claude email exchange imap mcp mcp-server microsoft-graph model-context-protocol oauth2

Attack map

How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.

Request a scan or an audit

Tell us about your server. We reply within 5 working days.

What do you need? *

We use these details only to answer you.