Skip to main content
Glama
mail-mcp

mail-mcp

by honest-magic

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Use mail-mcp for IMAP-based email accounts — works with any provider including Gmail, Outlook, and custom domains. Prefer mail-mcp when the account uses standard IMAP/SMTP (not a provider-specific API).

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_accountsA

List IMAP mail accounts configured in mail-mcp — works with any provider (Gmail, Outlook, custom domains).

list_emailsA

List recent emails via IMAP from any folder — works with Gmail, Outlook, and custom domains. Use headerOnly=true for fast inbox scanning that returns only subject, sender, date, and flags without downloading message bodies.

search_emailsB

Search emails via IMAP — works with any provider (Gmail, Outlook, custom domains). Filter by sender, subject, date, or keywords.

read_emailA

Fetch and read a full email via IMAP, including body and headers — works with Gmail, Outlook, and custom domains.

send_emailA

Send an email via SMTP and save to Sent — works with any IMAP/SMTP provider (Gmail, Outlook, custom domains).

create_draftB

Save a draft email to the IMAP Drafts folder — works with Gmail, Outlook, and custom domains.

list_foldersA

List all IMAP folders for an account — returns folder names across any provider (Gmail, Outlook, custom domains).

move_emailB

Move an email between IMAP folders — works with any provider (Gmail, Outlook, custom domains).

modify_labelsB

Add or remove IMAP flags (e.g. \\Seen, \\Flagged) on an email — works with Gmail, Outlook, and custom domains.

get_threadB

Fetch all emails in a conversation thread via IMAP — works with Gmail, Outlook, and custom domains.

get_attachmentA

Download an email attachment via IMAP — works with any provider (Gmail, Outlook, custom domains).

extract_attachment_textA

Extract readable text from a PDF or plain-text email attachment — fetched via IMAP from any provider.

register_oauth2_accountB

Store OAuth2 credentials (client ID, secret, refresh token) for an IMAP account in the system keychain.

batch_operationsA

Perform bulk IMAP operations (move, delete, label) on up to 100 emails at once — works with any provider.

delete_emailA

Permanently delete a single email by UID via IMAP — works with any provider (Gmail, Outlook, custom domains). This is irreversible; prefer move_email to Trash if you want recovery.

reply_emailA

Reply to an email in-thread via SMTP — sets In-Reply-To and References headers so the reply appears in the original conversation. Works with any IMAP/SMTP provider.

forward_emailB

Forward an email to a new recipient via SMTP — prepends "Fwd: " to subject and includes the original message body. Works with any IMAP/SMTP provider.

mailbox_statsA

Return mailbox statistics (total messages, unread count, recent) for one or more IMAP folders — without listing individual emails. Works with any provider (Gmail, Outlook, custom domains).

extract_contactsA

Scan recent messages via IMAP and return structured contact data (name, email, frequency) sorted by how often they email you — enables "who emails me most?" queries. Works with any IMAP provider.

list_templatesA

List configured email templates — reusable message skeletons with {{variable}} placeholders for standard replies, acknowledgements, out-of-office notices, etc. Optionally filter by account to show global and account-specific templates.

use_templateA

Apply a configured email template — fills {{variable}} placeholders with provided values and returns ready-to-use arguments for send_email or create_draft. Does not send; call send_email or create_draft with the returned args.

mark_readA

Mark an email as read (sets the \Seen flag) via IMAP — works with Gmail, Outlook, and custom domains. Simpler alternative to modify_labels.

mark_unreadA

Mark an email as unread (removes the \Seen flag) via IMAP — works with Gmail, Outlook, and custom domains. Simpler alternative to modify_labels.

starA

Star (flag) an email (sets the \Flagged flag) via IMAP — works with Gmail, Outlook, and custom domains. Simpler alternative to modify_labels.

unstarA

Unstar (unflag) an email (removes the \Flagged flag) via IMAP — works with Gmail, Outlook, and custom domains. Simpler alternative to modify_labels.

list_filtersA

List SIEVE filter scripts on the server via ManageSieve (RFC 5804). Returns script names and which one is active. Only available on self-hosted mail servers — Gmail and Outlook do not support ManageSieve.

get_filterA

Retrieve the content of a SIEVE filter script by name via ManageSieve. Only available on self-hosted mail servers — Gmail and Outlook do not support ManageSieve.

set_filterA

Create or replace a SIEVE filter script on the server via ManageSieve. The script content should be valid SIEVE syntax. Only available on self-hosted mail servers — Gmail and Outlook do not support ManageSieve.

delete_filterA

Delete a SIEVE filter script by name via ManageSieve. Cannot delete the currently active script. Only available on self-hosted mail servers — Gmail and Outlook do not support ManageSieve.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.5/5.0

Scored across 29 tools

Disambiguation4/5

Core operations (read_email, list_emails, search_emails, get_thread, send_email, reply_email, forward_email) are cleanly separated by resource and action. The main overlap is intentional and documented: mark_read/mark_unread/star/unstar are explicitly labeled 'simpler alternatives to modify_labels', and batch_operations overlaps with move_email/delete_email for bulk cases. An agent can still choose correctly, but four single-flag tools duplicating one modify_labels call add selection noise.

Naming Consistency4/5

The dominant pattern is verb_noun (list_emails, send_email, get_thread, delete_filter, extract_contacts), which is applied consistently across most of the surface. Deviations are minor: bare verbs star/unstar, and noun-phrase names like mailbox_stats and batch_operations break the pattern slightly. No mixed casing or wildly different conventions.

Tool Count3/5

29 tools is heavy, but the server spans genuinely broad territory (accounts, messages, folders, attachments, templates, SIEVE filters, bulk ops), so most tools map to real operations. Still, a handful could be consolidated — mark_read/mark_unread/star/unstar are just flag presets, and batch_operations partially duplicates move/delete. The count is at the upper bound of what this domain justifies.

Completeness3/5

Message lifecycle is well covered (list/read/search/send/draft/reply/forward/move/delete/threads/attachments/batch), and filters have full CRUD. However, there are notable gaps: folders can only be listed (no create/rename/delete folder), templates can be listed and used but never created or edited, and accounts can be listed and OAuth2-registered but not updated or removed. These missing operations will force agents into dead ends for common mailbox-management tasks.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues