Mail MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PORT | No | HTTP server port for SSE transport (default: 3000) | |
| IMAP_TLS | No | Use TLS for IMAP (default: true) | |
| SSE_PATH | No | SSE endpoint path (default: /sse) | |
| IMAP_HOST | No | IMAP server hostname (defaults to SMTP_HOST) | |
| IMAP_PASS | No | IMAP password (defaults to SMTP_PASS) | |
| IMAP_PORT | No | IMAP server port (default: 993) | |
| IMAP_USER | No | IMAP username (defaults to SMTP_USER) | |
| SMTP_FROM | No | Default sender email address | |
| SMTP_HOST | Yes | SMTP server hostname | |
| SMTP_PASS | Yes | SMTP password | |
| SMTP_PORT | Yes | SMTP server port (587 or 465) | |
| SMTP_USER | Yes | SMTP username | |
| TRANSPORT | No | Enable SSE transport (set to 'sse') | |
| SMTP_SECURE | No | Use TLS for SMTP (true for port 465, false for STARTTLS on 587) |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {} |
| prompts | {} |
| resources | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| send_emailA | Send an email via SMTP. Supports HTML and plain text content, attachments, and CC/BCC recipients. |
| verify_connectionB | Verify the SMTP connection and authentication using configured credentials. |
| test_smtp_configA | Test SMTP configuration with custom credentials without modifying the server configuration. |
| get_smtp_infoB | Get information about the current SMTP configuration (without revealing credentials). |
| list_mailboxesA | List all available mailboxes/folders in the IMAP account. |
| fetch_emailsC | Fetch emails from a specific mailbox. Returns email metadata and content. |
| search_emailsB | Search for emails in a mailbox using a search query (searches in subject, from, and body). |
| mark_emailB | Mark an email with a specific flag (read/unread/flagged/unflagged). |
| create_mailboxB | Create a new mailbox/folder in the IMAP account. |
| delete_mailboxB | Delete a mailbox/folder from the IMAP account. |
| move_messageB | Move an email from one mailbox to another. |
| copy_messageA | Copy an email from one mailbox to another. |
| advanced_searchB | Advanced email search with multiple criteria (from, to, subject, body, date range, size, flags). |
| save_draftC | Save an email as a draft in the Drafts folder. |
| get_threadA | Get all emails in a conversation thread based on a message ID. Returns emails sorted chronologically. |
| download_attachmentA | Download a specific attachment from an email. Returns base64-encoded content. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
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/martinzarfl/mail-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server