Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Gmail MCP

MCP server by crissmoldovan Verified · npm:@agentcomms

Gives coding agents access to Gmail. The agent can search, read, analyse, draft and organise mail across connected mailboxes, but cannot send without your approval. Built for developers who use MCP clients such as Claude Code, Codex or Cursor.

  • Score 75
  • 0 stars
  • 134 a week
  • MIT
  • Updated

Install Gmail MCP

Built from the published package, never by AI.

claude mcp add gmail-mcp -- npx -y @agentcomms/gmail-mcp

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Gmail MCP in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the gmail-mcp block.

About

The Gmail MCP server is part of the agent-communications project. It lets an AI agent search, read, analyse, draft and organise email across as many mailboxes as you connect. It runs from the npm package @agentcomms/gmail-mcp and works with MCP clients such as Claude Code, Codex, Cursor, Claude Desktop and Gemini CLI. The package also includes a CLI called agent-gmail.

Sending is handled differently from drafting. Every send goes through one code path that runs approval checks, and each send binds to the exact content and draft version you approved. Each mailbox has a policy: chat, confirm or never. Under chat, you approve the preview in the conversation within ten minutes. Under confirm, you type a code at a terminal. Under never, the draft stays in Gmail. The project is intended for people who want an agent to handle their mail while keeping control over outgoing messages.

Written from the project's README and checked against it.

Tools it gives your assistant

  • gmail_send_waitLets the agent wait for your approval of a pending send under the confirm policy.
  • Search and read mailSearches and reads messages across the mailboxes you connect.
  • Analyse mailLets the agent analyse email content from your connected mailboxes.
  • Draft emailsLets the agent write drafts that wait in Gmail until you approve a send.
  • Organise mailLets the agent organise messages across connected mailboxes.
  • Approval-gated sendingSends only after an approval step under the chat, confirm or never policy.

What you need

  • Node.js, to run the npx command
  • A Google Cloud OAuth client, created by you
  • A Gmail account to connect
  • An MCP client such as Claude Code, Codex, Cursor or Claude Desktop

Try asking

  • Search my Gmail for unread messages from my manager this week
  • Summarise the last three emails in my support inbox
  • Draft a reply to the invoice thread and leave it in Gmail

Good to know

  • The agent cannot send an email without your approval.
  • Under the chat policy, an approval is valid for ten minutes.
  • Under the never policy, drafts stay in Gmail and nothing is sent.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Gmail MCP

All alternatives →

Compare with Jitsu, Vexa or Linkedin MCP server

Gmail MCP: common questions

Can an AI agent send emails from my Gmail account with this server?

Not without your approval. Each send needs a prepare step for the exact content, and the policy for each mailbox decides how you approve it. Under the never policy, nothing is sent.

Can I connect more than one Gmail mailbox?

Yes. The source says the agent can search, read, analyse, draft and organise mail across as many mailboxes as you connect.

Does the project verify the software it installs?

Published versions from 0.1.1 include an npm provenance attestation, which npm audit signatures can verify against this repository.

How do I install Gmail MCP?

In Claude Code run claude mcp add gmail-mcp -- npx -y @agentcomms/gmail-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Gmail MCP the official server?

Gmail MCP is published by npm:@agentcomms from its verified domain in the official MCP Registry.

Is Gmail MCP free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is Gmail MCP safe to use?

It scores 75 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to Gmail MCP?

Similar MCP servers: Jitsu, Vexa, Linkedin MCP server, Netsapiens MCP.

Does Gmail MCP work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Gmail MCP Install

Add to stack

Loading.