Busymail 如何不用 OAuth 透過 IMAP 將電郵連接至 Claude
Connecting Claude to email without OAuth
Busymail 透過 IMAP 和應用程式密碼連接電郵帳戶,再以可設定權限的 MCP Token 讓 Claude 存取郵箱;MCP 伺服器端點為 https://busymail.app/mcp。
The common route for connecting Claude to email starts with OAuth. You create a Google or Microsoft app, wait for review, and ask the user for a consent screen that can read their mail. That is a reasonable route for a big product. For a small one, the review is slow and the consent screen is broad.
There is another route. Email has had a standard protocol for reading mail for decades: IMAP. Many providers let you create an app password, a credential for one application that you can revoke without changing your main password. Busymail connects over IMAP with that password, and exposes the same mailbox to Claude through an MCP server with a token you create.
Here is the whole setup.
- Create an app password at your provider.
Gmail: turn on 2-Step Verification first. Google only creates app passwords once it is on. Then create one for Busymail.
Yahoo: Account Security, then External connections, then create an app password.
Fastmail: Settings, then Privacy & Security, then Connected apps & API tokens, then Manage app passwords and access, then New app password. Fastmail's Basic plan cannot create app passwords or use IMAP.
Any other provider: look for app passwords or application-specific passwords. If your provider offers an app password and public IMAP on port 993, Busymail can connect to it; you will also need its SMTP details for sending.
Microsoft 365 and Outlook cannot connect yet. Microsoft has turned off the password-based sign-in that app passwords use, so their mailboxes need an OAuth sign-in Busymail does not have yet.
- Connect the mailbox in Busymail.
Sign up, connect the account with the app password, and the first sync starts. The trial details and the price live on the signup page, so they stay current there.
- Create a token for Claude.
In Busymail, go to Settings, then MCP. Create a token and choose its access:
- Read: message content, summaries, search and sent mail. Every token has this.
- Organise: archive, unarchive, pin and unpin. Archiving moves the mail on your server, so it changes every other mail app too.
- Send: queues mail for you to approve. It also sees what is already queued on the account, whichever client queued it.
- Add the server to Claude.
The endpoint is https://busymail.app/mcp, as a Streamable HTTP MCP server with the token as a bearer token. The exact client config is at https://busymail.app/mcp-setup?utm_source=devto. Copy it from there rather than from an old post, because the clients change.
What the token can never do.
Its send tool only queues. When Claude writes a reply, the message waits under Approvals in Busymail until you approve or reject it, with the recipients, subject and body there to read first. Approving happens while you are signed in, so the token that wrote a message cannot approve it.
It also cannot change your settings, your password or your two-factor, add or remove an account, or create and revoke tokens. Those stay with you. You can revoke a token at any time without affecting the others, and revoking the app password at your provider cuts the connection at the source. That does not delete mail already synced, and a token you created stays valid until you revoke it.
Why this route is worth considering.
- It works beyond Gmail. The same setup covers Yahoo, Fastmail on a plan that includes third-party app access (Basic does not), Migadu (which calls it the mailbox password), a work server, or a mailbox on your own domain, as long as it offers IMAP on 993 and an app password.
- The credentials are separable. The app password is for Busymail; the token is for Claude. Either can be revoked without touching the other.
- The boundary is in the product, not in the prompt. A confirmation flag asks the model to be careful. A separate approval step, signed in, is a different thing.
If you want to see the shape first, the demo needs no account: https://busymail.app/demo?utm_source=devto.
If you would rather start with a checklist, the 10-minute inbox audit is one page, free to download, and needs no account.
The trial and the price are on the signup page, which is the one place they are kept current.
來源:DEV Community · dev.to