Email MCP Server
@gabigabogabu
Model Context Protocol Server with IMAP and SMTP connectivity
Overview
What is Email MCP Server?
A Model Context Protocol (MCP) server that integrates email via IMAP and SMTP protocols, allowing AI assistants to read, send, search, and manage email folders.
How to use Email MCP Server?
Clone the repository, install dependencies with npm install, and create a .env file with your email credentials, IMAP host/port, and SMTP host/port. Run in development with npm run dev or build and start for production with npm run build && npm start.
Key features of Email MCP Server?
- Read emails from IMAP mailboxes
- Send emails via SMTP
- Search emails with advanced queries
- List email folders/mailboxes
Use cases of Email MCP Server?
- AI assistant reads the 10 most recent inbox emails
- AI assistant sends emails on behalf of the user
- AI assistant searches for specific emails using query options
- AI assistant lists all available email folders
- Automating email workflows through MCP interactions
FAQ from Email MCP Server
What are the system requirements?
Node.js v16 or higher and an email account with IMAP and SMTP access.
How do I configure credentials?
Create a .env file with EMAIL_USER, EMAIL_PASSWORD, IMAP_HOST, IMAP_PORT, SMTP_HOST, and SMTP_PORT.
How many emails does the inbox resource return?
The mailto:<email-address>/inbox resource returns only the 10 most recent emails.
What protocols does the server use?
It uses IMAP for reading and SMTP for sending emails.
Is my email data stored locally?
No, data remains on the email server; all operations are done via IMAP/SMTP.