Skip to main content
Glama
FaisalFehad

IMAP Mail MCP

by FaisalFehad

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
IMAP_HOSTYesIMAP host
IMAP_PASSYesIMAP password
IMAP_PORTYesIMAP port
IMAP_USERYesIMAP username
IMAP_SECUREYestrue for TLS, false for plain
MAIL_MAX_RESULTSNoglobal cap for list/search limits, default 200
MAIL_SNIPPET_LENGTHNomax snippet chars when enabled, default 400
MAIL_MAX_BODY_LENGTHNomax body chars in mail_get_message, default 50000
IMAP_TLS_REJECT_UNAUTHORIZEDNovalidate TLS cert chain, default false for local self-signed

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
mail_list_foldersA

List all mail folders (mailboxes). Use this to see INBOX, Sent, etc.

mail_list_messagesA

List recent messages in a folder (envelope only by default). Supports sort/cursor/snippet options.

mail_get_messageA

Fetch one full message by folder and UID (envelope + body text).

mail_searchA

Convenience folder search by basic fields. Prefer mail_search_advanced for richer filters and agent reliability.

mail_search_advancedC

Primary advanced search tool: keyword, sender/receiver, subject/body, date/date-range, sent-date-range, read state, message-id.

mail_get_mailbox_statusA

Get message counters for one folder (messages, unseen, recent, UID metadata).

mail_list_unreadA

List unread messages in a folder (envelope only by default). Supports sort/cursor/snippet options.

mail_list_attachmentsA

List attachment metadata for one message by folder and UID (no binary download).

mail_query_by_folderB

Convenience free-text query in one folder. Prefer mail_search_advanced for canonical searches.

mail_get_thread_contextA

Get related messages in the same thread context using Message-ID/References/In-Reply-To. Includes snippets by default.

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/FaisalFehad/imap-mail-mcp'

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