Connect guide

Connect Devin to your email through Mailopoly

Devin and Mailopoly: adding Mailopoly as a custom MCP server gives Devin your email — every account you own, searched together, already sorted — under permissions you set.

7-day free trial, no credit card.

In Devin open Customize → MCPs → Add MCP → Add custom MCP, choose HTTP, paste the Mailopoly URL, set Authentication to OAuth and Access to Personal, connect, tick reading, making changes or sending, and Devin can search, draft and send across Gmail, Outlook, Yahoo, iCloud and any IMAP mailbox — and, with business channels added to your plan, your Slack, Teams and WhatsApp too. Adding custom MCP servers in the Devin web app needs the Manage MCP Servers permission; the Devin CLI takes the same server with two commands.

This page is about Devin, Cognition's software-engineering agent — Devin in the web app and the Devin CLI (people also write devin ai or devin by cognition).

Does Devin support Gmail without Mailopoly?

No. Devin's native integrations are GitHub, GitLab, Bitbucket, Azure DevOps, Slack, Teams, Jira, Linear, PagerDuty and a few data tools; there is no email integration. The alternatives are a Gmail MCP server you host yourself or an API key in Devin's secrets manager.

Mailopoly gives Devin every account you own in one OAuth connection and one question — Gmail, Outlook, Yahoo, iCloud, IMAP — with mail that arrives already filtered by Cleanbox and invoices, events and deliveries extracted, and reading, making changes and sending as separate grants you can revoke.

Before you start

  • Devin, set up and signed in. This guide covers what happens once you have it.
  • A Mailopoly account — start one here, 7-day free trial, no credit card.
  • The mailboxes you want it to see, connected to Mailopoly. Gmail and Outlook connect with a Google or Microsoft sign-in; Yahoo, iCloud, AOL and IMAP mailboxes use an app password you enter on Mailopoly's own page — never in a chat or a config file. The connect guides have the exact steps for each provider.

Connect Devin to your email in three steps

1Connect your mailboxes to Mailopoly

  1. Start a Mailopoly account at mailopoly.com/sign-up — 7-day free trial, no credit card.
  2. Connect each mailbox you want Devin to reach: Gmail or Outlook with a Google or Microsoft sign-in, anything else with an app password from your provider's security settings. Each account gets one line in the same inbox — Gmail, Outlook, Yahoo, iCloud, any IMAP mailbox.
  3. If you want Devin to have an address of its own, pick one of the @mly.life addresses included in your plan and keep it for the agent's correspondence. It's still your address, on your account, so you see everything it sends and receives.

2Add Mailopoly to Devin

  1. In Devin open Customize → MCPs → Add MCP → Add custom MCP. Transport HTTP (streamable HTTP), Server URL https://fastapi.prod.aws.mailopoly.com/mcp-server/, Authentication OAuth, Access Personal. Save.
  2. Choose Connect on the saved server and sign in with your Mailopoly account in the browser. Devin registers itself with Mailopoly automatically — no client ID or secret to supply.
  3. Tick what Devin is allowed to do — reading for search and summaries; making changes for drafts, labels, tasks and reminders; sending only if you want it to send, from any connected address or your @mly.life address.
  4. From the Devin CLI instead: devin mcp add mailopoly https://fastapi.prod.aws.mailopoly.com/mcp-server/ then devin mcp login mailopoly. Ask.

Choose Personal access, not Organization: an Organization-scope connection would let every member's Devin sessions use the same inbox.

Official docs: Devin docs: MCP ↗

3Give it a job

Whatever you've connected to Mailopoly is what Devin can reach. Some jobs people hand over on day one:

  • Find the email thread where the customer reported the regression and summarise it for the ticket.
  • Search all my accounts for the signed contract PDF and tell me which message it's attached to.
  • Draft a deployment notice to the stakeholders from my work address and leave it in drafts.

