Labsco
MCP SERVER

Read, search, send and file email across IMAP, SMTP, Exchange Web Services and Microsoft Graph, from one server.

Email: Mailboxes & Delivery
Summary
The attachment path is the detail that makes it usable on real mail.

Most mail servers either return attachment metadata only or base64 the whole thing into the reply, which blows the context window on a single photo. Here the bytes go to disk and you get a path back, so the file can be handed to a reader or an image tool without ever passing through the conversation.

What it is

A mail server written in Rust that covers the write side as well as the read side, and speaks four protocols rather than one - so a Microsoft mailbox and a generic IMAP account can sit behind the same tools.

What you get
  • Search messages, list mailboxes and accounts, read a message with its attachment metadata, or fetch the raw source
  • Download a single attachment to disk by part id or filename, so a large file never enters the reply
  • Send, reply and forward over SMTP, with an option to save a copy to the Sent folder per account
  • Exchange Web Services and Microsoft Graph paths for search and send, for mailboxes where IMAP is not the right door
  • Mailbox management - create, rename and delete - and moving or copying single messages
  • Bulk operations: delete, move and flag updates, and search-and-act variants that combine the two
  • Cursor pagination and a setup guide tool for getting an account configured
Requirements

A release binary - no runtime to install. Accounts are configured per account with real OAuth2 where the provider needs it, and several accounts can be live at once. Attachment downloads land in the directory you pass, or MAIL_ATTACHMENT_DOWNLOAD_DIR, or the system temp directory; filenames are sanitised and prefixed to avoid collisions and path traversal. Raw-source reads are capped at 1 MB, and inline attachment bytes are off by default.

Setup effort

Build from source — clone the repository and build it, then point your client at the binary