Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
IMAP_HOSTYesThe hostname of the IMAP server
IMAP_PORTYesThe port of the IMAP server
IMAP_USERYesThe email address for IMAP authentication
IMAP_PASSWORDYesThe password for IMAP authentication

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_foldersB

List all IMAP mailbox folders

list_messagesC

List recent messages in a folder with subject, from, date. Default folder is INBOX.

get_messageA

Fetch a single email by UID. Returns headers and text body (prefers plain text).

search_messagesC

Search messages in a folder by criteria (subject, from, since date, unseen only)

mark_messageC

Set or remove flags on a message (e.g., mark as read/unread, flag/unflag)

move_messageC

Move a message to another folder

delete_messageA

Delete a message (move to Trash or permanently delete)

create_reply_draftB

Create a reply draft on an existing email thread. Finds the message by UID, sets In-Reply-To and References headers to keep it in the same thread.

create_draftC

Create a draft email in the Drafts folder

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

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