ForwardEmail MCP Server
Click on "Deploy 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., "@ForwardEmail MCP Server list my domains"
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.
ForwardEmail MCP Server
⚠️ UNOFFICIAL - This is an unofficial MCP server for ForwardEmail. It is not affiliated with, endorsed by, or supported by Forward Email LLC.
An MCP (Model Context Protocol) server that provides comprehensive access to the ForwardEmail API for Claude Desktop, Cline, and other MCP-compatible clients.
Features
71 MCP tools covering the ForwardEmail API
Domain Management - List, create, update, delete domains; verify DNS/SMTP records; allowlist/denylist; S3 connection test
Alias Management - Full CRUD for email aliases with forwarding rules
Outbound Email - Send emails via API, check limits, manage queue
Sieve Filtering - Manage server-side Sieve filtering scripts
Mailbox (alias credentials) - Contacts (CardDAV), Calendars & events (CalDAV), Messages & Folders (IMAP)
Team Collaboration - Invite members, manage roles
Security - Password generation for IMAP/SMTP access, TXT record encryption
Async/Await - Built with modern Python async patterns
Type Safety - Full type hints with Pydantic models
Related MCP server: PurelyMail MCP Server
Prerequisites
Python: 3.10+
uv: 0.4+ (recommended)
uvx: Included with uv
MCP SDK: 2.x (
mcp>=2,<3)A ForwardEmail account with API access
API key from ForwardEmail Security Settings
Running on MCP SDK 2.x. The server was migrated in v0.4.0; see
docs/mcp-sdk-v2-migration.mdfor what changed. If you need SDK 1.x, pinforwardemail-mcp==0.3.0.
Installation
Using uvx (Recommended)
uvx --from git+https://github.com/junxit/mcp-forwardemail.git forwardemail-mcpUsing pip
pip install git+https://github.com/junxit/mcp-forwardemail.gitFrom Source
git clone https://github.com/junxit/mcp-forwardemail.git
cd mcp-forwardemail
uv pip install -e .Configuration
Claude Desktop
Add to your ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"forwardemail": {
"command": "uvx",
"args": ["--from", "git+https://github.com/junxit/mcp-forwardemail.git", "forwardemail-mcp"],
"env": {
"FORWARDEMAIL_API_KEY": "your_api_key_here"
}
}
}
}Local Development with Claude Desktop
{
"mcpServers": {
"forwardemail": {
"command": "uv",
"args": ["--directory", "/path/to/mcp-forwardemail", "run", "forwardemail-mcp"],
"env": {
"FORWARDEMAIL_API_KEY": "your_api_key_here"
}
}
}
}Cline / Continue Extension
Add to your MCP settings:
{
"forwardemail": {
"command": "uvx",
"args": ["--from", "git+https://github.com/junxit/mcp-forwardemail.git", "forwardemail-mcp"],
"env": {
"FORWARDEMAIL_API_KEY": "your_api_key_here"
}
}
}Environment Variable
Alternatively, set the API key as an environment variable:
export FORWARDEMAIL_API_KEY="your_api_key_here"Alias Credentials (for mailbox tools)
Most tools authenticate with your account API key. The mailbox tools — Contacts, Calendars, Calendar Events, Messages, Folders, and Sieve Scripts (the alias-auth variant) — instead use a specific alias's own credentials, so each of those tools takes two extra arguments:
alias_username— the full alias email (e.g.me@example.com)alias_password— a password generated for that alias viaalias_generate_password
These are passed per tool call (no extra environment variables), so you can work with any alias across any domain in the same session. Generate a password first:
"Generate an IMAP/CardDAV password for the alias
me@example.com, then list its folders."
Available Tools
Account (3 tools)
Tool | Description |
| Retrieve account information |
| Create a new account |
| Update account details (incl. |
Domains (13 tools)
Tool | Description |
| List all domains |
| Create a new domain |
| Get domain details |
| Update domain settings |
| Delete a domain |
| Verify DNS records |
| Verify SMTP records (DKIM, DMARC) |
| List catch-all passwords |
| Create catch-all password |
| Delete catch-all password |
| Replace the domain sender allowlist |
| Replace the domain sender denylist |
| Test custom S3 storage connection |
Aliases (6 tools)
Tool | Description |
| List domain aliases |
| Create a new alias |
| Get alias details |
| Update an alias |
| Delete an alias |
| Generate IMAP/SMTP password |
alias_create and alias_update also accept has_wkd_disabled (disable WKD
public key lookup) and smtp_limit (per-alias daily SMTP outbound limit; 0
uses the domain limit). smtp_limit requires domain-admin permission — the API
rejects the request whenever that field is present for a non-admin member, so only
pass it when you intend to set it.
Outbound Emails (5 tools)
Tool | Description |
| Get daily sending limit |
| List outbound emails |
| Send an email |
| Get email details |
| Cancel/delete an email |
Invites (3 tools)
Tool | Description |
| Accept a domain invite (requires the invite |
| Invite a user to domain |
| Remove an invite |
Members (2 tools)
Tool | Description |
| Update member role |
| Remove a member |
Logs (1 tool)
Tool | Description |
| Request log download (emailed as CSV) |
Encrypt (1 tool)
Tool | Description |
| Encrypt TXT record value |
Sieve Filters — domain (6 tools, API key)
Tool | Description |
| List an alias's Sieve scripts |
| Create a Sieve script |
| Get a Sieve script |
| Update a Sieve script |
| Delete a Sieve script |
| Activate a Sieve script |
The tool groups below use alias credentials (alias_username + alias_password) — see Alias Credentials.
Contacts — CardDAV (5 tools)
Tool | Description |
| List contacts |
| Create a contact |
| Get a contact |
| Update a contact |
| Delete a contact |
Calendars — CalDAV (5 tools)
Tool | Description |
| List calendars |
| Create a calendar |
| Get a calendar |
| Update a calendar |
| Delete a calendar |
Calendar Events — CalDAV (5 tools)
Tool | Description |
| List calendar events |
| Create an event (iCalendar) |
| Get an event |
| Update an event |
| Delete an event |
Messages — IMAP (5 tools)
Tool | Description |
| List and search messages (pass |
| Create/append a message |
| Get a message |
| Update flags/labels/folder |
| Delete a message |
Folders — IMAP (5 tools)
Tool | Description |
| List folders |
| Create a folder |
| Get a folder |
| Rename a folder |
| Delete a folder |
Sieve Scripts — alias auth (6 tools)
Tool | Description |
| List Sieve scripts |
| Create a Sieve script |
| Get a Sieve script |
| Update a Sieve script |
| Delete a Sieve script |
| Activate a Sieve script |
Usage Examples
List Your Domains
Ask Claude: "List my ForwardEmail domains"
Create an Email Alias
Ask Claude: "Create an alias called 'support' on example.com that forwards to admin@gmail.com"
Send an Email
Ask Claude: "Send an email from hello@example.com to user@gmail.com with subject 'Test' and body 'Hello!'"
Verify Domain Setup
Ask Claude: "Verify the DNS records for example.com"
API Coverage Notes
The ForwardEmail Contacts (CardDAV), Calendars/Events (CalDAV), Messages and Folders (IMAP), and alias Sieve scripts authenticate with alias credentials (alias email + generated password) rather than the account API key. These are now fully supported — see Alias Credentials for how to supply them.
Not currently wrapped:
Push tokens (
/v1/push-tokens) — registering a device push token requires a real device/browser to mint the token value, so it is out of scope for this server.Internal/billing endpoints (Stripe, PayPal, WebSocket, etc.).
Troubleshooting
"Authentication failed" error
Verify your API key is correct
Check that the key is properly set in
envsection of your MCP configEnsure there are no extra spaces or quotes around the key
"FORWARDEMAIL_API_KEY environment variable is required"
Make sure you've added the
envsection to your MCP configurationRestart Claude Desktop after changing the configuration
Tool not found
Restart Claude Desktop to reload MCP servers
Check Claude Desktop logs for startup errors
Development
# Clone the repository
git clone https://github.com/junxit/mcp-forwardemail.git
cd mcp-forwardemail
# Install in development mode
uv pip install -e ".[dev]"
# Run tests (--extra dev pulls pytest/respx)
uv run --extra dev pytest -v
# Run the server locally
FORWARDEMAIL_API_KEY="your_key" uv run forwardemail-mcpHow to Test
# Run unit tests
uv run --extra dev pytest -v
# Run single test file
uv run --extra dev pytest tests/test_endpoints.py -vHow to Uninstall
# If installed via pip/uv
pip uninstall forwardemail-mcp
# Remove from Claude Desktop config
# Edit ~/Library/Application Support/Claude/claude_desktop_config.json
# and remove the "forwardemail" entry from mcpServersCleanup Local Files
# Remove Python cache files
find . -type d -name "__pycache__" -exec rm -rf {} + 2>/dev/null
find . -type f -name "*.pyc" -delete
find . -type f -name "*.pyo" -delete
# Remove virtual environments
rm -rf .venv venv ENV .uv
# Remove build artifacts
rm -rf build dist *.egg-info .eggs
# Remove test/coverage artifacts
rm -rf .pytest_cache .coverage htmlcov .tox
# Remove the project directory (if installed from source)
cd .. && rm -rf mcp-forwardemailAssumptions
ForwardEmail API remains stable at
https://api.forwardemail.netAPI authentication continues to use HTTP Basic Auth
MCP SDK version 1.0+ maintains current interface
Users have valid ForwardEmail accounts with API access enabled
Contributing
Contributions are welcome! Please:
Fork the repository
Create a feature branch
Make your changes
Add tests if applicable
Submit a pull request
Links
ForwardEmail - The email service
ForwardEmail API Docs - Official API documentation
ForwardEmail GitHub - Official GitHub organization
MCP Documentation - Model Context Protocol docs
License
MIT License - see LICENSE file.
Disclaimer: This is an unofficial, community-maintained project. ForwardEmail is a trademark of Forward Email LLC. This project is not affiliated with, endorsed by, or supported by Forward Email LLC.
Available Tools
71 toolsaccount_createB
Create a new ForwardEmail account.
Inputs: email (required), password.
account_getA
Retrieve your ForwardEmail account information including email, plan, and settings.
Inputs: no named parameters.
account_updateC
Update your ForwardEmail account information.
Inputs: email, avatar_url, given_name, family_name, +1 more.
alias_createB
Create a new email alias for a domain.
Inputs: name (required), domain (required), labels, has_pgp, +9 more.
alias_deleteB
Delete an alias.
Inputs: domain (required), alias_id (required).
aliases_listA
List all aliases for a domain. Supports pagination and search.
Inputs: domain (required), page, sort, limit, +1 more.
alias_generate_passwordC
Generate a password for an alias to use with IMAP/SMTP/CalDAV/CardDAV.
Inputs: domain (required), alias_id (required), is_override, new_password, +1 more.
alias_getA
Get details of a specific alias.
Inputs: domain (required), alias_id (required).
alias_updateC
Update an existing alias.
Inputs: domain (required), alias_id (required), name, labels, +10 more.
calendar_createA
Create a calendar for an alias (CalDAV). Requires alias credentials.
Inputs: name (required), alias_password (required), alias_username (required), color, +4 more.
calendar_deleteA
Delete a calendar and its events for an alias (CalDAV). Requires alias credentials.
Inputs: calendar_id (required), alias_password (required), alias_username (required).
calendar_event_createB
Create a calendar event for an alias (CalDAV). Requires alias credentials.
Inputs: ical (required), calendar_id (required), alias_password (required), alias_username (required), +1 more.
calendar_event_deleteA
Delete a calendar event for an alias (CalDAV, soft delete). Requires alias credentials.
Inputs: event_id (required), alias_password (required), alias_username (required).
calendar_event_getB
Get a specific calendar event for an alias (CalDAV). Requires alias credentials.
Inputs: event_id (required), alias_password (required), alias_username (required).
calendar_events_listB
List calendar events for an alias (CalDAV). Requires alias credentials.
Inputs: alias_password (required), alias_username (required), page, limit, +4 more.
calendar_event_updateB
Update a calendar event for an alias (CalDAV). Requires alias credentials.
Inputs: event_id (required), alias_password (required), alias_username (required), ical, +1 more.
calendar_getA
Get a specific calendar for an alias (CalDAV). Requires alias credentials.
Inputs: calendar_id (required), alias_password (required), alias_username (required).
calendars_listA
List calendars for an alias (CalDAV). Requires alias credentials.
Inputs: alias_password (required), alias_username (required), page, limit.
calendar_updateA
Update a calendar for an alias (CalDAV). Requires alias credentials.
Inputs: calendar_id (required), alias_password (required), alias_username (required), name, +4 more.
contact_createB
Create a contact for an alias (CardDAV). Requires alias credentials.
Inputs: alias_password (required), alias_username (required), uid, emails, +6 more.
contact_deleteA
Delete a contact for an alias (CardDAV). Requires alias credentials.
Inputs: contact_id (required), alias_password (required), alias_username (required).
contact_getA
Get a specific contact for an alias (CardDAV). Requires alias credentials.
Inputs: contact_id (required), alias_password (required), alias_username (required).
contacts_listB
List contacts for an alias (CardDAV). Requires alias credentials.
Inputs: alias_password (required), alias_username (required), page, limit.
contact_updateA
Update a contact for an alias (CardDAV). Requires alias credentials.
Inputs: contact_id (required), alias_password (required), alias_username (required), emails, +5 more.
domain_allowlist_updateA
Replace a domain's sender allowlist. Pass an empty list to clear it.
Inputs: domain (required), allowlist (required).
domain_catchall_password_createB
Create a domain-wide catch-all password for IMAP/SMTP access.
Inputs: domain (required), description, new_password.
domain_catchall_password_deleteB
Delete a domain-wide catch-all password.
Inputs: domain (required), token_id (required).
domain_catchall_passwords_listB
List domain-wide catch-all passwords.
Inputs: domain (required).
domain_createB
Create a new domain in your ForwardEmail account.
Inputs: domain (required), plan, catchall, bounce_webhook, +7 more.
domain_deleteA
Delete a domain from your account.
Inputs: domain (required).
domain_denylist_updateA
Replace a domain's sender denylist. Pass an empty list to clear it.
Inputs: domain (required), denylist (required).
domain_getA
Get details of a specific domain.
Inputs: domain (required).
domain_sieve_activateA
Activate a Sieve filtering script for an alias (only one can be active).
Inputs: domain (required), alias_id (required), script_id (required).
domain_sieve_createC
Create a Sieve filtering script for an alias.
Inputs: name (required), domain (required), content (required), alias_id (required), +2 more.
domain_sieve_deleteB
Delete a Sieve filtering script for an alias.
Inputs: domain (required), alias_id (required), script_id (required).
domain_sieve_getB
Get a specific Sieve filtering script for an alias.
Inputs: domain (required), alias_id (required), script_id (required).
domain_sieve_listB
List Sieve filtering scripts for an alias.
Inputs: domain (required), alias_id (required).
domain_sieve_updateC
Update a Sieve filtering script for an alias.
Inputs: domain (required), alias_id (required), script_id (required), content, +2 more.
domains_listA
List all domains in your ForwardEmail account. Supports pagination and search.
Inputs: page, sort, limit, query.
domain_test_s3_connectionA
Test the domain's custom S3 storage connection (credentials and bucket access).
Inputs: domain (required).
domain_updateC
Update domain settings.
Inputs: domain (required), smtp_port, bounce_webhook, retention_days, +6 more.
domain_verify_recordsB
Verify DNS records (MX, TXT) for a domain.
Inputs: domain (required).
domain_verify_smtpA
Verify SMTP records (DKIM, Return-Path, DMARC) for outbound email.
Inputs: domain (required).
email_createB
Create and send an outbound email via SMTP API.
Inputs: to (required), from_addr (required), cc, bcc, +5 more.
email_deleteA
Delete/cancel an outbound email. Only works for emails with status 'pending', 'queued', or 'deferred'.
Inputs: email_id (required).
email_getA
Get full details of an outbound email including message body and headers.
Inputs: email_id (required).
emails_limit_getA
Get your daily outbound SMTP email limit and current count.
Inputs: no named parameters.
emails_listA
List outbound SMTP emails. Does not include message body - use email_get for full details.
Inputs: page, sort, limit, query, +1 more.
encrypt_txt_recordA
Encrypt a TXT record value for use in DNS. Useful for encrypting forwarding addresses in DNS records.
Inputs: input (required).
folder_createA
Create a folder for an alias (IMAP). Requires alias credentials.
Inputs: path (required), alias_password (required), alias_username (required).
folder_deleteA
Delete a folder and its messages for an alias (IMAP). Requires alias credentials.
Inputs: folder_id (required), alias_password (required), alias_username (required).
folder_getA
Get a specific folder for an alias (IMAP). Requires alias credentials.
Inputs: folder_id (required), alias_password (required), alias_username (required).
folders_listA
List folders for an alias (IMAP). Requires alias credentials.
Inputs: alias_password (required), alias_username (required), page, limit, +1 more.
folder_updateA
Rename a folder for an alias (IMAP). Requires alias credentials.
Inputs: path (required), folder_id (required), alias_password (required), alias_username (required).
invite_acceptA
Accept a domain invite that was sent to you.
Inputs: token (required), domain (required).
invite_createB
Invite a user to join your domain as admin or user.
Inputs: email (required), domain (required), group.
invite_deleteA
Remove/cancel a pending domain invite.
Inputs: email (required), domain (required).
logs_downloadA
Request a log download. Logs will be emailed to you as a gzip-compressed CSV attachment. Limited to 10 requests per day.
Inputs: query, domain.
member_deleteB
Remove a member from a domain.
Inputs: domain (required), member_id (required).
member_updateB
Update a domain member's role.
Inputs: group (required), domain (required), member_id (required).
message_createC
Create/append a message for an alias (IMAP, Nodemailer format). Requires alias credentials.
Inputs: alias_password (required), alias_username (required), cc, to, +9 more.
message_deleteA
Permanently delete a message for an alias (IMAP). Requires alias credentials.
Inputs: message_id (required), alias_password (required), alias_username (required).
message_getB
Get a specific message for an alias (IMAP). Requires alias credentials.
Inputs: message_id (required), alias_password (required), alias_username (required), eml, +3 more.
messages_listB
List and search messages for an alias (IMAP). Requires alias credentials.
Inputs: alias_password (required), alias_username (required), to, from, +12 more.
message_updateA
Update a message (flags/labels/folder move) for an alias (IMAP). Requires alias credentials.
Inputs: message_id (required), alias_password (required), alias_username (required), flags, +2 more.
sieve_script_activateA
Activate a Sieve script for an alias (only one can be active). Requires alias credentials.
Inputs: script_id (required), alias_password (required), alias_username (required).
sieve_script_createA
Create a Sieve script for an alias. Requires alias credentials.
Inputs: name (required), content (required), alias_password (required), alias_username (required), +1 more.
sieve_script_deleteA
Delete a Sieve script for an alias (cannot delete the active script). Requires alias credentials.
Inputs: script_id (required), alias_password (required), alias_username (required).
sieve_script_getB
Get a specific Sieve script for an alias. Requires alias credentials.
Inputs: script_id (required), alias_password (required), alias_username (required).
sieve_scripts_listA
List Sieve scripts for an alias. Requires alias credentials.
Inputs: alias_password (required), alias_username (required).
sieve_script_updateB
Update a Sieve script for an alias. Requires alias credentials.
Inputs: script_id (required), alias_password (required), alias_username (required), content, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 71 tools
Several tools have overlapping purposes, most notably the domain_sieve_* and sieve_script_* groups, which both manage Sieve scripts for an alias with nearly identical descriptions. Other resources like email vs message also blur the line between outbound SMTP and IMAP messages, though descriptions help somewhat.
Naming is inconsistent: list endpoints use plural resource names (domains_list, aliases_list, contacts_list), while other actions use singular (domain_create, alias_get, contact_update). Prefixes vary as well, with domain_sieve_* and sieve_script_* both used for the same underlying resource.
With 71 tools, the server is far beyond the typical 3-15 well-scoped range and even exceeds the 25+ threshold that indicates too many. While the API covers a broad feature set, the sheer number makes it unwieldy for an agent to navigate efficiently.
The tool surface is remarkably comprehensive, covering CRUD for accounts, domains, aliases, contacts, calendars, events, messages, folders, and Sieve scripts, plus email sending and domain verification. Minor gaps exist, such as no getter for allowlist/denylist (only replace) and duplication between Sieve tool groups, but most workflows have no dead ends.
Maintenance
Related MCP Connectors
Read and search FranklyMail email and prepare drafts, replies, and forwards for human approval.
Email hosting from your AI: read and send mail, add domains, check DNS and manage mailboxes.
Hosted email MCP for your own Gmail, Outlook.com, Microsoft 365, iCloud or IMAP inbox: read, search, draft, reply in thread, forward and file mail. It moves or flags up to 500 messages in one call, and a send leaves exactly one copy in Sent. A calendar is a separate connection, and connecting one adds diary and scheduling tools.
Email infrastructure for AI agents — send, receive, search, and reply to email over MCP.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to interact with Fastmail services, providing tools for comprehensive email management, contact searching, and calendar event coordination via the JMAP API. It supports advanced features like threaded conversations, attachment handling, and bulk mailbox operations through natural language.28MIT
- AlicenseCqualityCmaintenanceProvides AI assistants with access to PurelyMail's email management API, enabling user, domain, routing, and billing management through natural language.19106 npm14MIT
- AlicenseNot gradedqualityDmaintenanceEnables secure mailbox access and email management via IMAP/SMTP, with tools for reading, searching, organizing, sending, and deleting emails, designed for local use and compatible with MCP clients like ChatGPT.2MIT
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants to read, search, send, and organize email, manage contacts, and handle calendar events through Fastmail's JMAP, CalDAV, and WebDAV APIs, including attachments, drafts, labels, and account identities. It also supports setup checks and bulk operations for mailbox workflows.-