Skip to main content
Glama
Soundhannes

IMAP MCP Server

by Soundhannes

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
connectC

Establish IMAP connection to mail server

authenticateC

Login with username and password

disconnectB

Close IMAP connection

auto_connectB

Connect using config.json credentials (no parameters needed)

list_mailboxesC

List all mailbox folders

select_mailboxC

Select/open a mailbox folder

create_mailboxC

Create a new mailbox folder

get_mailbox_statusC

Get mailbox status (message count, unseen, etc.)

fetch_emailsC

Fetch emails from mailbox with optional filters

get_emailC

Get complete email by UID

get_email_headersB

Get only email headers (faster)

get_email_bodyC

Get email body content

get_attachmentsC

List attachments of an email

download_attachmentC

Download attachment content (base64)

get_threadC

Get email thread/conversation

search_emailsC

Search emails with query

search_by_senderC

Search emails by sender address

search_by_subjectC

Search emails by subject

search_by_dateC

Search emails by date range

search_unreadC

Get all unread emails

search_flaggedB

Get all flagged/starred emails

mark_readC

Mark emails as read

mark_unreadC

Mark emails as unread

flag_emailC

Add flag to emails

unflag_emailC

Remove flag from emails

move_emailC

Move emails to another mailbox

copy_emailC

Copy emails to another mailbox

archive_emailC

Archive emails (move to Archive folder)

save_draftB

Save email as draft (automatically includes user signature from config)

get_unread_countC

Get count of unread emails

get_total_countC

Get total email count in mailbox

get_cached_overviewB

Get cached email overview for INBOX, next, waiting, someday (from in-memory cache)

refresh_cacheB

Force refresh of email cache for all watched mailboxes

start_watchC

Start permanent IDLE watch on INBOX, next, waiting, someday

stop_watchC

Stop the permanent IDLE watch

idle_watchC

Start watching mailbox for new emails (IMAP IDLE) - single mailbox, temporary

get_auto_archive_listB

Get list of senders that are auto-archived

add_auto_archive_senderC

Add sender to auto-archive list

remove_auto_archive_senderC

Remove sender from auto-archive list

reload_auto_archiveB

Reload auto-archive config from file (after manual edit)

process_auto_archiveA

Process INBOX and archive emails from listed senders. Use dry_run=true to preview without moving.

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/Soundhannes/IMAP-MCP'

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