n8n + email

Connect your inbox to n8n
with the MCP Client Tool

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.

Works with the built-in MCP Client Tool node Scoped API key, revocable in one click Email fetched live, never stored

How n8n connects: a Bearer Auth credential holding a scoped key

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.

The one value you need

Everything on this page is a way of getting this URL into n8n.

FieldValue
MCP server URLhttps://mcpemails.com/api/mcp
TransportStreamable HTTP (MCP 2025-06-18)
AuthenticationAuthorization: Bearer, using a scoped API key from your dashboard.
Setup

How to connect n8n to your inbox

Four steps. The first two are the same for every client, the rest are specific to this one.

01

Create a free account and connect a mailbox

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.

02

Create a scoped API key

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.

03

Add the MCP Client Tool to your AI Agent

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.

04

Attach a Bearer Auth credential

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.

Before you start

What trips people up in n8n

Paste the key without the word Bearer

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.

A field called SSE Endpoint means an old node

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.

Keep the default timeout

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.

Tools to Include hides tools; the key's scopes forbid them

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.

Limits worth knowing

  • Requests are rate limited to 100 per minute, 1,000 per hour and 10,000 per day per key. A workflow that loops over many items should pace itself or share the work across separate keys.
  • The server is request and response only. There are no webhooks and no server-initiated events, so new mail never starts a workflow by itself. To react to arriving mail, start the workflow with a Schedule Trigger and have the agent check for unread messages.
  • Mail is fetched live from your provider on every call and never stored. Only the encrypted OAuth token or app password is kept, so a revoked token or a changed mailbox password ends access immediately.
FAQ

n8n and email, answered

How do I connect email to an n8n AI Agent?

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.

Can I call an email tool without an AI Agent?

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.

Why Bearer Auth rather than the MCP OAuth2 credential?

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.

Can the workflow send email without anyone checking?

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.

Which mailboxes can an n8n workflow reach?

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.

Is my email stored on your servers?

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.

Give your n8n agent a real inbox

One endpoint, one Bearer Auth credential, one scoped key. No card required.