What Devin can do with your email through Mailopoly

  • Search every account in one question — Gmail, Outlook, Yahoo, iCloud and IMAP together, or one account by name — by sender, date, topic or the half-remembered phrase somewhere in the body.
  • Work from the Cleanbox — your personal, non-promotional mail already separated from newsletters, promotions and automated noise, so a summary is a summary of what matters.
  • Read summaries, not raw messages — every email arrives already summarised, with invoices, events and deliveries extracted with their amounts, dates and status.
  • Keep My Day — see tasks and commitments pulled from every inbox, add tasks and reminders, tick things off.
  • Draft and send — save drafts to Mailopoly for you to review, or with the send permission send from whichever connected address fits the conversation, or from your @mly.life address.
  • Know what things cost — look up an invoice, total the week's bills, see what your subscriptions add up to.
  • Tidy up — label, file or clear mail in bulk, when you tell it to.
  • Business channels too — add them to your plan and your Slack, Teams, WhatsApp, Instagram, Messenger and TikTok messages sit in the same connection, and replies go back out through the channel they arrived on.

Should you give an agent your email account at all?

The warnings you'll find are right about one thing: an agent that logs in to Gmail as you, with your password, on a machine you don't control, is a bad idea. Mailopoly doesn't work that way. Your Google and Microsoft accounts connect to Mailopoly through their own sign-in, and other providers through an app password you enter on Mailopoly's page — Devin never has a password in its hands and never logs in to your provider at all.

Devin connects to Mailopoly with a scoped OAuth sign-in. Reading, making changes and sending are separate grants, sending is flagged as a confirm-first action in the protocol itself, every tool call is audit-logged against your account, and you can revoke Devin from Settings → Security → Connected AI assistants in the Mailopoly app — access ends immediately. Mailopoly has a SOC 2 Type 1 report and is independently security-assessed to CASA Tier 2 by TAC Security. If you want a hard line, give Devin reading only, or give it one of your @mly.life addresses to send from so nothing leaves under your name unless you say so. More on whether it's safe to give AI access to your email and the security page.

What goes wrong with Devin, and the fix

  • The Add custom MCP button isn't there. It needs the Manage MCP Servers permission in your Devin organisation; ask an admin, or use the Devin CLI with your own account.
  • Everyone in the org can see my mail. The server was saved with Organization access. Delete it and re-add with Access set to Personal.
  • It only reads mail during a session. Devin acts within a run. For Devin to be *messaged* by Mailopoly, and to message you when it's done, the any-agent guide covers the wake-bridge set-up.
  • It connected but the tools don't answer. Mailopoly's tools respond on an active subscription or trial. If the trial has lapsed, the connection stays but calls return nothing useful until the plan is active.
  • It can read but won't draft or send. Those are separate permissions. Sign in again from Devin and tick making changes or sending — or check what it holds under Settings → Security → Connected AI assistants in Mailopoly.

Related: Email for AI agents · Connect Claude Code to your email · Connect Codex to your email · Is it safe to give AI access to your email?

Start a free trial7-day free trial, no credit card. Connect your mailboxes, then add Mailopoly to Devin in about a minute.
Questions

Good to know.

Does Devin see my mail between sessions?

No. Devin only calls Mailopoly's tools while a session is running, and only with the permissions you ticked. You can see every call in Mailopoly's audit log and revoke Devin from Settings → Security at any time.

Does Devin get my Gmail password?

No. Gmail and Outlook connect to Mailopoly through Google's and Microsoft's own sign-in, and other providers through an app password you enter on Mailopoly's page, never in a chat or a config file. Devin connects to Mailopoly with a scoped, revocable OAuth sign-in and only ever gets the permissions you ticked — reading, making changes and sending are separate.

Can Devin have its own email address?

It can work from one of your @mly.life addresses, which are included in every Mailopoly plan — one on Single, two on Duo and Pro, three on Unlimited. Mail it sends goes out from that address, and whatever comes back — replies, a sign-up confirmation, a verification code — lands in your Mailopoly inbox, where Devin reads it like any other mail and so can you. It's your address on your account, so no bot logs in anywhere as you and there is nothing you can't see.

Does this work with Outlook, Yahoo, iCloud or a work mailbox?

Yes. Through Mailopoly Devin reaches every account you've connected — Gmail, Outlook.com and Microsoft 365, Yahoo, iCloud, AOL and any IMAP mailbox — in one connection, and can search them together or one at a time.

Is there a free trial?

Yes. Mailopoly starts with a 7-day free trial and no credit card, and the MCP connection is included in every plan. The tools respond while a trial or subscription is active.

Try it for a week. You won't go back.

Connect your first inbox in under a minute. Add your apps and agents whenever you're ready.