Mail MCP Server
Allows sending emails through Gmail's SMTP server using configured credentials, with additional tools for managing the server's email history (listing, deleting, and fetching the latest email).
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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
nodemailer - Email sending
@modelcontextprotocol/sdk - MCP protocol support
express - Web framework
typescript - Type safety
vitest - Testing framework
Setup
npm installConfiguration
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.comUsage
Development
npm run devBuild
npm run buildStart
npm startTest
npm testHow to Use
Add this server to your MCP client configuration. The server provides the following tools:
send_email- Send an email to a recipientget_emails- Retrieve email history with optional limitdelete_email- Delete an email by IDget_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…
This server cannot be deployed
Maintenance
Related MCP Connectors
Email infrastructure for AI agents — send, receive, search, and reply to email over MCP.
Email and optional phone for AI agents: send, receive, search, draft and call over MCP.
Send transactional email and manage domains, audiences, and broadcasts from any MCP client.
Email inboxes for AI agents: send, receive, reply, search, and manage threaded email over MCP.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables 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
- FlicenseNot gradedqualityCmaintenanceEmail capabilities for AI agents to receive, read, reply, and send through MCP.-
- FlicenseNot gradedqualityBmaintenanceProvides 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-
- AlicenseBqualityCmaintenanceEnables email integration through MCP, including sending, receiving, searching, replying to, and forwarding emails, plus folder management and multi-account support with encrypted credential storage.401,009 npmMIT