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
Maintenance
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
| Server | Reaches | Needs | Stars | Last update | Licence |
|---|---|---|---|---|---|
| mail-mcp (this page) | gmail, mail | MAIL_OAUTH2_DEFAULT_CLIENT_SECRET, MAIL_OAUTH2_DEFAULT_REFRESH_TOKEN, MAIL_OAUTH2_WORK_CLIENT_SECRET, MAIL_OAUTH2_WORK_REFRESH_TOKEN | 108 | 2026-10-23 | MIT |
| google-workspace-mcp | gmail, google(1 shared) | GOOGLE_CLIENT_SECRET | 192 | 2026-10-21 | Apache-2.0 |
| mcp-server-email | gmail(1 shared) | None listed | 81 | 2025-04-27 | MIT |
| mcp-headless-gmail | gmail(1 shared) | None listed | 55 | 2025-05-24 | MIT |
| mail-use | gmail(1 shared) | None listed | 47 | 2026-10-13 | MIT |
| google-workspace-mcp-server | gmail, google(1 shared) | GOOGLE_CLIENT_SECRET, GOOGLE_REFRESH_TOKEN | 31 | 2024-12-29 | MIT |
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
- line-bot-mcp-server789 stars
- graphlit-mcp-server377 stars
- mcp-email-server368 stars
- telegram-mcp349 stars
- human-in-the-loop230 stars
- google-workspace-mcp192 stars