Skip to main content
Glama
andasv

Himalaya MCP Server

by andasv

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
HIMALAYA_MODENoThe operating mode of the server. 'readonly' (default) allows only reading operations. 'full' enables write operations like moving or flagging messages. 'dangerzone' enables sending emails.readonly
APPROVED_RECIPIENTSNoA comma-separated list of email addresses the AI is allowed to send to. This environment variable is required when HIMALAYA_MODE is set to 'dangerzone'.

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
account_listA

List all configured email accounts.

Returns a list of accounts with their name, backend type, and default status.

Args: account: Optional specific account name to query.

folder_listB

List all folders/mailboxes for an email account.

Args: account: Account name. If omitted, uses the default account.

envelope_listA

List message envelopes (headers) in a folder.

Returns sender, subject, date, and flags for each message without downloading full bodies.

Args: folder: Folder name (e.g. "INBOX"). Defaults to INBOX. account: Account name. If omitted, uses the default account. page: Page number for pagination (starts at 1). page_size: Number of envelopes per page. query: Search/filter query string (himalaya query syntax).

envelope_threadA

Get thread view for a specific envelope.

Shows the conversation thread structure for the given message.

Args: envelope_id: The envelope/message ID. folder: Folder name. Defaults to INBOX. account: Account name. If omitted, uses the default account.

message_readB

Read a message by its envelope ID.

Returns the plain text body of the message by default.

Args: envelope_id: The envelope/message ID to read. folder: Folder name. Defaults to INBOX. account: Account name. If omitted, uses the default account. headers: If True, include message headers. raw: If True, return raw MIME content.

message_threadA

Read a full message thread by envelope ID.

Returns all messages in the conversation thread.

Args: envelope_id: The envelope/message ID. folder: Folder name. Defaults to INBOX. account: Account name. If omitted, uses the default account.

attachment_downloadC

Download all attachments from a message.

Attachments are saved to the current working directory.

Args: envelope_id: The envelope/message ID. folder: Folder name. Defaults to INBOX. account: Account name. If omitted, uses the default account.

template_writeA

Generate a new email template (MML format).

Returns a blank email template that can be filled in and sent via template_send. MML (MIME Meta Language) is himalaya's format for composing emails.

Args: account: Account name. If omitted, uses the default account. headers: Optional pre-filled headers (e.g. "To: user@example.com\nSubject: Hello").

template_replyB

Generate a reply template for a message.

Returns an MML template pre-filled with reply headers and quoted original message.

Args: envelope_id: The envelope/message ID to reply to. folder: Folder name. Defaults to INBOX. account: Account name. If omitted, uses the default account. reply_all: If True, reply to all recipients.

template_forwardB

Generate a forward template for a message.

Returns an MML template pre-filled with forwarded message content.

Args: envelope_id: The envelope/message ID to forward. folder: Folder name. Defaults to INBOX. account: Account name. If omitted, uses the default account.

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/andasv/himalaya-mcp-server'

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