Gmail + AI

The Gmail MCP server
for Claude, Cursor and ChatGPT

Give your AI agent a real Gmail inbox in minutes. Read, search, send, reply, schedule and organize mail using a Google app password, and use the same inbox in every MCP client, not just one.

1 inbox free, forever Connects with a Google app password Email fetched live, never stored

The Gmail MCP server URL is https://mcpemails.com/api/mcp. MCPEmails is a hosted MCP server: create a Google app password, connect Gmail once in the dashboard, then paste that URL into Claude, ChatGPT or Cursor. In Cursor, add it under mcpServers in ~/.cursor/mcp.json with the field url, and Cursor asks you to sign in, with no API key. The Free plan connects one Gmail inbox, forever, with no card, and works with a personal Google account or Google Workspace.

How Gmail connects: a Google app password

Gmail connects with a Google app password over IMAP and SMTP. Google only offers app passwords on accounts with 2-Step Verification switched on, so turn that on first, then create one at myaccount.google.com/apppasswords. It is 16 lowercase letters in four groups, and you paste it in place of your normal Google password, which will not work. Revoke it anytime from the same Google page, or delete the inbox in MCPEmails.

Google shows an unverified app screen

This applies only to Google sign-in, which is offered on Pro and Business; the default app password connection shows no Google screen. Google reviews apps that request Gmail access, and mcpemails.com has not been through that review, so Google sign-in shows an unverified app screen, with the steps to continue. The connection itself is not time-limited: once connected, an inbox stays connected until you revoke it.

What your AI can do

A Gmail inbox your agent can actually use

21 action-based MCP tools: send, reply, forward, schedule, and organize. Your agent finishes the job inside Gmail.

  1. 01Read

    Read & search mail

    List, read and search across folders to find that invoice, summarize a thread, or pull the latest from a sender.

  2. 02Send

    Send, reply & forward

    Compose and send real messages, reply in-thread, and forward, directly from your mailbox, not as a draft you finish by hand.

  3. 03Schedule

    Schedule for later

    Queue a message to go out at the right time, so your agent can draft now and send on schedule.

  4. 04Organize

    Move, copy, flag, archive, delete

    Keep the inbox tidy: file mail into folders, flag what matters, archive the rest, or delete on request.

Setup

Connect Gmail in four steps

From sign-up to first AI email in a couple of minutes.

01

Create a free account

Sign up for MCPEmails, no card required. The free plan connects one inbox, forever.

02

Create a Google app password

Switch on 2-Step Verification in your Google account if it is not already on, then go to myaccount.google.com/apppasswords and create one. Paste the 16 characters into MCPEmails with your full Gmail address. Spaces in the code do not matter.

03

Paste the MCP URL into your AI

Drop https://mcpemails.com/api/mcp into Claude, Cursor or ChatGPT, authorize, and your agent has the inbox.

ChatGPT

Use Gmail in ChatGPT

ChatGPT reaches Gmail through Any Mailbox, the MCPEmails plugin in the ChatGPT plugin directory.

  1. Connect Gmail to MCPEmails with the steps above.
  2. In ChatGPT, open Plugins, find Any Mailbox in the plugin directory and click Install plugin, then Connect.
  3. Sign in to MCPEmails and choose which mailboxes ChatGPT can reach. In a chat, type @ and pick Any Mailbox.
Before you start

What actually goes wrong with Gmail

Google publishes its own Gmail MCP server, and for Gmail alone it is the shorter path

Google announced official MCP support for its services, including a Workspace MCP server that covers Gmail alongside Drive, Calendar and Chat. We are not going to pretend otherwise. If Gmail is the only mailbox you want an assistant to touch, and your client speaks to Google's server, use it. The reason to point MCPEmails at Gmail instead is that the same server also holds your iCloud, Fastmail, Zoho, Yahoo or company IMAP mailbox, exposes every one of them through one MCP URL, and behaves the same way in Claude, Cursor and ChatGPT. One connector per provider, each with its own auth and its own tool names, is the thing this avoids.

Sending from another address takes a verified Send As address

