Skip to main content
Glama
kojott

mailmcp

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MAILMCP_KEYYesThe master encryption key for tokens. Must be 32 random bytes as base64url. Changing it invalidates every token.
MAILMCP_LICENSENoYour licence key. Leave empty for the free tier.
MAILMCP_PUBLIC_URLNoPublic URL of the server when running behind a reverse proxy.
MAILMCP_TRUST_PROXYNoSet to 1 to trust the reverse proxy.0
MAILMCP_ALLOW_PRIVATE_MAIL_HOSTSNoSet to 1 to allow connecting to mail servers on private IP addresses.0

Instructions

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

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": true
}
resources
{
  "listChanged": true
}
completions
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_accountsB

Lists the mailboxes: ids, addresses and permitted operations. backend "graph" is Outlook (string ids; labels are categories); reauth_by: when the owner must sign in to Microsoft again (setup page); plan: the mailmcp plan and, near expiry, how to renew. protection: verification emails hidden from you.

list_foldersB

Lists folders (Gmail: labels) with message and unseen counts. On Outlook path is an opaque id and name the hierarchy ("Projects/2026"); tools accept either as a folder.

search_messagesA

Searches one account, or all with account="all". Gmail: query takes Gmail syntax (from:, newer_than:7d, has:attachment, label:); elsewhere full text plus the filters. Newest first, with uid + folder and header hints. Outlook: total counts returned results only; from is exact.

get_messageA

Returns headers, sanitized text body and the attachment list of one message. Body is truncated to the configured limit.

get_threadA

Lists the conversation of a message across folders (Gmail: All Mail; other IMAP: the folder, INBOX, Sent, Archive; Outlook: whole mailbox), oldest first. coverage says what was searched and if it was complete. A thread groups by conversation; it does not prove who replied to whom.

get_attachmentA

Downloads one attachment (max 2097152 bytes into the conversation; with save_to up to 26214400 bytes to disk). Text-like types and PDFs with a text layer are returned as text, others as embedded binary. Pass save_to with a directory inside policy.attachment_dirs to write the file to disk instead; the result names the path.

create_draftA

Saves a draft in the account's Drafts folder. Nothing is sent; the owner reviews and sends it (or asks you to send_draft). Attachments: mailbox attachments, files from upload_attachment/request_upload, or inline content. The preferred way to prepare replies.

get_signatureA

Returns the signature mailmcp appends under replies: the newest message in "mailmcp-signature" (HTML, inline images) when the account uses it, else the plain-text signature from the token.

set_signatureA

Stores the signature (HTML and/or text) as a message in the folder "mailmcp-signature". With a photo or logo the owner instead mails one to themselves and moves it there. Needs the mailbox signature enabled on the setup page and the draft capability.

reply_draftA

Saves a reply to a message into Drafts, in the same thread: threading headers, "Re:" subject, recipients (sender, or all with reply_all) and the quoted original are set by the server. Use whenever the owner says "reply / write a draft" ("odpověz", "napiš koncept"). Nothing is sent.

reply_sendA

Sends a reply to a message in the same thread (threading headers, "Re:" subject, recipients and the quoted original are set by the server). Only when the owner enabled sending AND every recipient matches send_allowlist; otherwise use reply_draft. Only when the owner says "send" ("pošli", "odešli").

send_messageA

Sends an email via SMTP, optionally with attachments (existing mailbox attachments, uploaded files, inline content). Only allowed when the owner enabled sending for the account AND every recipient matches send_allowlist. Otherwise use create_draft.

send_draftA

Sends a draft exactly as stored in the Drafts folder (including its attachments); it leaves Drafts (on Outlook it moves to Sent). Recipients are taken from the draft and must match send_allowlist.

forward_messageA

Forwards a message with all its attachments, without the files passing through the chat; the comment goes above it. Recipients must match send_allowlist; with as_draft the forward is saved to Drafts instead.

upload_attachmentA

Stores a file (text, or base64 for binary; up to policy.max_upload_bytes) in "mailmcp-uploads" and returns {folder, uid, part} to attach; it is removed once attached. Large or local files: request_upload.

request_uploadA

Returns a one-hour HTTPS upload link: PUT/POST a file to it (curl -T file , or open it in a browser); the file lands in "mailmcp-uploads" and appears in list_uploads. Anyone with the link can upload. Upload it yourself if you can run commands; otherwise give the link to the user.

list_uploadsA

Files waiting in "mailmcp-uploads" of an account (from upload_attachment or an upload link), newest first, with the {folder, uid, part} needed to attach them.

modify_messageA

Mark read/unread, star/unstar, add/remove labels (Gmail labels, Outlook categories), move to a folder or archive. A move can change the id of the message: when the result carries moved_uid, use that id from then on.

