mailcow-mcp
An MCP server through which an AI assistant manages mail in Mailcow: domains and their DKIM record, creating and deleting mailboxes, aliases, and sending and reading messages over SMTP and IMAP. One conversation with the assistant instead of clicking through the mail panel for every new domain.
Overview
mailcow-mcp is an MCP server that gives an AI assistant tools for mail in Mailcow. Instead of clicking through the panel for every new domain, you ask the assistant for a domain with mailboxes and aliases, and it does that through API calls in one conversation.
Tools
Server tools
| Tool | What it does |
|---|---|
| mailcow_list_domains | Lists the domains configured in Mailcow |
| mailcow_add_domain | Adds a domain with alias, mailbox and quota limits |
| mailcow_get_dkim | Returns a domain's DKIM record to put in DNS |
| mailcow_list_mailboxes | Lists mailboxes, with a domain filter |
| mailcow_create_mailbox | Creates a mailbox with a name, password and quota |
| mailcow_delete_mailbox | Deletes a mailbox |
| mailcow_list_aliases | Lists aliases |
| mailcow_create_alias | Creates an alias |
| mailcow_send_email | Sends a message over SMTP |
| mailcow_fetch_emails | Reads messages from a mailbox over IMAP |
A new domain in one conversation
the assistant adds the domain together with its limits.
it reads the DKIM record and hands it over for DNS.
it creates mailboxes with a quota and the aliases.
it sends a test message and checks in the mailbox that it arrived.
Described parameters
Every tool has a description and a parameter schema, so the assistant knows a domain is a full name and a quota is given in megabytes, without extra instructions. The server connects to the Mailcow API with a key from its configuration and works with any MCP-compatible client.
Questions about mailcow-mcp
More projects
More work from the same category - see how we tackle similar challenges.
Have a similar project?
Get in touch - a quote is free and comes back within an hour.



