JetBrains + email

Connect your inbox to JetBrains
AI Assistant

Add a real mailbox to AI Assistant in any JetBrains IDE that supports it. Read, search, send, reply, schedule and organize mail without leaving the IDE.

Open Settings, Tools, AI Assistant, Model Context Protocol. Add a server, choose Streamable HTTP as the connection type, paste https://mcpemails.com/api/mcp, and add an Authorization Bearer header holding an API key from your dashboard.

1 inbox free, forever Scoped API key, revocable in one click Email fetched live, never stored

How JetBrains AI Assistant connects: a scoped API key

JetBrains AI Assistant does not run the OAuth browser flow against a remote MCP server, so it authenticates with a bearer token instead. Create an API key in your dashboard, tick only the scopes the agent needs, and paste it into JetBrains AI Assistant as an Authorization: Bearer header. Key connections and OAuth connections hit the same endpoint and get the same tool catalogue; the difference is only how the token is obtained.

The one value you need

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

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 JetBrains 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. Gmail connects with one-click Google sign-in; iCloud, Fastmail, Yahoo, Zoho and Yandex take an app-specific password; anything else connects over plain IMAP and SMTP. The free plan holds one inbox, forever.

02

Create a scoped API key

In Dashboard, API Keys, click Create key. Name it and tick only the scopes this agent 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

Open the MCP settings

Open Settings, then Tools, then AI Assistant, then Model Context Protocol (MCP).

04

Add the server

Click Add and select Streamable HTTP as the connection type. Paste https://mcpemails.com/api/mcp, then add a header named Authorization with the value Bearer followed by a space and your key.

Before you start

What trips people up in JetBrains

Streamable HTTP, not stdio and not SSE

The connection type list offers a local command-based server first, because that is what most MCP servers are. This one is remote and hosted, so there is no command to run. Choose Streamable HTTP, which is the transport this server speaks under the 2025-06-18 revision.

The key is the whole permission model here

AI Assistant does not run the OAuth consent flow, so there is no second screen where you narrow what the connection may do. Whatever you tick when creating the key is what the IDE holds until you revoke it. For an IDE, read, search and draft scopes cover almost everything worth doing.

IDE settings sync, and a bearer token is a credential

If you have settings sync turned on across machines, treat the key like any other credential that travels with it. Keys are cheap: issue one per machine, name them so a listing is readable, and revoke the one you no longer recognise. Only a SHA-256 hash is stored on our side, so the raw key is unrecoverable and lost keys are replaced rather than retrieved.

Limits worth knowing

  • Requests are rate limited to 100 per minute, 1,000 per hour and 10,000 per day per key, plus your plan ceiling on billable actions.
  • The server is request and response only. There are no webhooks and no server-initiated events, so new mail never wakes your agent by itself. To react to arriving mail, poll on a schedule.
  • 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

JetBrains and email, answered

How do I connect email to JetBrains AI Assistant?

Open Settings, Tools, AI Assistant, Model Context Protocol, add a server with the Streamable HTTP connection type, paste https://mcpemails.com/api/mcp, and add an Authorization Bearer header with an API key from your dashboard. AI Assistant then has tools for reading, searching, sending, replying, organizing and scheduling mail.

Which JetBrains IDEs does this work in?

Any JetBrains IDE where AI Assistant can configure an MCP server. The settings path and the Streamable HTTP connection type belong to AI Assistant rather than to a particular IDE, so the setup is the same wherever the plugin is available. If the Model Context Protocol screen is missing from your Settings, that is the plugin, not this server.

Why an API key rather than OAuth?

Because AI Assistant authenticates a remote MCP server with a configured header rather than by running a browser OAuth flow. A bearer key is the path that works there. The endpoint and the tools are identical to the OAuth clients; only the way the token is obtained differs.

Which mailboxes can AI Assistant reach this way?

Gmail over Google sign-in, iCloud, Fastmail, Yahoo, Zoho and Yandex with an app-specific password, and any other mailbox that speaks IMAP and SMTP on the standard ports. The client sees them all through the same connection: your agent calls inbox_list first to discover every connected mailbox and its id, so there are no UUIDs to paste anywhere.

Can AI Assistant send email without me seeing it?

Only if you let it. Sending is gated on the send:email scope, so a key or a token without that scope cannot send at all. On top of that, an inbox owner can require human approval in the dashboard, which holds every send, reply, forward, draft send and scheduled send until a person releases it.

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 your client. 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 IDE a real inbox

One MCP server, one scoped key. One inbox free forever, no card required.