Labsco
MCP SERVER

MCP Email Server

by kentaroh7777

Search, read and send mail across several Gmail and IMAP accounts through one set of tools.

Email: Mailboxes & Delivery
Summary
Cross-account search is the one that saves real time.

search_all_emails runs one query over every configured Gmail and IMAP account, which is the thing no single mail client does well. Every other tool auto-detects the account type from the name, so you never have to remember which of your addresses is which protocol.

What it is

A server that fronts both Gmail (over OAuth2) and IMAP accounts behind a single interface. The account type is detected from the name you pass, so the same tool works on either.

What you get
  • list_emails — messages from any account, with folder, limit and unread-only filters
  • search_emails — search one account, with the account type resolved automatically
  • search_all_emails — one query across every configured Gmail and IMAP account at once
  • get_email_detail — the full message
  • archive_email — archive on either account type, optionally clearing unread
  • send_email — send from any account, with cc, bcc and attachments
  • list_accounts, test_connection and get_account_stats for configuration and health
  • Encrypted password storage for IMAP accounts, and helper scripts for the Gmail OAuth setup
Requirements

Node, built from the repository. An encryption key for stored passwords is required. Gmail accounts need OAuth2 client credentials plus a refresh token per account, obtained through the bundled auth script; IMAP accounts need host, user, encrypted password, port and TLS settings per account.