Mcp Google Gmail
MCP server for the Gmail API: search, read and send email, manage drafts, labels and the trash.
- Transport
- Not stated
- Package
- —
- Registry id
- io.github.A1-x-Tech/mcp-google-gmail
No install snippet on purpose. A working MCP config is a command, its arguments and an environment block — the last two are where API keys live, so this catalogue never stores them and cannot publish them. Follow the link above for the authors' own instructions.
English | Русский
A1 Gmail MCP lets an AI app work with your Gmail mailbox in plain language. Search and read mail, prepare replies as drafts, send them when you are ready, keep labels tidy and use the trash instead of permanent deletion.
It uses the Gmail API with your Google account. It distinguishes a draft you can still edit from a sent email that cannot be recalled, and makes the limits of the Gmail API explicit instead of implying that every mail task is reversible.
- 18 tools. Search and read messages and threads, send email directly or through drafts, manage the draft lifecycle, labels and the trash.
- Send deliberately. The draft → review → send path is first-class; sending is marked destructive, and the server never re-sends after an ambiguous failure — an email cannot be unsent.
- The trash is the safety net. Removing mail goes through the reversible trash (about 30 days); there is deliberately no permanent message delete tool.
- Bounded reading. Decoded bodies are truncated at an explicit limit and attachments come back as metadata, so a long newsletter cannot silently flood the conversation.
- Minimal Google scope. It uses
gmail.modifyonly — no permanent deletion and no access to Gmail settings.
Start with a read-only question:
Show my unread emails from the last week and tell me which ones need a reply.
Connect the server · Explore use cases · Open technical documentation
See it work in a minute
You: What is unread in my inbox from this week about the Acme contract?
Assistant: Searches with Gmail query syntax and shows senders, subjects, dates and snippets. Nothing changes.
You: Draft a reply to the latest one: we send the signed copy on Friday.
Assistant: Creates a draft in the same thread and shows it for review. Nothing is sent.
You: Send it.
Assistant: Sends the draft. Sending is a separate, explicitly destructive step, so your AI app can ask for confirmation first.
Contents
- Quick start
- What you can ask it to do
- How mail changes
- What can change
- Getting access
- Configuration
- Data, limits and background work
- Technical documentation
- Support
Quick start
You need Node.js 20+, a Google account and OAuth credentials from a Google Cloud project with the Gmail API enabled.
- Prepare Google OAuth access.
- Add the server to your AI app.
- Ask the read-only question above.
Codex
In the app: open Settings → MCP servers, select Add server, choose STDIO, enter the command npx -y mcp-google-gmail@latest and environment variables GOOGLE_GMAIL_CLIENT_ID, GOOGLE_GMAIL_CLIENT_SECRET, GOOGLE_GMAIL_REFRESH_TOKEN, then select Save and Restart.
From the command line:
codex mcp add google-gmail \
--env GOOGLE_GMAIL_CLIENT_ID=your_client_id \
--env GOOGLE_GMAIL_CLIENT_SECRET=your_client_secret \
--env GOOGLE_GMAIL_REFRESH_TOKEN=your_refresh_token \
-- npx -y mcp-google-gmail@latest
codex mcp list
From the project's README.