Migadu MCP Server
The Migadu MCP Server lets you fully manage your Migadu email hosting account through AI assistants, covering the complete Migadu API surface.
Domains — Create, update, activate, list, view DNS records, run diagnostics, and check usage statistics.
Mailboxes — List, get, create, update, and delete mailboxes; reset passwords; configure autoresponders (subject, body, expiry).
Aliases — Create, update, delete, and list email forwarding aliases.
Identities — Create, update, delete, and list send-as addresses on a mailbox.
Forwardings — Manage external delivery copies with a confirmation flow.
Rewrites — Create, update, delete, and list pattern-based routing rules.
Bulk Operations — All mutation tools (create_*, update_*, delete_*, activate_*, set_autoresponder, reset_mailbox_password) accept a list of items, enabling bulk operations with per-item success/failure reporting.
Read-only Resource Views — Access resources via URI (e.g., domains://, domain://{name}, mailboxes://{domain}) for quick read-only lookups.
Intelligent Summarization — list_* tools automatically summarize large result sets (exceeding ~2000 tokens) to avoid context flooding.
Enables management of Migadu email hosting services, including creating and deleting mailboxes, setting up email aliases and forwarding rules, configuring autoresponders, managing multiple email identities, and handling bulk operations efficiently.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Migadu MCP Servercreate a new mailbox for support@ourcompany.com with the name Customer Support"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Migadu MCP Server
Control your Migadu email hosting from AI assistants via the Model Context Protocol.
What is Migadu?
Migadu is a Swiss email host that prices on actual usage instead of mailbox count, with standard SMTP/IMAP/POP3 and no lock-in.
Related MCP server: SendGrid MCP Server
What this does
Covers the full Migadu API surface as MCP tools:
Domains — create, update, activate, DNS records, diagnostics, usage
Mailboxes — CRUD, autoresponders, password resets
Aliases — forwarding rules without a mailbox behind them
Identities — send-as addresses on a mailbox
Forwardings — external delivery copies with confirmation flow
Rewrites — pattern-based routing rules
Setup
Get an API key at Migadu Admin → My Account → API Keys.
Add to your MCP client config (e.g. Claude Desktop, ~/.claude.json, etc.):
{
"mcpServers": {
"migadu": {
"command": "uvx",
"args": ["migadu-mcp"],
"env": {
"MIGADU_EMAIL": "you@example.com",
"MIGADU_API_KEY": "your-api-key",
"MIGADU_DOMAIN": "example.com"
}
}
}
}Or via the Claude Code CLI:
claude mcp add migadu \
--env MIGADU_EMAIL=you@example.com \
--env MIGADU_API_KEY=your-api-key \
--env MIGADU_DOMAIN=example.com \
-- uvx migadu-mcpMIGADU_DOMAIN is optional. It's the default domain used by tools like list_mailboxes when you don't pass one explicitly. Skip it if you manage multiple domains and prefer to pass domain on every call.
Example usage
Once configured, ask your AI assistant things like:
"Onboard a new domain
acme.example— walk me through DNS setup and activation""Create mailboxes for alice@acme.example and bob@acme.example"
"Set up
support@acme.exampleas an alias to both Alice and Bob""Configure an autoresponder on
vacation@acme.exampleuntil January 15th""Delete the mailboxes for everyone who left: list of addresses..."
Three built-in prompts are registered to scaffold common workflows: mailbox_creation_wizard, bulk_operation_planner, domain_onboarding.
Tools
Domain
list_domains, get_domain, create_domain, update_domain, get_domain_records, get_domain_diagnostics, activate_domain, get_domain_usage
Mailbox
list_mailboxes, get_mailbox, create_mailbox, update_mailbox, delete_mailbox, reset_mailbox_password, set_autoresponder
Alias
list_aliases, get_alias, create_alias, update_alias, delete_alias
Identity
list_identities, get_identity, create_identity, update_identity, delete_identity
Forwarding
list_forwardings, get_forwarding, create_forwarding, update_forwarding, delete_forwarding
Rewrite
list_rewrites, get_rewrite, create_rewrite, update_rewrite, delete_rewrite
All mutation tools (create_*, update_*, delete_*, activate_*, set_autoresponder, reset_mailbox_password) accept a list[dict] of items and return a bulk-result envelope with per-item success/failure. A single-item list works too.
Resources
Read-only views addressable by URI:
domains://— all domains on the accountdomain://{name}— one domain's full configdomain-records://{name}— required DNS records for setupdomain-usage://{name}— message + storage metricsmailboxes://{domain}— mailboxes for a domainmailbox://{domain}/{local_part}— one mailboxidentities://{domain}/{mailbox}— identities on a mailboxforwardings://{domain}/{mailbox}— forwardings on a mailboxaliases://{domain}— aliases for a domainrewrites://{domain}— rewrite rules for a domain
Notes
Migadu's API returns HTTP 500 on successful DELETE (known quirk). The client treats 200/204/404/500 as success on DELETE; other codes raise.
One long-lived
httpx.AsyncClientper server process, closed on shutdown via FastMCP lifespan hook.list_*tools pass responses through a static summarizer when they exceed ~2000 tokens, returning a count plus a sample instead of flooding context.
Development
git clone https://github.com/Michaelzag/migadu-mcp.git
cd migadu-mcp
uv sync --group dev
# Quality gates (same as CI)
uv run ruff format --check .
uv run ruff check migadu_mcp/ tests/
uv run ty check migadu_mcp/
uv run pytest
uv run bandit -r migadu_mcp/Tests use respx to mock the Migadu API — no credentials needed. Integration tests (behind @pytest.mark.integration) hit the real API and are skipped by default.
License
MIT — see LICENSE.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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/Michaelzag/migadu-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server