A mailbox connected with an app password sends from its own address. To let your agent send from an alias or another address you own, add it under Send As addresses in the inbox settings in MCPEmails. We email that address a 6-digit code, and it becomes usable once you enter the code. Gmail has to accept the address too, so set it up as a Send mail as address in Gmail first. A From address that is neither the mailbox's own nor verified is refused, not silently rewritten.

Gmail has labels, not folders, so a move is not a move

Gmail stores labels, not folders. Over IMAP every label appears as a folder, so a message can carry several labels at once and show up in several folders. Moving it means adding one label and removing another, and archiving is simply removing INBOX. Delete puts the message in Gmail's Trash rather than erasing it. If you ask an agent to file mail into a folder that does not exist yet, the label has to be created first, and it will then appear in Gmail on every device.

A Google Workspace admin can switch app passwords off

On a personal Google account the only prerequisite is 2-Step Verification. On a Google Workspace account an administrator can disable app passwords for the whole domain, in which case myaccount.google.com/apppasswords is simply unavailable to you and there is nothing you can do from inside the mailbox. Ask your admin, or connect a different mailbox.

Known limits with Gmail

  • MCPEmails reaches mail only: an app password is used for IMAP and SMTP alone. Drive, Calendar, Chat and Docs are not reached.
  • A Google Workspace administrator can switch app passwords off for the domain from the Admin console. Only an administrator can change that decision.
  • Delete moves a message into Gmail's Trash. A permanent delete follows Gmail's IMAP settings: by default it only removes the label the message was deleted from, and an expunge from Trash erases it.
FAQ

Gmail and AI: common questions

Does Claude work with Gmail?

Yes, once something stands between them that speaks Gmail on Claude's behalf. MCPEmails is one such thing: you create a Google app password, paste one MCP URL, and Claude can read, search, send, reply, forward and schedule mail. Google also publishes an official Workspace MCP server covering Gmail. The practical difference is that MCPEmails is not Google-only, so the same URL serves your other mailboxes too.

What is the Gmail MCP server URL, and is it free?

The URL is https://mcpemails.com/api/mcp, the same in Claude, ChatGPT, Cursor and every other MCP client. The Free plan connects one Gmail inbox with no card, forever. Paid plans add more inboxes.

Is there an official Gmail MCP server from Google?

Yes. Google announced official MCP support for its services, with a Workspace MCP server spanning Gmail, Drive, Calendar and Chat. Use it when Gmail is the only mailbox involved and your client supports it. Choose a third-party server such as MCPEmails when you want several providers behind a single MCP URL, or when you want identical behaviour across Claude, Cursor and ChatGPT.

Do I need an app password for Gmail?

Yes. Gmail connects over IMAP and SMTP with a Google app password, not your normal Google password. Google only shows app passwords on accounts with 2-Step Verification enabled, so switch that on first, then create one at myaccount.google.com/apppasswords. It takes about a minute.

Why can I not create an app password on my work account?

Google only offers app passwords on accounts with 2-Step Verification switched on, so check that first. On a Google Workspace account an administrator can also switch app passwords off for the whole domain, and then myaccount.google.com/apppasswords stays unavailable whatever you do inside the mailbox. Only your administrator can change that. A personal Gmail account needs nothing more than 2-Step Verification.

Does it work with a Google Workspace custom domain?

Yes. A Workspace mailbox on your own domain connects with an app password exactly like a gmail.com address and behaves identically afterwards. The one condition is administrator policy: the domain has to allow app passwords and IMAP access.

Is my Gmail stored on your servers?

No. Messages are fetched live from Google for each request and handed to your AI client. Your app password is encrypted at rest and message bodies are not retained. Revoking the app password in your Google Account, or deleting the inbox in MCPEmails, ends the connection straight away.

Can ChatGPT read my Gmail?

Yes, once Gmail is connected to MCPEmails. Install Any Mailbox from the ChatGPT plugin directory and sign in to MCPEmails. ChatGPT gets only the access you approve, and your mail is fetched live, never stored.

Give your AI a Gmail inbox

Connect Gmail in minutes. One inbox free forever, no card required.