trash_messageB

Moves a message to the Trash folder. Never deletes permanently.

searchA

Searches every readable mailbox with one query; returns documents for fetch. Gmail syntax on Gmail (from:, newer_than:7d, has:attachment), plain words elsewhere; prefix "account: " for one mailbox. Outlook: Inbox only; Gmail: All Mail; search_messages with a folder looks elsewhere.

fetchA

Returns the full sanitized text of one email by the id returned from search.

triageA

Sorts recent mail into reply_candidates, waiting_on, newsletter, lists, calendar, automated and other from headers only (no bodies). Items carry reasons; you and the owner decide what needs a reply. Reports coverage per account. Needs read; every plan.

awaiting_repliesA

Lists threads where the owner wrote last: their newest message is older than older_than_days and no reply from someone else was found. Each item says whether the scan proved no reply (no_reply_found) or not (unknown). Needs read; every plan.

digestA

Read-only summary for scheduled runs: reply candidates, calendar, lists, automated mail, threads waiting on others, follow-ups and snoozes due since the cursor. Pass the returned cursor back next time; without one it covers 24 hours. Reports coverage per account. Needs read; every plan.

bulk_previewA

Selects the exact messages a bulk action would act on (explicit uids or criteria, oldest first) and returns a count, senders, a sample and a confirm ref for bulk_apply. Changes nothing. Show the preview to the owner. Needs read and modify (trash: delete); 50 per call on Free, 500 paid.

bulk_applyA

Applies exactly the batch a bulk_preview sealed (fewer if some changed; never more), after the owner agreed. Never deletes permanently; a repeated confirm changes nothing. Needs read and modify (trash: delete); 50 per call on Free, 500 paid.

set_followupA

Marks a message to come back to by a date: a record in "mailmcp-state" plus a star or flag. It resurfaces when list_followups or a scheduled task runs; clear=true removes it. Needs read and modify; setting is paid, clearing free.

list_followupsA

Shows due follow-ups (optionally later ones) and snoozed messages across one or all mailboxes, including flags set in Outlook itself. Read-only; reports what it could not cover. Needs read; every plan.

snoozeA

Moves one message (not its thread) to "mailmcp-snoozed" until a time, noting its origin; wake_snoozed or cancel=true brings it back. Needs read and modify; paid (cancel free).

wake_snoozedA

Moves due messages from "mailmcp-snoozed" back where they were, unread. Safe to repeat and to run concurrently. orphans=true moves snoozed mail without a record to INBOX (only when the owner asks). Needs read and modify; every plan.

unsubscribeA

Reads unsubscribe headers. The dry run (default) says if mailmcp can send an RFC 8058 one-click POST: only if your provider verified the signer's DKIM on them and the link is on its domain; else the manual link. Only when the owner asks. Needs read (execute: unsubscribe); every plan.

save_templateA

Saves a text template, or with kind=profile a style profile (tone only), in "mailmcp-templates"; delete=true moves one mailmcp saved to Trash. Needs draft; templates are paid, profiles and deleting free.

list_templatesA

Lists templates in "mailmcp-templates", or one in full by name. samples=true returns the style profile and samples of the owner's sent mail, for tone, length and language only. Needs read; every plan.

Prompts

Interactive templates invoked by user choice

NameDescription
triage_inbox
inbox_zero
daily_digest
follow_ups
draft_replies
scheduled_recipes
draft_reply

Resources

Contextual data attached and managed by the client

NameDescription
accounts
mailmcp_appThe mailmcp inbox, thread and draft views for apps that show MCP Apps.

TDQS

A3.6/5.0

Scored across 33 tools

Disambiguation3/5

Many boundaries are documented, but the set contains overlapping pairs such as search/search_messages, get_message/fetch, create_draft/reply_draft, and send_message/reply_send/send_draft. Descriptions help, yet an agent could still misselect among these similar mail operations.

Naming Consistency4/5

Most names use snake_case with a verb_noun pattern (list_folders, get_message, create_draft, modify_message), which is readable and consistent. There are minor deviations such as single verbs (search, fetch, snooze) and awkward variants like reply_send and wake_snoozed.

Tool Count2/5

With 33 tools, the server is well beyond the typical 3-15 range and enters the 25+ territory that makes selection and maintenance heavy. The domain is broad, but the surface feels over-expanded rather than tightly scoped.

Completeness5/5

Coverage spans accounts, folders, search, retrieval, attachments, drafts, replies, sending, forwarding, modifications, trash, triage, follow-ups, snoozing, unsubscribe, signatures, and templates. No obvious mail lifecycle gap stands out for the stated purpose.

Maintenance

ActivityActive
ResponsivenessUnresponsive