# SecureMessage Mail MCP server

> Enables AI clients to manage email accounts via IMAP and SMTP, including searching, reading, sending, and organizing messages.

- Repository: https://github.com/securemessage/mail-mcp
- Page: https://hostedmcp.org/servers/securemessage/mail-mcp
- Transport: —
- Stars: 1
- License: BSD-2-Clause

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `MAIL_MCP_CONFIG` | no | no |  |

## Tools (24)

- `mail_connect`
- `mail_disconnect`
- `mail_connection_status`
- `mail_list_mailboxes`
- `mail_open_mailbox`
- `mail_create_mailbox`
- `mail_search`
- `mail_get_message`
- `mail_get_headers`
- `mail_get_messages`
- `mail_get_thread`
- `mail_delete_message`
- `mail_send`
- `mail_reply`
- `mail_create_draft`
- `mail_update_draft`
- `mail_mark_read`
- `mail_mark_unread`
- `mail_set_flags`
- `mail_move_message`
- `mail_get_attachments`
- `mail_save_attachment`
- `mail_list_instances`
- `mail_switch_instance`

## FAQ

### What authentication methods are supported?

The server supports standard password authentication and OAuth/XOAUTH2 for providers like Gmail, Microsoft 365, and Yahoo.

### Does this require any external dependencies like Node.js or Composer?

No, it uses pure PHP socket clients and requires no external dependencies beyond PHP 8.4 and specific standard extensions.

### Can I manage multiple email accounts at once?

Yes, the server supports multi-account management and allows you to switch between accounts at runtime.
