Skip to main content
Glama
mail-mcp-server

mail-mcp-server

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.

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
}
logging
{}
prompts
{
  "listChanged": true
}
resources
{
  "subscribe": false,
  "listChanged": true
}
completions
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
listConnectionsA

List the configured mailboxes. Call first when the mailbox to use is not known yet: name is the value for the 'connection' argument of every other tool, description says what the mailbox is for, configError explains why an entry cannot be used. This reads local configuration without signing in. localDataAvailable indicates a local data directory, not complete or up-to-date mail; use listFolders and syncStatus to inspect coverage.

getAttachmentA

Read an attachment's saved extracted text as Markdown, in chunks, with its metadata and local file paths. This reads existing text; it does not convert the file on demand. If text is absent, extracted text is unavailable, not proof that the original attachment is empty. The original may still be available at path; path is absent if the file is missing.

Get file from getMessage's attachments[].file or a search hit's snippetAttachmentFile, keeping that message's connection and key. To continue a long text, call this tool again with the same connection, key and file and offset=nextOffset. Stop when there is no nextOffset.

getMessageA

Read one locally stored message: headers, a body chunk as Markdown, and an attachment list. nextOffset continues only the body; headers and the attachment list are returned on each call. If body is absent, saved body text is unavailable; inspect state and error rather than assuming the original message was empty.

When reviewing many messages, do not open every card; choose from the list first. To check a message, use a small maxChars, and continue with nextOffset if it looks relevant.

To read an attachment, call getAttachment with the same connection and key, and file=attachments[].file. Use file, not name or path. The list includes files extracted from attached archives and messages; parent is the containing attachment's file. For the conversation, call getThread with the same connection and key.

listFoldersA

List locally known folders in one connection, with folder keys, paths and local indexed message counts. Pass a folder's key as folder to listMessages or search; keep the same connection. synced=false means a completed folder sync has not been recorded and messages may be missing. synced=true does not guarantee current mail; use syncStatus for the latest sync's time and outcome. This tool does not discover folders on the server.

listMessagesA

Browse locally indexed messages in one folder, newest first, optionally within a date range. Undated messages come last without date bounds and are excluded with bounds. For keyword search use search; for a date range across all folders use search without query.

Returns cards without bodies. Choose from the cards before opening anything: pass a chosen card's key and the same connection to getMessage to read it, or to getThread for its conversation. Every stored copy counts separately here; search and getThread group recognized copies. read/flagged describe the last sync observation.

searchA

Search locally synced messages in one connection. Choose query and field for text search; optionally restrict by folder and dates. Text results are most relevant first. To list a period's mail across all folders, omit query and supply since or until; results are cards without bodies, newest first, without snippets. To combine a sender with words in another field, use from with query and field; from alone lists that sender's cards the same way.

To review many messages, list the cards first and choose from sender, subject, date, read status and the attachment flag. Then search text for what cards cannot show, such as the user's name, and open only the chosen messages with getMessage. Automated mail can hold assignments, questions or errors, so a routine subject does not prove a message is unimportant. When reporting, say which messages you did not open.

Subject, body and attachment text support Russian and English word forms; irregular forms and synonyms may be missed. If results are sparse, try fewer words, other forms, synonyms or the other language in separate calls. An empty result does not prove the mail is absent: only synced, indexed content is searched.

Read a hit with getMessage using the same connection and the hit's key. Snippets mark matches as word, but may show only part of a match or body context. If a hit has snippetAttachmentFile, read that attachment with getAttachment using the same connection, the hit's key and file=snippetAttachmentFile. Recognized copies are returned once; copies lists other matching keys and folders. total and paging count these groups.

summarizeSendersA

Count locally synced messages by sender address or domain in one connection, with each sender's dates and folders, to see who sends how much and where it is filed. Without filters it covers the whole local mailbox; optionally restrict by folder and dates, or by query and field with the same syntax as search, for example to preview what a mail rule would match; from adds one sender address to a query. The totals state what the counts cover, including messages without a date or a parsable sender.

Counts do not show mailbox rules or when messages were moved: old messages left in a folder do not prove that a rule fails, so compare each folder's dates. A sender does not define a message's purpose; list or search that sender's cards with search before recommending anything.

messages counts recognized copies once; folders counts every stored copy, so its sum can exceed messages.

syncA

Refresh one connection's local mail copy from the mail server, including new messages, removals, moves and read/flag states. The remote mailbox is not changed. Call when the user needs newer mail than the local copy. Runs in the background; the first sync can take a long time.

status=started means launched, not finished. For started or alreadyRunning, check syncStatus with the same connection while state is running; do not call sync again to check progress. lockedByOtherProcess means another process holds the local write lock and this call started no sync. That process may be an offline command; syncStatus reports sync runs only.

For refused, relay message to the user and do not retry: after a rejected sign-in, the user must fix the credentials and run mail-sync in a terminal.

syncStatusA

Read local progress or the result of the current or last sync; this does not start a sync or contact the mail server. state=running means still working; completed means the run finished; failed means the run stopped with an error; interrupted means the syncing process ended before finishing; never means no sync is recorded. phase is the stage reached; checkingLocal and checkingFolders can take minutes with no folder progress yet.

While running, other tools may see incomplete results. Check state to decide whether to keep waiting. The failed count is a count of messages: completed can still have failed>0. Inspect error and signInRejected for a failed run. If signInRejected is true, tell the user to fix credentials and run mail-sync in a terminal; repeated sync calls cannot recover it. Timestamps describe this run, not a guarantee that the local mail is current now.

getThreadA

List the locally indexed conversation containing a message, across all folders of one connection. Returns cards without bodies, oldest first, with undated messages last. Only locally indexed messages can appear. Messages are linked by reply headers (Message-ID, In-Reply-To, References), not by subject or participants.

Read each message with getMessage using the same connection and that card's key. Recognized copies are returned once, with other keys and folders under copies; total and paging count groups.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.4/5.0

Scored across 10 tools

Disambiguation4/5

Each tool has a distinct role: search for keyword text, listMessages for folder browsing, getMessage/getAttachment/getThread for reading, summarizeSenders for aggregates, and sync/syncStatus for refresh vs. progress. The main risk is search vs listMessages, which both return message cards, but the descriptions explicitly separate text search from folder listing. sync vs syncStatus could also be confused but is clearly delineated as action vs. read-only status.

Naming Consistency4/5

Mostly consistent camelCase verb_noun: getMessage, listMessages, getAttachment, getThread, listConnections, listFolders, summarizeSenders. Deviations are the bare verb 'search' (no noun) and the action/state pair 'sync'/'syncStatus', which break the pattern slightly but remain readable and predictable.

Tool Count5/5

Ten tools is well within the sweet spot and each earns its place, covering discovery, sync, browsing, reading and attachments. No redundant or trivial tools are present.

Completeness4/5

For a local read-only mail mirror the surface is thorough: connection/folder discovery, sync plus progress, folder browsing, cross-folder search, message/thread/attachment reading, and sender aggregation. The clear gaps are write-side operations (send, draft, reply, move, mark read/unread), though the descriptions imply the server is deliberately read-only against the remote mailbox.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues