Skip to main content
Glama
Mail MCP Server

Mail MCP Server

by RjRaju143

Mail MCP Server

A Model Context Protocol (MCP) server for email functionality built with TypeScript and Express.

Features

  • Send emails via SMTP

  • Retrieve email history

  • Delete emails

  • Get latest email

  • MCP protocol integration

Related MCP server: packet-pigeon

Dependencies

Setup

npm install

Configuration

Create a .env file with your email settings:

EMAIL_HOST=smtp.gmail.com
EMAIL_PORT=587
EMAIL_USER=your-email@gmail.com
EMAIL_PASS=your-app-password
EMAIL_FROM=your-email@gmail.com

Usage

Development

npm run dev

Build

npm run build

Start

npm start

Test

npm test

How to Use

Add this server to your MCP client configuration. The server provides the following tools:

  • send_email - Send an email to a recipient

  • get_emails - Retrieve email history with optional limit

  • delete_email - Delete an email by ID

  • get_latest_email - Get the most recent email

MCP Configuration

Add this to your MCP client configuration file:

{
  "mcpServers": {
    "mail-server": {
      "command": "npx",
      "args": ["tsx", "/path/to/mail-mcp-server/dist/index.js"],
      "env": {
        "EMAIL_HOST": "smtp.gmail.com",
        "EMAIL_PORT": "587",
        "EMAIL_USER": "your-email@gmail.com",
        "EMAIL_PASS": "your-app-password",
        "EMAIL_FROM": "your-email@gmail.com"
      }
    }
  }
}

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables reading and sending emails via IMAP and SMTP through the MCP protocol. Supports multiple email accounts and configuration via UI or environment variables.
      BSD 3-Clause
    • F
      license
      Not graded
      quality
      B
      maintenance
      Provides temporary email inboxes for AI agents, enabling creation, inspection, and deletion of inboxes, retrieval of messages, and extraction of OTPs and verification links via MCP tools.
      6
      -
    • A
      license
      B
      quality
      C
      maintenance
      Enables email integration through MCP, including sending, receiving, searching, replying to, and forwarding emails, plus folder management and multi-account support with encrypted credential storage.
      40
      1,009 npm
      MIT