Roundcube MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCP_HOST | No | Host for remote Streamable HTTP mode. Use 127.0.0.1 when a reverse proxy runs on the same host, or 0.0.0.0 inside the provided Docker Compose network. | |
| MAIL_PASSWORD | Yes | The newly rotated mailbox password. | |
| MAIL_USERNAME | Yes | The exact mailbox login. | |
| MCP_TRANSPORT | No | MCP transport mode. Set to stdio for local stdio (default) or streamable-http for remote Streamable HTTP. | stdio |
| STATE_DB_PATH | No | Path to a persistent writable SQLite state database file. | |
| MCP_AUTH_TOKEN | No | Random secret of at least 32 characters. Required for remote Streamable HTTP mode. | |
| MCP_ALLOWED_HOSTS | No | Allowed hosts for remote mode; include the actual hostname used by the proxy, for example mail-mcp.example.com. | |
| MCP_ALLOWED_ORIGINS | No | Allowed origins for remote mode; set only when a known browser origin needs to connect. |
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
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_mailbox_statusA | Return mailbox identity, folders, message counts and unread counts. |
| list_foldersA | List IMAP folders with special-use flags and hierarchy delimiter. |
| get_folder_detailsB | Get the flags, total message count and unread count for one folder. |
| create_folderC | Create a mailbox folder. |
| rename_folderB | Rename a folder. INBOX cannot be renamed. |
| delete_folderA | Delete a folder. Requires confirmed=true and protects system folders. |
| subscribe_folderC | Subscribe or unsubscribe the mailbox from a folder. |
| search_emailsA | Search by sender, recipient, subject, text, dates, flags, Message-ID or attachment presence. Dates must be YYYY-MM-DD. Search results return IMAP UIDs, not unstable sequence numbers. Attachment-presence searches inspect at most scan_limit recent candidate messages. |
| read_emailB | Read a message's headers, text/HTML bodies and attachment metadata. The message remains unread unless mark_as_read=true. |
| read_email_headersA | Retrieve message headers without the body; use list_attachments for MIME metadata. |
| get_email_threadC | Find related messages across folders using Message-ID, In-Reply-To and References. |
| get_thread_messagesC | Return the messages associated with an email conversation. |
| mark_as_readC | Mark one message as read. |
| mark_as_unreadC | Mark one message as unread. |
| star_emailC | Flag a message as starred. |
| unstar_emailC | Remove the starred flag from a message. |
| archive_emailB | Move a message into the configured Archive folder, creating it if absent. |
| move_emailC | Move a message. Uses UID MOVE or a UIDPLUS-safe copy/expunge fallback. |
| copy_emailC | Copy a message into another folder. |
| trash_emailA | Move a message into the configured Trash folder; does not permanently delete it. |
| restore_emailB | Restore a message from Trash to the selected destination folder. |
| delete_emailA | Permanently delete a message only when explicitly enabled and confirmed. MAIL_ALLOW_PERMANENT_DELETE defaults to false. The server also requires UIDPLUS. |
| list_attachmentsC | List attachment names, MIME types, sizes and MIME part indexes. |
| get_attachment_detailsB | Get metadata for one attachment using its MIME part index. |
| download_attachmentC | Download an attachment as Base64, subject to configured size limits. |
| send_emailA | Send an email with optional CC, BCC, Reply-To, HTML and Base64 attachments. Requires confirmed=true after the user explicitly authorizes this send. Provide a unique idempotency_key (at least 8 characters). Reusing a completed key returns its previous result; uncertain attempts are not automatically resent. |
| reply_emailB | Reply to a message. Requires confirmed=true after explicit user authorization. |
| reply_allB | Reply-all to a message. Requires confirmed=true after explicit user authorization. |
| forward_emailB | Forward a message. Requires confirmed=true; original attachments are not reattached. |
| create_draftC | Save a new draft into the configured IMAP Drafts folder. |
| list_draftsB | List message summaries in the configured Drafts folder. |
| read_draftC | Read one draft from the configured Drafts folder. |
| update_draftB | Save a replacement draft, then attempt to move the old draft to Trash. |
| delete_draftB | Move a draft to Trash rather than permanently deleting it. |
| bulk_mark_readB | Mark up to 100 messages as read and report per-message outcomes. |
| bulk_mark_unreadB | Mark up to 100 messages as unread and report per-message outcomes. |
| bulk_move_emailsB | Move up to 100 messages. Requires explicit confirmed=true. |
| bulk_trash_emailsA | Move up to 100 messages into Trash. Requires explicit confirmed=true. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 38 tools
Most tools have distinct resource/action targets, and single-versus-bulk variants are clear. However, get_email_thread and get_thread_messages sound almost interchangeable, and get_mailbox_status overlaps folder-listing/details tools.
Nearly all tools use readable snake_case with verb-first naming. Minor deviations such as reply_all lacking an object and get_email_thread versus get_thread_messages using inconsistent noun ordering keep it from perfect consistency.
At 38 tools, the surface is well beyond the typical 3-15 range and is heavy for agent selection. The broad email domain justifies some breadth, but many single/bulk and operation-specific variants could be consolidated.
The surface covers folder CRUD/subscription, search/read/threading, flags, move/copy/archive/trash/restore/delete, attachments, send/reply/forward, draft CRUD, and bulk actions. Remaining omissions such as empty-trash/purge or generic flag updates are minor and not dead ends.