mcp-email
Allows reading, searching, managing, and sending emails via Gmail accounts using IMAP and SMTP.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-emailshow me my last 3 unread emails"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-email
A minimal MCP server for reading, searching, managing, and sending email over IMAP and SMTP. Version 0.1 targets Gmail, while connection settings remain configurable through environment variables.
Features
Connect to and health-check an IMAP account
List folders and recent inbox messages
Read plain-text and HTML email bodies
Search by unread status, subject, sender, and date
Send plain-text or HTML email with optional CC and BCC
Mark messages read or unread and permanently delete messages
List attachment filenames
Return a cleaned email body as a basic summary
Related MCP server: email-mcp
Setup
Python 3.12 or newer is required.
python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txtCopy .env.example to .env and fill in your account details. For Gmail,
enable IMAP and use a Google App Password instead of your account password.
Never commit .env.
EMAIL_PROVIDER=gmail
EMAIL_ADDRESS=example@gmail.com
EMAIL_SECRET=your-google-app-password
IMAP_HOST=imap.gmail.com
IMAP_PORT=993
SMTP_HOST=smtp.gmail.com
SMTP_PORT=465Run
python server.pyExample MCP client configuration:
{
"mcpServers": {
"email": {
"command": "python",
"args": [
"C:/Users/your-user/Documents/GitHub/mcp-email/server.py"
]
}
}
}Tools
connect()health()list_folders()latest_emails(limit=5)read_email(message_id)search_emails(unread=False, subject=None, sender=None, since=None, before=None, limit=50)send_email(to, subject, body, cc=None, bcc=None, html=False)mark_read(message_id)mark_unread(message_id)delete_email(message_id)list_attachments(message_id)summarize_email(message_id)
delete_email expunges the selected message immediately and cannot be undone.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
MCP server for MailTempo's public free temporary email inboxes.
Email infrastructure for AI agents — send, receive, search, and reply to email over MCP.
A MCP server for Gmail that lets you search, read, and draft emails and replies.
MCP server for Nylas — read email, calendars, events and contacts, and send email or create events.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceCross-platform MCP server and CLI for email operations, including send, read, search, and contact management, compatible with Gmail, Outlook, Yahoo, and any IMAP/SMTP providers.321MIT
- AlicenseAqualityDmaintenanceLocal MCP server for multi-account IMAP/SMTP email (iCloud + Gmail via app-specific passwords). Never marks mail read. Cross-folder search, idempotent sends, TLS verified.8MIT
- FlicenseNot gradedqualityBmaintenanceA minimal MCP server for reading and sending emails via IMAP/SMTP, supporting multiple accounts in a single instance with zero external dependencies.1-
- AlicenseAqualityCmaintenanceMCP server for reading, searching, and sending ProtonMail emails via the ProtonMail Bridge.162GPL 3.0
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/algonacci/mcp-email'
If you have feedback or need assistance with the MCP directory API, please join our Discord server