Give the AI Agent in your n8n workflow a real mailbox. It can read, search, draft, send, reply, forward and file mail through one MCP endpoint, with a key scoped to exactly what the workflow should do.
In your n8n workflow, add an MCP Client Tool node to the AI Agent's Tool input. Set Endpoint to https://mcpemails.com/api/mcp, Server Transport to HTTP Streamable and Authentication to Bearer Auth, then paste an API key from your MCPEmails dashboard as the Bearer Token.
The MCP Client Tool node sends whatever credential you attach to it. This guide uses n8n's Bearer Auth credential, which puts your key on the Authorization header of every request. Create the key in your dashboard and tick only the scopes the workflow needs. A workflow often runs on a schedule with nobody watching, so those scopes are the boundary that matters. Key connections and OAuth connections hit the same endpoint and get the same tool catalogue.
Everything on this page is a way of getting this URL into n8n.
| Field | Value |
|---|---|
| MCP server URL | https://mcpemails.com/api/mcp |
| Transport | Streamable HTTP (MCP 2025-06-18) |
| Authentication | Authorization: Bearer, using a scoped API key from your dashboard. |
Four steps. The first two are the same for every client, the rest are specific to this one.
Sign up at mcpemails.com, no card required, then go to Dashboard, Inboxes, Connect Inbox. Outlook and Microsoft 365 connect with Sign in with Microsoft; Gmail, iCloud, Fastmail, Yahoo, Zoho and Yandex take an app-specific password; anything else connects over plain IMAP and SMTP.
In Dashboard, API Keys, click Create key. Name it after the workflow and tick only the scopes it needs: read:email, search:email, send:email, manage:folders, delete:email, manage:drafts, manage:contacts, schedule:email and manage:automations. The key looks like mcpe_ followed by 64 hex characters and is shown once, so copy it before you close the dialog.
Open the workflow, click the plus under the AI Agent node's Tool input and pick MCP Client Tool. Paste https://mcpemails.com/api/mcp into Endpoint and set Server Transport to HTTP Streamable.
Set Authentication to Bearer Auth, create a new credential and paste the key into Bearer Token, with nothing in front of it. Leave Tools to Include on All, or switch to Selected and pick only the tools this workflow should see.
Official n8n documentation for remote MCP servers: https://docs.n8n.io/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.toolmcp/
Wondering which mailbox to connect first? See the provider compatibility matrix
n8n's Bearer Auth credential adds Bearer and a space for you. Typing it yourself sends the word twice and the call fails with a 401. If you use Header Auth instead, it is the other way round: Name is Authorization and Value is Bearer, a space, then the key.
Version 1 of the MCP Client Tool node had a single SSE Endpoint field and no transport choice. Current versions show Endpoint plus Server Transport. This server speaks Streamable HTTP, so if you only see SSE Endpoint, add a fresh node or update n8n. If Server Transport reads Server Sent Events (Deprecated), switch it to HTTP Streamable.
The node waits 60,000 ms for a tool call, set under Options, Timeout. That is enough even for bulk work: a move or delete across a large folder stops on the server's own time limit before then and returns a result marked partial, with the untouched messages listed in remaining_message_ids, so the agent can call again with those ids. Setting Timeout much lower can cut a call off before that result arrives, and the agent is left not knowing what was done.
The node only ever lists the tools your key is scoped for, because the server leaves the rest out of tools/list. Picking a subset under Tools to Include narrows that further, which helps the model choose, but it does not change what the key may do. Set the boundary on the key and use Tools to Include to keep the agent focused.
Add an MCP Client Tool node to the AI Agent's Tool input. Set Endpoint to https://mcpemails.com/api/mcp and Server Transport to HTTP Streamable, choose Bearer Auth, and paste an API key from Dashboard, API Keys as the Bearer Token. The agent then has tools for reading, searching, drafting, sending, replying, forwarding, organizing and scheduling mail.
Yes. n8n's standalone MCP Client node runs one MCP tool as an ordinary workflow step, with no model deciding what to call. Point its MCP Endpoint URL at the same address, attach the same Bearer Auth credential, pick a tool and fill in its parameters, for example email_read with action set to list and unread set to true. This suits fixed pipelines where the steps never change.
n8n also offers an MCP OAuth2 credential. This guide uses Bearer Auth because the scopes on a key are fixed when you create it and visible in your dashboard, which is easier to reason about for a workflow that runs unattended. Revoking the key in Dashboard, API Keys stops the workflow on its next call.
Only if you let it. Sending needs the send:email scope, so a key without it cannot send at all. You can also turn on approval for an inbox in the dashboard: sends, replies, forwards, draft sends and scheduled sends are then held, the agent gets a pending result, and a workspace member approves or rejects each one before anything goes out.
Outlook.com and Microsoft 365 over Sign in with Microsoft, where a work account may need an IT admin to approve the app once; Gmail, iCloud, Fastmail, Yahoo, Zoho and Yandex with an app-specific password; and any other mailbox that speaks IMAP and SMTP on the standard ports. With several inboxes connected, the agent calls inbox_list to find each one's id, so there are no UUIDs to hardcode in the workflow.
No. Every message is fetched live from your provider for the request that asked for it and handed straight to n8n. Only the encrypted OAuth token or app password is kept, so future calls can authenticate. Deleting the inbox in the dashboard, or revoking access at your provider, ends the connection at once.
One endpoint, one Bearer Auth credential, one scoped key. No card required.