Skip to content
InfratoApp
InfratoApp / Resources / MCP servers / mail-mcp

mail-mcp

mail-mcp is an MCP server, listed under communication. It reaches gmail and mail. It needs MAIL_OAUTH2_DEFAULT_CLIENT_SECRET, MAIL_OAUTH2_DEFAULT_REFRESH_TOKEN, MAIL_OAUTH2_WORK_CLIENT_SECRET and MAIL_OAUTH2_WORK_REFRESH_TOKEN to authenticate. Its repository has 108 GitHub stars and is licensed under MIT; we last read it on 2026-10-24.

mail-mcp is a secure server for managing IMAP, SMTP, EWS, and Graph API connections, supporting Microsoft 365, Hotmail, Gmail, Zoho, and OAuth2 authentication, with multi-account capabilities.

Install

MCP servers are packaged differently from each other -- some run via npx, some as a Docker image, some as a plain script you clone and run. mail-mcp’s own README did not state one plainly enough for this page to quote it rather than guess, so it will not guess. The repository below states it.

What it reaches, and what it needs

Reaches
gmail, mail
Credential
MAIL_OAUTH2_DEFAULT_CLIENT_SECRET, MAIL_OAUTH2_DEFAULT_REFRESH_TOKEN, MAIL_OAUTH2_WORK_CLIENT_SECRET, MAIL_OAUTH2_WORK_REFRESH_TOKEN

Maintenance

Stars
108
State
listed
Licence
MIT
From the repository

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

What mail-mcp can do

3 tools documented in its README. An AI client calls these by name.

imap_get_attachment
Download a single email attachment to disk.
imap_get_message
Retrieve metadata and optionally extracted text from an email message.
imap_get_message_raw
Retrieve the raw content of an email message, up to 1 MB.

Read from the README; names are kept only if the README contains them.

mail-mcp compared with similar servers

mail-mcp compared with the closest alternatives, by services reached, credentials, stars, last update and licence
ServerReachesNeedsStarsLast updateLicence
mail-mcp (this page)gmail, mailMAIL_OAUTH2_DEFAULT_CLIENT_SECRET, MAIL_OAUTH2_DEFAULT_REFRESH_TOKEN, MAIL_OAUTH2_WORK_CLIENT_SECRET, MAIL_OAUTH2_WORK_REFRESH_TOKEN1082026-10-23MIT
google-workspace-mcpgmail, google(1 shared)GOOGLE_CLIENT_SECRET1922026-10-21Apache-2.0
mcp-server-emailgmail(1 shared)None listed812025-04-27MIT
mcp-headless-gmailgmail(1 shared)None listed552025-05-24MIT
mail-usegmail(1 shared)None listed472026-10-13MIT
google-workspace-mcp-servergmail, google(1 shared)GOOGLE_CLIENT_SECRET, GOOGLE_REFRESH_TOKEN312024-12-29MIT

Ranked by services in common with mail-mcp, then by stars. Figures are from each repository when we last read it.

Common questions about mail-mcp

What does mail-mcp do?
mail-mcp is a secure server for managing IMAP, SMTP, EWS, and Graph API connections, supporting Microsoft 365, Hotmail, Gmail, Zoho, and OAuth2 authentication, with multi-account capabilities.
How do I install mail-mcp?
Its README did not state an install command plainly enough for us to quote one, so we do not guess. The repository has the instructions: https://github.com/tecnologicachile/mail-mcp
What does mail-mcp connect to, and what does it need?
It reaches gmail and mail. The credentials we found in its source are MAIL_OAUTH2_DEFAULT_CLIENT_SECRET, MAIL_OAUTH2_DEFAULT_REFRESH_TOKEN, MAIL_OAUTH2_WORK_CLIENT_SECRET and MAIL_OAUTH2_WORK_REFRESH_TOKEN.
Is mail-mcp official and is it maintained?
We found nothing naming it as a vendor’s official server. Its repository has 108 GitHub stars and its state in our directory is listed. Its last commit we recorded was on 2026-10-23.
What licence does mail-mcp use?
The repository declares the MIT licence.

More MCP servers for communication

All communication entries →

Learn this on Infrato