Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_EMAIL_SERVER_IMAP_SSLNoEnable IMAP SSLtrue
MCP_EMAIL_SERVER_PASSWORDYesEmail password
MCP_EMAIL_SERVER_SMTP_SSLNoEnable SMTP SSLtrue
MCP_EMAIL_SERVER_FULL_NAMENoDisplay name (defaults to email prefix if not provided)
MCP_EMAIL_SERVER_IMAP_HOSTYesIMAP server host
MCP_EMAIL_SERVER_IMAP_PORTNoIMAP server port993
MCP_EMAIL_SERVER_SMTP_HOSTYesSMTP server host
MCP_EMAIL_SERVER_SMTP_PORTNoSMTP server port465
MCP_EMAIL_SERVER_USER_NAMENoLogin username (defaults to same as email if not provided)
MCP_EMAIL_SERVER_ACCOUNT_NAMENoAccount identifierdefault
MCP_EMAIL_SERVER_EMAIL_ADDRESSYesEmail address
MCP_EMAIL_SERVER_IMAP_PASSWORDNoSeparate IMAP password
MCP_EMAIL_SERVER_SMTP_PASSWORDNoSeparate SMTP password
MCP_EMAIL_SERVER_IMAP_USER_NAMENoSeparate IMAP username
MCP_EMAIL_SERVER_SMTP_START_SSLNoEnable STARTTLSfalse
MCP_EMAIL_SERVER_SMTP_USER_NAMENoSeparate SMTP username

Tools

Functions exposed to the LLM to take actions

NameDescription
list_available_accounts

List all configured email accounts with masked credentials.

add_email_account

Add a new email account configuration to the settings.

list_emails_metadata

List email metadata (email_id, subject, sender, recipients, date) without body content. Returns email_id for use with get_emails_content.

get_emails_content

Get the full content (including body) of one or more emails by their email_id. Use list_emails_metadata first to get the email_id.

send_email

Send an email using the specified account. Supports replying to emails with proper threading when in_reply_to is provided.

delete_emails

Delete one or more emails by their email_id. Use list_emails_metadata first to get the email_id.

download_attachment

Download an email attachment and save it to the specified path. This feature must be explicitly enabled in settings (enable_attachment_download=true) due to security considerations.

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/ai-zerolab/mcp-email-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server