Skip to main content
Glama
LeeFlannery

imap-mcp

by LeeFlannery

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
IMAP_MCP_ACCOUNTSNoPath to the accounts.toml configuration file. Defaults to accounts.toml next to pyproject.toml.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_accountsA

List configured mail accounts and whether each is reachable right now.

Performs a live IMAP login per enabled account. Returns status so the caller knows which mailboxes are queryable.

list_emailsA

List recent emails, newest first.

account: account key (see list_accounts). Omit to merge ALL enabled accounts.
since: ISO date (YYYY-MM-DD) lower bound, optional.
unread_only: only unseen messages.
limit: max rows (per account when merging).
search_emailsA

Search emails across from/subject/body text, newest first.

query: free text; matched against sender, subject, and body (IMAP OR).
account: omit to search ALL enabled accounts.
since: ISO date (YYYY-MM-DD) lower bound, optional.
limit: max rows (per account when merging).
get_emailA

Fetch one full email (plain-text body preferred) by account + message id.

id is the value returned in list_emails/search_emails rows (IMAP UID).
Reading does not mark the message as read.

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

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