Skip to main content
Glama
martinzarfl

Mail MCP Server

by martinzarfl

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoHTTP server port for SSE transport (default: 3000)
IMAP_TLSNoUse TLS for IMAP (default: true)
SSE_PATHNoSSE endpoint path (default: /sse)
IMAP_HOSTNoIMAP server hostname (defaults to SMTP_HOST)
IMAP_PASSNoIMAP password (defaults to SMTP_PASS)
IMAP_PORTNoIMAP server port (default: 993)
IMAP_USERNoIMAP username (defaults to SMTP_USER)
SMTP_FROMNoDefault sender email address
SMTP_HOSTYesSMTP server hostname
SMTP_PASSYesSMTP password
SMTP_PORTYesSMTP server port (587 or 465)
SMTP_USERYesSMTP username
TRANSPORTNoEnable SSE transport (set to 'sse')
SMTP_SECURENoUse TLS for SMTP (true for port 465, false for STARTTLS on 587)

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}
prompts
{}
resources
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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