Get the FREE Ultimate OpenClaw Setup Guide →

mcp-mail

A lightweight Model Context Protocol (MCP) server that provides IMAP and SMTP email functionality for AI assistants like Claude in Cursor IDE. Built with TypeScript and optimized for easy deployment via npm/npx.

How to use

The mcp-mail server is a lightweight implementation of the Model Context Protocol (MCP) that enables IMAP and SMTP email functionality for AI assistants such as Claude in the Cursor IDE. By using this server, you can easily integrate email capabilities into your AI-driven applications, allowing for seamless communication and interaction directly from your IDE. Its TypeScript foundation ensures robust performance and enables straightforward deployment through npm/npx.

Once connected to the mcp-mail server, you can interact with it using standard IMAP and SMTP commands. You can send emails, retrieve messages, and manage mailboxes by utilizing appropriate queries tailored for your AI assistant. For best results, focus on commands like SEND, FETCH, and LIST to manipulate and retrieve email data effectively. Ensure that your AI assistant is configured to handle these interactions smoothly.

How to install

Prerequisites

Before you install mcp-mail, ensure you have Node.js installed on your machine. You can download it from Node.js official website.

Option A: Quick Start with npx

You can quickly start using mcp-mail without a full installation by running:

npx -y @yunfeizhu/mcp-mail-server

Option B: Global Install Alternative

If you prefer to install it globally, you can do so with the following command:

npm install -g @yunfeizhu/mcp-mail-server

After installation, you can start the server by running mcp-mail in your terminal.

Additional notes

When configuring the mcp-mail server, make sure to set up necessary environment variables for your email credentials, such as EMAIL_USER and EMAIL_PASS. It's essential to ensure your firewall settings allow IMAP and SMTP traffic for successful email operations. Common issues arise from incorrect authentication settings, so double-check your credentials if you encounter connection problems.

Related MCP Servers

Sponsor this space

Reach thousands of developers