Documentation
How to connect mailboxer to ChatGPT, Claude, Codex, or another MCP client, what each tool does, and how your data is handled.
Connect your agent
mailboxer is a remote MCP server. Add this address to your agent as a custom connector or MCP server:
https://mailboxer.dev/mcp
- ChatGPT: Settings, then Apps. Create a custom app and paste the address.
- Claude: Settings, then Connectors. Add a custom connector and paste the address.
- Codex, Claude Code and other clients: add a remote MCP server with this address. The client opens the sign-in page for you.
The first time your agent connects, it opens a sign-in page at mailboxer.dev. Enter your email address and choose which services to connect: mail, calendar, contacts, or all three. iCloud works out of the box. For other providers, mailboxer looks up the server settings and asks you only for what it can't find.
Each connection is for one account. To connect another one, add mailboxer again under a different name with a named address, such as https://mailboxer.dev/mcp/work, and sign in to that account. Some apps, including Claude, refuse the same address twice.
Which password to use
Use an app password when your provider offers one, rather than your main password. It gives mailboxer access to mail, calendar, and contacts only, and you can revoke it at any time without changing anything else.
You never need an old password. To reconnect, sign in with any password that works now, such as a new app password: mailboxer checks it with your provider and replaces the one it had saved.
- iCloud: create an app-specific password in your Apple Account.
- Other providers: look for "app passwords" in your account's security settings. Make sure IMAP access is turned on.
The provider guides give the exact steps for Fastmail, Yahoo, GMX, Zoho, Orange, Free, SFR, laposte.net and others.
Things to ask
Catch up on mail
What needs my reply today? Summarize each thread in one line.
Find a message
Find the flight confirmation from last week and give me the booking reference.
Plan the week
List my meetings for next week and tell me which ones overlap.
Update the calendar
Move my Thursday dentist appointment to 5 pm.
Write back
Draft a reply to Sam about Friday's meeting and show it to me before sending.
Look someone up
What is Alex Martin's phone number?
Tools
Your agent sees only the tools for the services you connected. Tools that change, delete, or send are marked so that your agent asks you before using them.
Account
- get_account
- Shows which account this connection uses and which services are on. Never returns passwords or server details. Reads only.
- delete_account
- Deletes this connection's saved account from mailboxer and disconnects every app using it. Needs the connected address as confirmation. Your mail stays at your provider. Deletes data.
- list_mailboxes
- Lists your folders, such as Inbox, Sent, and Archive. Reads only.
- list_messages
- Lists recent messages in a folder, newest first. Reads only.
- search_messages
- Searches by sender, recipient, subject, text, date, or flags. Reads only.
- get_message
- Reads one message, with its text and a list of attachments. Reads only.
- get_attachment
- Downloads one attachment from a message. Reads only.
- set_message_flags
- Marks messages read or unread, flagged or unflagged. Changes data.
- move_messages
- Moves messages to another folder. Changes data.
- delete_messages
- Moves messages to Trash. Removing them for good needs your explicit confirmation. Deletes data.
- send_email
- Sends a new message, reply, or forward from your address, with attachments. Sends mail.
Calendar
- list_calendars
- Lists your calendars and reminder lists. Reads only.
- list_calendar_items
- Lists events or reminders in a date range. Reads only.
- get_calendar_item
- Reads one event or reminder. Reads only.
- create_calendar_item
- Creates an event or reminder. Changes data.
- update_calendar_item
- Changes an event or reminder. Changes data.
- delete_calendar_item
- Deletes an event or reminder. Deletes data.
Contacts
- list_address_books
- Lists your address books. Reads only.
- list_contacts
- Lists or searches contacts. Reads only.
- get_contact
- Reads one contact card. Reads only.
- create_contact
- Creates a contact. Changes data.
- update_contact
- Changes a contact. Changes data.
- delete_contact
- Deletes a contact. Deletes data.
Agents that support live updates can also subscribe to a mailbox and are told when new mail arrives, while the connection stays open.
Your data
Messages, events, and contacts are fetched from your provider when your agent asks for them and passed straight back. mailboxer does not keep a copy. Your sign-in details are encrypted before they are stored. The privacy policy has the details.
To disconnect, remove the connector from your agent and revoke the app password at your provider. To delete your saved account details, use the delete page or ask your agent to use delete_account. Accounts unused for 12 months are deleted automatically.
If something goes wrong
- The password is refused. Check that you used an app password and that IMAP is turned on at your provider.
- Settings were not found. Your provider's help pages list the IMAP, SMTP, CalDAV, and CardDAV server names. Enter them on the settings step.
- Your agent says it needs to sign in again. Sign-ins expire after 30 days without use. Reconnect from your agent's settings.
Host it yourself
The source code is open and deploys to your own Cloudflare account in a few clicks, so your password is stored only on infrastructure you control. Read the self-hosting guide.
