Agents (MCP)
Turn on Settings › MCP › Let agents use Mailfan. While Mailfan is open, agents like Claude and Cursor can use your mail through the Model Context Protocol at http://127.0.0.1:7878/mcp. The server only listens on your Mac and needs a token.
Tokens
Make a token in Settings under Tokens. Each token has:
- Access: Read (search and read) or Read & write (also draft, send, archive, flag and mark read). Sending always asks you to confirm.
- Accounts: all accounts, or only the ones you pick.
Pick a token under Connect a client to copy a ready-made snippet.
Claude Code
claude mcp add --transport http mailfan http://127.0.0.1:7878/mcp \
--header "Authorization: Bearer <token>"Claude Desktop
{
"mcpServers": {
"mailfan": {
"command": "/Applications/Mailfan.app/Contents/MacOS/Mailfan",
"args": ["--mcp-stdio"],
"env": { "MAILFAN_TOKEN": "<token>" }
}
}
}Tools
list_accounts, list_mailboxes, search_messages, get_message and get_thread read mail. With a read and write token, agents also get create_draft, send_message, archive_messages, flag_messages and mark_read.
Agents through MCP are part of Mailfan Pro.
Last updated on