Migadu MCP Server
Enables AI assistants to manage Migadu email hosting services through natural language, including creating mailboxes, setting up aliases, configuring autoresponders, and handling bulk operations efficiently.
Tools
list_mailboxes
List email mailboxes for domain. Returns summary with statistics and samples. Args: domain: Domain name. Uses MIGADU_DOMAIN if not provided. Returns: JSON object with mailbox summary and statistics
create_mailbox
Create email mailboxes. List of dicts with: target (email/local), name (display), password (optional), recovery_email (optional), is_internal (optional), forwarding_to (optional).
update_mailbox
Update mailbox settings. List of dicts with: target (required), name (optional), may_send (optional), may_receive (optional), may_access_imap (optional), may_access_pop3 (optional), spam_action (optional), spam_aggressiveness (optional).
delete_mailbox
Delete mailboxes. DESTRUCTIVE: Cannot be undone. List of dicts with: target (email/local).
reset_mailbox_password
Reset mailbox passwords. List of dicts with: target (email/local), new_password (required).
set_autoresponder
Configure mailbox autoresponders. List of dicts with: target (email/local), active (required), subject (optional), body (optional), expires_on (optional).
list_identities
List email identities for mailbox. Returns summary with statistics and samples.
create_identity
Create email identities. List of dicts with: target, mailbox, name, password (required), domain (optional).
update_identity
Update identity settings. List of dicts with: target, mailbox (required), domain, name, may_send, may_receive (optional).
delete_identity
Delete identities. DESTRUCTIVE: Cannot be undone. List of dicts with: target, mailbox (required), domain (optional).
list_aliases
List email aliases for domain. Returns summary with statistics and samples. Args: domain: Domain name. Uses MIGADU_DOMAIN if not provided. Returns: JSON object with alias summary and statistics
get_mailbox
Get detailed mailbox information with smart domain resolution. Args: target: Email address or local part if MIGADU_DOMAIN set Returns: JSON object with complete mailbox configuration
get_alias
Get detailed alias information. Args: target: Local part of alias domain: Domain name. Uses MIGADU_DOMAIN if not provided. Returns: JSON object with complete alias configuration
create_alias
Create email aliases with forwarding. List of dicts with: target (local part), destinations (email list), domain (optional), is_internal (optional).
update_alias
Update alias destinations. List of dicts with: target (local part), destinations (email list), domain (optional).
delete_alias
Delete aliases. DESTRUCTIVE: Cannot be undone. List of dicts with: target (local part), domain (optional).
list_rewrites
List pattern-based rewrite rules for domain. Returns summary with statistics and samples.
get_rewrite
Get detailed rewrite rule configuration. Requires rule name/slug.
create_rewrite
Create pattern-based rewrite rules. List of dicts with: name, local_part_rule, destinations (required), domain (optional).
update_rewrite
Update rewrite rule configuration. List of dicts with: name (required), domain, new_name, local_part_rule, destinations (optional).
delete_rewrite
Delete rewrite rules. DESTRUCTIVE: Cannot be undone. List of dicts with: name (required), domain (optional).
README
Migadu MCP Server
Control your Migadu email hosting through AI assistants using the Model Context Protocol (MCP).
What is Migadu?
Migadu is a Swiss email hosting service that offers unlimited email addresses with pricing based on actual usage rather than mailbox count. They focus on standard email protocols (SMTP/IMAP/POP3) without vendor lock-in, making them popular with developers and privacy-conscious users.
What This Does
This MCP server lets AI assistants manage your Migadu email accounts. Instead of clicking through web interfaces, you can ask your AI to:
- Create and delete mailboxes
- Set up email aliases and forwarding rules
- Configure autoresponders
- Manage multiple email identities
- Handle bulk operations efficiently
Setup
Add to your MCP client configuration (e.g., Claude Desktop):
{
"mcpServers": {
"migadu": {
"command": "uvx",
"args": ["migadu-mcp"],
"env": {
"MIGADU_EMAIL": "admin@yourdomain.com",
"MIGADU_API_KEY": "your-api-key",
"MIGADU_DOMAIN": "yourdomain.com"
}
}
}
}
Get your API key from Migadu Admin > My Account > API Keys.
Example Usage
Once configured, you can ask your AI assistant things like:
- "Create a new mailbox for john@mydomain.com with the name John Smith"
- "List all mailboxes on my domain"
- "Set up an email alias support@mydomain.com that forwards to team@mydomain.com"
- "Delete the mailboxes for employees who left: alice@mydomain.com, bob@mydomain.com"
- "Create an autoresponder for vacation@mydomain.com"
Available Tools
Mailbox Management
list_mailboxes/list_my_mailboxes- View all mailboxesget_mailbox/get_my_mailbox- Get mailbox detailscreate_mailbox/create_my_mailbox- Create new mailboxesupdate_mailbox- Change mailbox settingsdelete_mailbox- Remove mailboxesbulk_delete_mailboxes- Delete multiple mailboxes at oncereset_mailbox_password- Change passwordsset_autoresponder- Configure out-of-office messages
Email Routing
list_aliases/list_my_aliases- View email aliasescreate_alias- Set up email forwarding without creating a mailboxupdate_alias- Change alias destinationsdelete_alias- Remove aliases
Identity Management
list_identities- View send-as addressescreate_identity- Add additional sending addressesupdate_identity- Modify identity permissionsdelete_identity- Remove identities
Advanced Routing
list_rewrites- View pattern-based routing rulescreate_rewrite- Set up wildcard email routingupdate_rewrite- Modify routing patternsdelete_rewrite- Remove routing rules
External Forwarding
list_forwardings- View external forwarding rulescreate_forwarding- Forward emails to external addressesupdate_forwarding- Change forwarding settingsdelete_forwarding- Remove forwarding rules
MCP Resources
Access structured data through these resource URIs:
mailboxes://domain.com- All mailboxes for a domainmailbox://domain.com/username- Specific mailbox detailsaliases://domain.com- All aliases for a domainidentities://domain.com/mailbox- Identities for a mailboxforwardings://domain.com/mailbox- Forwarding rules for a mailboxrewrites://domain.com- Rewrite rules for a domain
Technical Notes
- The server handles Migadu's API quirks automatically (like 500 status codes on successful deletions)
- All operations include proper error handling and progress reporting
- Built with FastMCP for reliable MCP integration
- Supports bulk operations with intelligent batching
Development
# Clone the repository
git clone https://github.com/Michaelzag/migadu-mcp.git
cd migadu-mcp
# Install dependencies
uv sync --group dev
# Run tests
uv run pytest
# Run quality checks
uv run ruff format --check .
uv run ruff check .
uv run mypy migadu_mcp/
License
MIT License - see LICENSE file for details.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。