Gmail AutoAuthSAFE
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.
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
- Create a Google Cloud Project and obtain credentials:
a. Create a Google Cloud Project:
9bfc202e5c24OBSERVED · 2026-09-25Connect
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 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]{
"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}"
}
}
}
}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.
| Tool | Risk | Description |
|---|---|---|
batch_delete_emails | destructive | Permanently deletes multiple emails in batches |
batch_modify_emails | write | Modifies labels for multiple emails in batches |
create_filter | write | Creates a new Gmail filter with custom criteria and actions |
create_filter_from_template | write | Creates a filter using a pre-defined template for common scenarios |
create_label | write | Creates a new Gmail label |
delete_email | destructive | Permanently deletes an email |
delete_filter | destructive | Deletes a Gmail filter |
delete_label | destructive | Deletes a Gmail label |
download_attachment | read | Downloads an email attachment to a specified location |
draft_email | read | Evaluates the tool ability to draft an email |
get_filter | read | Gets details of a specific Gmail filter |
get_or_create_label | write | Gets an existing label by name or creates it if it doesn |
list_email_labels | read | Retrieves all available Gmail labels |
list_filters | read | Retrieves all Gmail filters |
modify_email | write | Modifies email labels (move to different folders) |
read_email | read | Retrieves the content of a specific email |
search_emails | read | Searches for emails using Gmail search syntax |
send_email | write | Sends a new email |
send_emailEval | write | Evaluates sending a new email |
update_label | write | Updates an existing Gmail label |
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.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | WARN |
| L4 | Behavioural (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)
batch_delete_emails, delete_email, delete_filter, delete_label
@modelcontextprotocol/sdk, @types/mime-types, google-auth-library, googleapis, mcp-evals, mime-types, nodemailer, open
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
Gates applied: no_behavioural_pass.
9bfc202e5c24full audit observations/trust-audit/mcp-server/gongrzhe__gmail-autoauth.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-09-25 | 9bfc202e5c24 | SAFE | B | 89 | first audit |
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.