Lean Gmail MCP server with auto authentication support
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Gmail MCP Server.
messageIdThe ID of the email containing the attachment
attachmentIdThe attachment ID (shown in enhanced email display)
savePathDirectory to save the file (optional, defaults to current directory)
filenameCustom filename (optional, uses original filename if not provided)

Installation: npx @artymclabin/gmail-mcp auth - or just tell your Claude to install the MCP from this repo (https://github.com/ArtyMcLabin/Gmail-MCP-Server) and let it set up. Prefer manual steps? See Installation & Authentication.
Also on the official MCP Registry (io.github.ArtyMcLabin/Gmail-MCP-Server) and Smithery.
This is an actively maintained fork of GongRzhe/Gmail-MCP-Server.
The original repository has been unmaintained since August 2025 - 7+ months with zero maintainer activity and 72+ unmerged pull requests. I use this MCP server daily as part of my Claude Code workflow and depend on it working correctly, so I picked it up.
Pull requests are welcome. If you've been sitting on fixes or features with nowhere to submit them, this is the place.
This fork is lean and pragmatic. It's a local stdio MCP server - you run it on your own machine, and your LLM client already has shell + filesystem access. So the threat model is "don't leak credentials to third parties, don't break the Gmail surface" - not "defend a hosted multi-tenant service". I keep dependencies minimal. I use this daily in my own Claude Code workflow - if I wouldn't run it or maintain it myself, it doesn't go in.
There's a downstream fork that took this in the maximalist direction. I'm not affiliated with its maintainer and I don't track its security or features - use it at your own risk: klodr/gmail-mcp. If that's the philosophy you want, go check it out. PRs welcome here as always.
In-Reply-To and References headers so email replies land in the correct thread instead of creating orphaned messages (upstream PR #91, still pending)from parameter for multi-identity email management (send from any configured Gmail alias)reply_all automatically fetches the original email, builds To/CC recipient lists (excluding yourself), and sets proper threading headers (PR #3 by @MaxGhenis)list_filters - was returning empty array due to wrong response property name (PR #4 by @nicholas-anthony-ai)--scopes flag to request only the permissions you need, with automatic tool filtering (PR #6 by @tansanDOTeth)get_thread, list_inbox_threads, get_inbox_with_threads, modify_thread for efficient thread-based email operations in a single callread_email now shows CC and BCC headers when present (PR #21 by @panghy)report_phishing and batch_report_phishing for marking messages as spam via the Gmail API (PR #24 by @ShivamB25)send_draft, delete_draft, update_draft close the orphan-draft gap: send_draft atomically sends an existing draft and removes it from Drafts (no ghost copy); update_draft mutates a draft in place preserving its ID (no draft pile-up across iteration loops); delete_draft discards an abandoned draft (PR #30 by @thisisambros)readOnlyHint, destructiveHint, idempotentHint) on all tools for safer LLM tool execution (PR #14 by @bryankthompson)download_email saves emails to disk in json/eml/txt/html formats without consuming LLM context (PR #13 by @icanhasjonas)refresh_token is persisted across restarts, ending the hourly re-auth loop (PR #35 by @BrentBaccala)delete_email/batch_delete_emails require the opt-in gmail.full scope (which also satisfies all other mail scopes), so default auth stays least-privilege (PR #39 by @caioribeiroclw-pixel)All features are production-tested in daily use.
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.
Note: The
npx @gongrzhe/server-gmail-autoauth-mcpcommands found in older docs reference the unmaintained upstream fork. This fork is published as@artymclabin/gmail-mcp.
Create a Google Cloud Project and obtain credentials:
a. Create a Google Cloud Project:
b. Create OAuth 2.0 Credentials:
http://localhost:3000/oauth2callback to the authorized redirect URIsgcp-oauth.keys.jsonRun Authentication:
You can authenticate in two ways:
a. Global Authentication (Recommended):
b. Local Authentication:
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/gmail-mcp-server)<a href="https://allmcps.com/mcp/gmail-mcp-server"><img src="https://allmcps.com/api/badge/gmail-mcp-server?style=directory" alt="Gmail MCP Server on AllMCPs" /></a>