himalaya-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| HIMALAYA_BINARY | No | Path to the himalaya binary. | |
| HIMALAYA_FOLDER | No | Default folder (mailbox) to use. | |
| HIMALAYA_ACCOUNT | No | Default himalaya account to use. | |
| HIMALAYA_TIMEOUT | No | Timeout for himalaya commands (e.g., '10s'). |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_emailsA | List emails in a folder. Returns envelope data: subject, from, date, flags. |
| search_emailsA | Search emails using himalaya filter syntax. Examples: 'subject invoice', 'from paypal', 'subject meeting and from boss'. Operators: and, or, not. Conditions: subject, from, to, body, date, before, after, flag. |
| read_emailA | Read an email message body (plain text). Use the ID from list_emails or search_emails. |
| read_email_htmlA | Read an email message body as HTML. Useful for formatted emails. |
| flag_emailA | Add or remove flags on an email. Common flags: Seen, Flagged, Answered, Deleted, Draft. Use 'add' to set flags, 'remove' to clear them. |
| move_emailA | Move an email to a different folder. Common targets: Archive, Trash, Spam, Sent, Drafts. |
| export_to_markdownA | Export an email as formatted markdown with YAML frontmatter (date, from, to, subject, flags). Returns the markdown text — you can then save it to a file or clipboard. |
| create_action_itemC | Read an email and extract action items, todos, deadlines, and commitments. Returns structured action items that can be used to create tasks, reminders, or calendar events. |
| draft_replyA | Generate a reply draft for an email. Returns the reply template with headers and quoted original message. Does NOT send — use send_email to send after user reviews. |
| send_emailA | Send an email template. SAFETY: requires confirm=true to actually send. Without confirm, returns a preview. Always show the user the preview and get their approval before sending with confirm=true. |
| compose_emailA | Compose and send a new email (not a reply). SAFETY: requires confirm=true to actually send. Without confirm, returns a preview for user review. |
| list_foldersB | List all email folders/mailboxes for an account. Returns folder names. |
| create_folderA | Create a new email folder/mailbox. |
| delete_folderA | Delete an email folder/mailbox. SAFETY: requires confirm=true to actually delete. Without confirm, returns a preview warning. |
| list_attachmentsA | List attachments for an email message. Downloads all attachments to inspect them, then returns filename, MIME type (inferred from extension), and size for each. |
| download_attachmentA | Download an email attachment to a temporary directory. Downloads all attachments, then returns the path to the requested file. |
| extract_calendar_eventA | Extract calendar event details from an email's ICS attachment. Downloads all attachments, finds the .ics file, parses it, and returns event summary, dates, location, and organizer. |
| create_calendar_eventA | Create an event in Apple Calendar. SAFETY: requires confirm=true to actually create. Without confirm, returns a preview. macOS only. |
| list_threadsA | List email threads (conversations) in a folder. Groups related emails by subject line. Returns threads sorted by most recent activity, with participant list and message count. |
| read_threadA | Read all messages in a conversation thread. Given a thread_id (the ID of the first message), fetches all related messages and returns them in chronological order. Use list_threads first to get thread IDs. |
| health_checkA | Check himalaya-mcp installation health and per-account IMAP connectivity. Use when an email tool fails to diagnose which accounts are reachable. |
| copy_to_clipboardA | Copy text to the system clipboard (pbcopy on macOS, xclip on Linux). Useful for copying email content, markdown exports, or any text. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| triage_inbox | Classify recent emails as actionable, FYI, or skip. Suggests flags and folder moves. |
| summarize_email | Produce a one-sentence summary and list action items for a specific email. |
| daily_email_digest | Create a markdown digest of today's important emails, grouped by priority. |
| draft_reply | Compose a professional reply to an email. Reads the original, generates a draft, and presents for review before sending. |
| morning_briefing | Comprehensive morning email briefing with urgency classification, calendar events, and action items. |
| inbox_check | Quick inbox status check with unread count, highlights, and suggested next actions. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| inbox | Current inbox email listing |
| folders | Available email folders |
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/Data-Wise/himalaya-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server