Gmail logo

Gmail

Read, search, send, organize, and draft Gmail messages through OAuth-backed MCP tools.

Install Gmail

Pick your client, then add it in one click or paste the config.

No confirmed install command yet

We only publish a config when the install details come from the project itself — its README, its docs, or a verified owner. We haven’t found those for Gmail, and we’d rather show nothing than a guess you’d paste into your client.

Open setup steps on GitHub

Overview

The Gmail MCP server gives AI clients tools for searching, reading, sending, drafting, labeling, archiving, and deleting Gmail messages and threads. It uses Google OAuth and forwards authenticated MCP requests to the Gmail API without storing tokens or session state. Reach for it when an agent needs to find email information, manage inbox content, or create and send replies as part of a broader workflow. It runs over HTTP by default in the documented setup and can be connected to clients including Claude, Cursor, Cline, and VS Code.

Use cases

  • Search email threads for booking details
  • Create and send follow-up drafts
  • Archive or label matching messages
  • Forward selected emails to recipients
  • Track receipts or shipping notifications

Key features

  • Searches messages and threads
  • Reads complete email conversations
  • Sends, forwards, and manages drafts
  • Applies labels and archives messages
  • Trashes, restores, and permanently deletes mail
  • Uses Google OAuth with Gmail API scopes

Tools43

What Gmail lets your agent do. Expand a tool for its parameters.

Self-reported~364 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

4/4 checks healthy over the last 36d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars12Stargazers on the source repository.
Last commit3d agoMost recent push to the default branch.
Tools exposed43Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Gmail works

What the Gmail MCP server does

The Gmail MCP server exposes Gmail account and mailbox operations through MCP. Agents can retrieve the signed-in user's profile, search messages or threads, read individual messages, and inspect every message in a thread. Thread search and retrieval are identified as the preferred options when working with conversations.

Email-management operations include sending messages, forwarding messages, applying or removing labels, archiving inbox items, moving messages or threads to trash, restoring them, and permanently deleting them. Batch message operations support bulk label changes and permanent deletion.

Draft workflows cover listing, reading, creating, updating, sending, and deleting drafts. The server also exposes label listing and retrieval, along with additional Gmail operations documented by the project for attachments, filters, and vacation auto-reply settings.

How it works

The Gmail MCP server acts as an OAuth proxy between an MCP client and Google. The client connects to the MCP endpoint, while the server advertises OAuth authorization metadata, registers clients, redirects users to Google, and handles the callback and token exchange. Authenticated requests arriving at /mcp are sent to the Gmail API with the bearer token.

The documented architecture says the server does not retain tokens or application state; it passes OAuth traffic between the client and Google. Gmail API access is based on scopes for reading, sending, and modifying mailbox content. Modification access covers actions such as archiving, changing labels, and moving messages to trash.

Setup and configuration

Create a Google Cloud project or use an existing one, enable the Gmail API, configure the OAuth consent screen, and create an OAuth client ID for a web application. Add http://localhost:3000/callback as an authorized redirect URI, then retain the generated client ID and client secret.

Start the server with the Google credentials and HTTP transport configured:

bash
GOOGLE_CLIENT_ID='your-client-id' \
GOOGLE_CLIENT_SECRET='your-client-secret' \
MCP_TRANSPORT=http \
npm start

The default address is http://localhost:3000. Set PORT to use another port, such as 3001. Once it is running, use the project's installation instructions to generate MCP client configuration for the server endpoint.

Tools and capabilities

  • Search and list messages or threads.
  • Read messages and complete threads.
  • Send, forward, create, update, and send drafts.
  • Add or remove labels, archive messages, and perform bulk label changes.
  • Trash, restore, or permanently delete messages and threads.
  • List and inspect Gmail labels.
  • Retrieve attachments and manage documented filters and vacation settings.

Limitations and notes

The server requires Google OAuth credentials and Gmail API access. Actions that change mailbox content need the corresponding Gmail modification scope, while sending requires the send scope. Permanent deletion and sending are available as separate tools, so an agent configuration should account for their different effects.

The message-listing tool is available, but the project recommends thread listing for conversation-oriented searches. Likewise, thread retrieval is recommended when the agent needs the complete conversation rather than one message.

The provided setup uses a localhost callback and HTTP transport.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Gmail

Gmail is an MCP server that connects AI clients to the Google Gmail API through OAuth. Its main tools search and read messages or threads, send and forward email, manage drafts, apply labels, archive or trash mail, restore items, and permanently delete messages or threads.

Install the project dependencies and start it with Google OAuth credentials and HTTP transport configured. Enable the Gmail API, create a web OAuth client, add the localhost callback URI, set GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET, then run npm start.

Yes, Gmail works with Cursor through its HTTP MCP endpoint. Start the server, then use the project's linked installation instructions to generate the appropriate client configuration.

The required permissions depend on the operation: gmail.readonly supports reading messages and labels, gmail.send supports sending messages, and gmail.modify supports mailbox changes such as archiving, label updates, and trash actions.

Yes, it can create, update, retrieve, list, send, and delete Gmail drafts. It also provides a separate message-sending tool for sending an email directly.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGmail AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/gmail?style=directory)](https://allmcps.com/mcp/gmail)
HTML Embed
<a href="https://allmcps.com/mcp/gmail"><img src="https://allmcps.com/api/badge/gmail?style=directory" alt="Gmail on AllMCPs" /></a>