Model Context Protocol (MCP) server for Forward Email. Connect AI assistants to your inbox.
@forwardemail/mcp-server
Model Context Protocol (MCP) server for Forward Email. Connect AI assistants to your inbox.
Overview
This package provides a local MCP server that wraps the Forward Email API. It lets AI agents (Claude, ChatGPT, Cursor, Windsurf, and others) send email, manage domains, and read your inbox through natural language.
The server runs locally on your machine via stdio. Your API key never leaves your device.
Install
npm install -g @forwardemail/mcp-server
Or run directly with npx:
npx @forwardemail/mcp-server
Setup
1. Get your API key
Log in at https://forwardemail.net/my-account/security and copy your API key.
2. Set the environment variable
export FORWARD_EMAIL_API_KEY=your-api-key
3. Configure your AI client
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"forwardemail": {
"command": "npx",
"args": ["@forwardemail/mcp-server"],
"env": {
"FORWARD_EMAIL_API_KEY": "your-api-key"
}
}
}
}
Cursor
Add to .cursor/mcp.json in your project:
{
"mcpServers": {
"forwardemail": {
"command": "npx",
"args": ["@forwardemail/mcp-server"],
"env": {
"FORWARD_EMAIL_API_KEY": "your-api-key"
}
}
}
}
Available Tools
This server exposes the complete Forward Email API as MCP tools. Every endpoint is covered.
Account
getAccount- Get your account detailsupdateAccount- Update your account
Logs
downloadLogs- Download email delivery logs
Contacts (CardDAV)
listContacts- List all contactscreateContact- Create a contactgetContact- Get a contact by IDupdateContact- Update a contactdeleteContact- Delete a contact
Calendars (CalDAV)
listCalendars- List all calendarscreateCalendar- Create a calendargetCalendar- Get a calendar by IDupdateCalendar- Update a calendardeleteCalendar- Delete a calendar
Calendar Events (CalDAV)
listCalendarEvents- List all calendar eventscreateCalendarEvent- Create a calendar eventgetCalendarEvent- Get a calendar event by IDupdateCalendarEvent- Update a calendar eventdeleteCalendarEvent- Delete a calendar event
Domains
listDomains- List all domainscreateDomain- Create a new domaingetDomain- Get a domain by ID or nameupdateDomain- Update a domaindeleteDomain- Delete a domainverifyDomainRecords- Verify domain DNS recordsverifySmtpRecords- Verify domain SMTP recordstestS3Connection- Test custom S3 connection for a domain
Domain Catch-All Passwords
listCatchAllPasswords- List domain-wide catch-all passwordscreateCatchAllPassword- Create a domain-wide catch-all passworddeleteCatchAllPassword- Remove a domain-wide catch-all password
Domain Invites
acceptDomainInvite- Accept a domain invitecreateDomainInvite- Invite a user to a domainremoveDomainInvite- Remove a domain invite
Domain Members
updateDomainMember- Update a domain member roleremoveDomainMember- Remove a member from a domain
Aliases
listAliases- List aliases for a domaincreateAlias- Create a new aliasgetAlias- Get an alias by IDupdateAlias- Update an aliasdeleteAlias- Delete an aliasgenerateAliasPassword- Generate or set a password for an alias
Sieve Scripts
listSieveScripts- List Sieve scripts for an aliascreateSieveScript- Create a Sieve script for an aliasgetSieveScript- Get a Sieve script by IDupdateSieveScript- Update a Sieve scriptdeleteSieveScript- Delete a Sieve scriptactivateSieveScript- Activate a Sieve script
Sieve Scripts (Alias Auth)
listSieveScriptsAliasAuth- List Sieve scripts (alias auth)createSieveScriptAliasAuth- Create a Sieve script (alias auth)getSieveScriptAliasAuth- Get a Sieve script (alias auth)updateSieveScriptAliasAuth- Update a Sieve script (alias auth)deleteSieveScriptAliasAuth- Delete a Sieve script (alias auth)activateSieveScriptAliasAuth- Activate a Sieve script (alias auth)
Emails (Outbound SMTP)
listEmails- List outbound SMTP emailssendEmail- Send an email via outbound SMTPgetEmailLimit- Get outbound SMTP email sending limitgetEmail- Get an outbound SMTP email by IDdeleteEmail- Delete an outbound SMTP email
Messages (IMAP)
listMessages- List and search messages in a foldercreateMessage- Create a new message (draft)getMessage- Get a message by IDupdateMessage- Update a messagedeleteMessage- Delete a message
Folders (IMAP)
listFolders- List all folderscreateFolder- Create a new foldergetFolder- Get a folder by IDupdateFolder- Update a folderdeleteFolder- Delete a folder
Encrypt
encryptRecord- Encrypt a plaintext Forward Email TXT record
Development
git clone https://github.com/forwardemail/mcp-server.git
cd mcp-server
pnpm install
pnpm test