Atlas / MCP servers / gongrzhe / Gmail AutoAuth

Gmail AutoAuthSAFE

mcp/gongrzhe/gmail-autoauth

A Model Context Protocol (MCP) server for Gmail integration in Claude Desktop with auto authentication support. This server enables AI assistants to manage Gmail through natural language interactions.

Verdict
SAFE
Grade
B
Trust score
89 /100
Exposed tools
20 7r · 9w · 4d
Transport
stdio
License
MIT
Stars
1,165
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

A Model Context Protocol (MCP) server for Gmail integration in Claude Desktop with auto authentication support. This server enables AI assistants to manage Gmail through natural language interactions.

[](https://smithery.ai/server/@gongrzhe/server-gmail-autoauth-mcp)

Features

  • Send emails with subject, content, attachments, and recipients
  • Full attachment support - send and receive file attachments
  • Download email attachments to local filesystem
  • Support for HTML emails and multipart messages with both HTML and plain text versions
  • Full support for international characters in subject lines and email content
  • Read email messages by ID with advanced MIME structure handling
  • Enhanced attachment display showing filenames, types, sizes, and download IDs
  • Search emails with various criteria (subject, sender, date range)
  • Comprehensive label management with ability to create, update, delete and list labels
  • List all available Gmail labels (system and user-defined)
  • List emails in inbox, sent, or custom labels
  • Mark emails as read/unread
  • Move emails to different labels/folders
  • Delete emails
  • Batch operations for efficiently processing multiple emails at once
  • Full integration with Gmail API
  • Simple OAuth2 authentication flow with auto browser launch
  • Support for both Desktop and Web application credentials
  • Global credential storage for convenience

Installation & Authentication

Installing via Smithery

To install Gmail AutoAuth for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @gongrzhe/server-gmail-autoauth-mcp --client claude

Installing Manually

  1. Create a Google Cloud Project and obtain credentials:

a. Create a Google Cloud Project:

Read from source at commit 9bfc202e5c24OBSERVED · 2026-09-25
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.

claude-code
claude mcp add server-gmail-autoauth-mcp --env GMAIL_CREDENTIALS_PATH=${GMAIL_CREDENTIALS_PATH} --env GMAIL_OAUTH_PATH=${GMAIL_OAUTH_PATH} -- npx -y @gongrzhe/[email protected]
claude-desktop
{
  "mcpServers": {
    "server-gmail-autoauth-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@gongrzhe/[email protected]"
      ],
      "env": {
        "GMAIL_CREDENTIALS_PATH": "${GMAIL_CREDENTIALS_PATH}",
        "GMAIL_OAUTH_PATH": "${GMAIL_OAUTH_PATH}"
      }
    }
  }
}
03

Exposed tools (20)

7 read · 9 write · 4 destructive. Blast radius: 4 tools can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.

ToolRiskDescription
batch_delete_emailsdestructivePermanently deletes multiple emails in batches
batch_modify_emailswriteModifies labels for multiple emails in batches
create_filterwriteCreates a new Gmail filter with custom criteria and actions
create_filter_from_templatewriteCreates a filter using a pre-defined template for common scenarios
create_labelwriteCreates a new Gmail label
delete_emaildestructivePermanently deletes an email
delete_filterdestructiveDeletes a Gmail filter
delete_labeldestructiveDeletes a Gmail label
download_attachmentreadDownloads an email attachment to a specified location
draft_emailreadEvaluates the tool ability to draft an email
get_filterreadGets details of a specific Gmail filter
get_or_create_labelwriteGets an existing label by name or creates it if it doesn
list_email_labelsreadRetrieves all available Gmail labels
list_filtersreadRetrieves all Gmail filters
modify_emailwriteModifies email labels (move to different folders)
read_emailreadRetrieves the content of a specific email
search_emailsreadSearches for emails using Gmail search syntax
send_emailwriteSends a new email
send_emailEvalwriteEvaluates sending a new email
update_labelwriteUpdates an existing Gmail label
04

Trust audit

SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codePASS
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfaceWARN
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (1 observation(s))
Network
none-observed
Shell
none-observed
Dependencies
not all pinned
Secrets in source
none-found

Findings (3)

MEDIUMFilesystem / path · mcp.destructive_tools · CWE-22, CWE-59
batch_delete_emails, delete_email, delete_filter, delete_label
Why it matters. 4 tool(s) can delete or overwrite
Fix. prefer a read-only mode or scoped tokens; the page states the blast radius
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
package.json
@modelcontextprotocol/sdk, @types/mime-types, google-auth-library, googleapis, mcp-evals, mime-types, nodemailer, open
Why it matters. 13 dependency range(s) float
Fix. pin exact versions or ship a lockfile
LOWPrompt injection · prompt.credential_read · CWE-94, CWE-1427
README.md:733
The evals package loads an mcp client that then runs the index.ts file, so there is no need to rebuild between tests. You can load environment variables by prefixing the npx command. Full documentatio
Why it matters. asks the agent to read credentials

Gates applied: no_behavioural_pass.

Audited 2026-09-25 · audit v0.4.1 · source sha 9bfc202e5c24full audit observations/trust-audit/mcp-server/gongrzhe__gmail-autoauth.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-09-259bfc202e5c24SAFEB89first audit
06

Questions

What is the Gmail AutoAuth MCP server?

A Model Context Protocol (MCP) server for Gmail integration in Claude Desktop with auto authentication support. This server enables AI assistants to manage Gmail through natural language interactions.

What tools does Gmail AutoAuth expose?

20 in total: 7 read-only, 9 that write, and 4 that can delete or overwrite (batch_delete_emails, delete_email, delete_filter, delete_label). Every one is listed on this page with its risk.

Is Gmail AutoAuth safe to connect to an agent?

The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B. Separately from the audit: 4 of its tools can destroy data, so scope the token you give it to what you actually need.

What credentials does Gmail AutoAuth need?

It reads GMAIL_CREDENTIALS_PATH and GMAIL_OAUTH_PATH from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.

How does Gmail AutoAuth run?

It speaks stdio, so it runs as a local process your client starts. It is published on npm as @gongrzhe/server-gmail-autoauth-mcp at 1.1.11.

How current is this page?

The grade is for one exact copy of the source (9bfc202e5c24), read on 2026-09-25. The repository is watched and re-audited when it changes.

Advertisement