Gmail MCP server
Allow AI systems to read, send, archive, and manage emails via Gmail.
11 stars210 downloads/wk
Reviews
Write oneNobody has reviewed Gmail yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Gmail tools (36, 15 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
attachment_getGet a message attachment. Returns base64url-encoded data.
draft_createwrite actionCreate a new draft email. The draft can be edited and sent later from Gmail.
draft_deletewrite actionPermanently delete a draft
draft_getGet a specific draft by ID
draft_sendwrite actionSend an existing draft
draft_updatewrite actionUpdate an existing draft
drafts_listList all drafts
filter_createwrite actionCreate a new email filter
filter_deletewrite actionDelete an email filter
filter_getGet a specific filter by ID
filters_listList all email filters
get_profileGet the current user's Gmail profile including email address
label_createwrite actionCreate a new label
label_deletewrite actionDelete a label. System labels cannot be deleted.
label_getGet a specific label by ID
label_updatewrite actionUpdate an existing label
labels_listList all labels in the user's mailbox. Includes both system labels (INBOX, SENT, etc.) and user-created labels.
message_archiveArchive a message by removing the INBOX label. The message remains accessible via search or All Mail.
message_deletewrite actionPermanently delete a message. This cannot be undone. Prefer gmail_message_trash for most cases.
message_forwardForward an email message to new recipients, including attachments and inline images.
message_getGet a single message by ID. Consider using gmail_thread_get to get all messages in a conversation.
message_modifyModify the labels on a message. Use this to archive (remove INBOX), mark as read (remove UNREAD), star, etc.
message_sendwrite actionSend an email message. Can also be used to reply to existing threads.
message_trashMove a message to the trash. Messages in trash are deleted after 30 days.
message_untrashwrite actionRemove a message from trash
messages_batch_deletewrite actionPermanently delete multiple messages. This cannot be undone.
messages_batch_modifyModify labels on multiple messages at once
messages_listList individual messages. Consider using gmail_threads_list instead to group related messages. Use gmail_message_get to fetch full content.
thread_deletewrite actionPermanently delete a thread. This cannot be undone. Prefer gmail_thread_trash for most cases.
thread_getGet all messages in a thread (conversation). Recommended over gmail_message_get for reading emails.
thread_modifyModify labels on a thread
thread_trashMove a thread to trash
thread_untrashwrite actionRemove a thread from trash
threads_listList or search email threads (conversations). Recommended over messages_list for most use cases.
vacation_getGet vacation auto-reply settings
vacation_setSet vacation auto-reply settings. To disable, set enableAutoReply to false.
Public scan report
scanner v0.1.9 · 2026-09-24 · same rubric, same numbers if you re-run it
- Code scan91 source files scanned; 91 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitystatic API keys via environment variables6/15
- Maintenancelast push 15 days ago15/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How Gmail compares
Against every graded Email MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 83/100
- higher than 75% of 916 Email servers
- Tools
- 36
- the typical Email server has 7
- Tools that change things
- 42%
- typical: 25%. Fewer write tools means less an agent can break
- GitHub stars
- 11
- more than 88% of 493 Email servers
- Downloads a week
- 210
- more than 71% of 235 Email servers with a package
What its tools let an agent do: 14 read · 11 change · 11 send or post
Install Gmail in Claude Code, Cursor or VS Code
Runs npx -y gmail-mcp on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add gmail-mcp -- npx -y gmail-mcp
What the publisher says
From the Gmail repository's README, as published. We do not edit it. Read it on GitHub
gmail-mcp
MCP server for Gmail - read, send, archive, and manage emails.
Use Cases
Flight check-in: "Check me in for my flight tomorrow" → finds your confirmation email, extracts the booking reference, and completes check-in with browser use.
Expense submission: "Submit my Amazon purchases from last week as expenses" → finds receipts, extracts amounts/categories, and files them in your expense system.
Package tracking: "Where's my package from Acme?" → finds the shipping notification, extracts the tracking number, and fetches current delivery status.
Find that attachment: "What did we settle on for the budget? Michelle sent me something yesterday" → locates the email and opens the attached spreadsheet.
Vacation mode: "I'm on holiday Dec 20-Jan 2" → sets up Gmail auto-reply, blocks your calendar, and updates your Slack status in one go.
Meeting follow-up: After a call, your assistant reads the Gemini transcript, summarizes key decisions, and drafts a follow-up email with action items.
(These are just examples - any workflow that needs email search, reading, or sending can use this.)
Setup
1. Create Google OAuth credentials
- Go to Google Cloud Console
- Create a new project (or use existing)
- Enable the Gmail API
- Go to APIs & Services → OAuth consent screen, set up consent screen
- Go to APIs & Services → Credentials → Create Credentials → OAuth client ID
- Choose Web application
- Add http://localhost:3000/callback to Authorized redirect URIs
- Note your Client ID and Client Secret
2. Run the server
GOOGLE_CLIENT_ID='your-client-id' \
GOOGLE_CLIENT_SECRET='your-client-secret' \
MCP_TRANSPORT=http \
npm startThe server runs on http://localhost:3000 by default. Change with PORT=3001.
3. Add to your MCP client
With the server running, follow the instructions on install-mcp, which generates the right config for your MCP client (Claude Code, Claude Desktop, Cursor, Cline, VS Code, and more).
Architecture
This server acts as an OAuth proxy to Google:
graph LR
A[MCP client] <--> B[gmail-mcp] <--> C[Google OAuth/API]- Server advertises itself as an OAuth authorization server via /.well-known/oauth-authorization-server
- /register returns the Google OAuth client credentials
- /authorize redirects to Google, encoding the client's callback URL in state
- /callback receives the code from Google and forwards to the client's callback
- /token proxies token requests to Google, injecting client credentials
- /mcp handles MCP requests, using the bearer token to call Gmail API
The server holds no tokens or state - it just proxies OAuth to Google.
Tools
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Gmail: common questions
- Is Gmail MCP server safe?
- Mostly: it is graded B (83/100). Read the Gmail safety report
- How do I install Gmail?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Gmail need an API key?
- Yes. The registry entry asks for
GOOGLE_ACCESS_TOKEN,GOOGLE_CLIENT_SECRET. - Is Gmail maintained?
- The last commit was 56 days ago (2026-09-09). The latest release is v2.4.0.
- What can I use instead of Gmail?
- Servers from other publishers that do the same job: Fluxmail MCP server, MCPEmails MCP server and Mailbox MCP server. Compare all Gmail alternatives.
- How does Gmail compare with other Email MCP servers?
- safety score 83/100 (higher than 75% of 916 Email servers); tools 36 (the typical Email server has 7); tools that change things 42% (typical: 25%. Fewer write tools means less an agent can break). Full comparison.
Alternatives to Gmail
Same job from other publishers: the closest match first, then the best rated.
- FluxmailRead, search, draft, send, and organize email through Gmail, Outlook, and IMAP/SMTP mailboxes.not reviewedGrowingB
- MCPEmailsNever-stored live email: read, send and triage Gmail, Outlook / Microsoft 365, or any IMAP mailbox.not reviewedGrowingA
- MailboxMulti-account email MCP server for Gmail, IMAP, and JMAP: search, send, drafts, labels.not reviewedGrowingB
- owlpostIMAP/SMTP email for iCloud, Gmail, Proton Bridge and more: search, read, follow threads, send.not reviewedGrowingA
- Mailoo - Email MCP ServerEmail MCP server for AI agents: IMAP/SMTP, Gmail, Outlook, calendar, ManageSieve, AI triage, OAuth2.5.0(1)GrowingA