Skip to main content
Glama
concurrent2024

mcp-email-server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
IMAP_HOSTYesIMAP server hostname, e.g. imap.qq.com
SMTP_HOSTYesSMTP server hostname, e.g. smtp.qq.com
EMAIL_FROMYesFrom address used when sending emails
IMAP_PASSWORDYesIMAP password or app-specific authorization code
IMAP_USERNAMEYesIMAP username / email account
SMTP_PASSWORDNoOptional SMTP password; if empty, IMAP_PASSWORD is reused
SMTP_USERNAMENoOptional SMTP username; if empty, IMAP_USERNAME is reused
EMAIL_ALLOW_SENDNoSet to true to allow sending emailsfalse
EMAIL_ALLOW_DELETENoSet to true to allow moving or deleting emailsfalse
EMAIL_ATTACHMENT_DIRNoDirectory where attachments can be read and written./attachments
EMAIL_MAX_BODY_CHARSNoMaximum number of characters returned for a single email body20000
EMAIL_SAVE_SENT_COPYNoSet to true to append a copy to the Sent folder after sendingfalse
EMAIL_RECIPIENT_ALLOWLISTNoComma-separated allowlist of email addresses or domains for recipients

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

Tools

Functions exposed to the LLM to take actions

NameDescription
check_connectionA

Verify the IMAP and SMTP credentials and report which actions are permitted.

Run this first when a tool fails or the account setup is unknown. Credentials are never included in the result.

list_foldersA

List the folders in the mailbox, with their IMAP special-use flags.

search_emailsA

Find messages, newest first, returning short summaries rather than full bodies.

Every filter is combined with AND, and omitting all of them returns the most recent messages in the folder. Reading a message costs a separate read_email call, using the uid from these results.

read_emailA

Open one message and return its body, headers, and attachment list.

Bodies are returned as plain text; HTML-only messages are converted, and long bodies are truncated with a marker rather than silently cut.

wait_for_new_emailsA

Block until mail arrives in the folder, then return the new messages.

Use this to wait for something expected, such as a verification code. It returns as soon as anything arrives, or empty-handed when the timeout elapses; nothing already in the folder is reported.

download_attachmentA

Save an attachment into the server's attachment directory and return its path.

Writes are confined to EMAIL_ATTACHMENT_DIR, and the sender's filename is sanitised before use.

mark_emailA

Mark a message read or unread, and flag or unflag it.

move_emailA

Move a message to another folder. Requires EMAIL_ALLOW_DELETE=true.

delete_emailA

Move a message to Trash. Requires EMAIL_ALLOW_DELETE=true.

This is a move, not an expunge, so the user can still recover the message from their Trash folder.

send_emailA

Send an email. This is irreversible: confirm the content with the user first.

Sending only works when EMAIL_ALLOW_SEND=true, and every recipient must pass the configured allowlist. Pass reply_to_uid to answer an existing message: the reply is threaded correctly and the recipient and subject are filled in from the original.

save_draftA

Write a message to the Drafts folder without sending it.

This is the safe way to prepare mail: the user opens their own mail client, reviews it, and sends it themselves. It works even when EMAIL_ALLOW_SEND is false, because nothing leaves the account.

Prompts

Interactive templates invoked by user choice

NameDescription
draft_replyLoad a message and ask for a reply to be drafted, with the original quoted.

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/concurrent2024/mcp-email-server'

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