Email MCP Server
gabigabogabu/email-mcp-server · 14 stars · TypeScript · ISC
MCP server Model Context Protocol Server with IMAP and SMTP connectivity
Install
The repo has no one-line install. Follow its README.
Files
Email MCP Server
A Model Context Protocol (MCP) server for email integration using IMAP and SMTP protocols. This server allows model assistants to access and interact with email accounts.
Features
- Read emails from IMAP mailboxes
- Send emails via SMTP
- Search emails
- List email folders
Prerequisites
- Node.js (v16 or higher)
- npm or yarn
- Email account with IMAP and SMTP access
Setup
-
Clone the repository:
git clone <repository-url> cd imap-mcp -
Install dependencies:
npm install -
Create a
.envfile in the root directory with the following variables:EMAIL_USER=your-email@example.com EMAIL_PASSWORD=your-password IMAP_HOST=imap.example.com IMAP_PORT=993 SMTP_HOST=smtp.example.com SMTP_PORT=465
Usage
Development
To run the server in development mode:
npm run dev
This will watch for changes, recompile TypeScript, and restart the server automatically.
Production
To build and run the server in production mode:
npm run build
npm start
API
The server exposes the following MCP resources:
mailto:<email-address>/inbox- List of 10 most recent emails in the inboxmailto:<email-address>/folders- List of email folders/mailboxes
And the following MCP tools:
send_email- Send an email messagesearch_emails- Search for emails with advanced query optionslist_folders- List all available email folders/mailboxes
License
ISC License - see LICENSE for details
Facts
- Kind
- MCP server
- Group
- Uncategorized
- Stars
- 14
- License
- ISC
- Language
- TypeScript
- Last push
- 2025-04-08
- Forks
- 2
- Topics
- anthropic, claude, mcp, mcp-server, node, typescript, imapflow, nodemailer
- 1REAio.github.morluto/reaReverse engineer anything from your terminal or agent with one CLI and MCP server.125.3k
- 2com.browser-use/browser-usecom.browser-use/browser-useControl a real Chrome browser to complete any task: fill forms, extract data, book flights.117.7k
- 3World Monitorapp.worldmonitor/mcpLive markets, conflicts, country risk, chokepoints, energy, and China decision signals. 93 tools.88.3k
- 4Scrapling MCP Serverd4vinci/scrapling🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scraplingdev86.9k
- 5Everythingmodelcontextprotocol/serversThis MCP server attempts to exercise all the features of the MCP protocol. It is not intended to be a useful server, but rather a test server for builders of MCP clients. It implements prompts, tools, resources, sampling, and more to showcase MCP capabilities.85.8k
- 6Fetchmodelcontextprotocol/serversA Model Context Protocol server that provides web content fetching capabilities. This server enables LLMs to retrieve and process content from web pages, converting HTML to markdown for easier consumption.85.8k