gmail-agent MCP server
io.github.dremok/gmail-agent·v0.3.1Gmail for AI agents: search, read, download attachments, send, reply, drafts, labels.
0 stars169 downloads/wk
Reviews
Write oneNobody has reviewed gmail-agent yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
gmail-agent tools
No tool declarations could be read from the package source. They show once the server is installed.
Public scan report
scanner v0.1.10 · 2026-10-12 · same rubric, same numbers if you re-run it
- Code scan18 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 qualitylocal package, no credentials required12/15
- Maintenancelast push 1 days ago15/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How gmail-agent compares
Against every graded Email MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 92/100
- higher than 90% of 914 Email servers
- Downloads a week
- 169
- more than 69% of 231 Email servers with a package
Install gmail-agent in Claude Code, Cursor or VS Code
claude mcp add gmail-agent -- uvx gmail-agent
What the publisher says
From the gmail-agent repository's README, as published. We do not edit it. Read it on GitHub
gmail-agent
Gmail for AI agents and the people who run them: search, read, download attachments, send, reply, forward, drafts, labels and trash.
<!-- mcp-name: io.github.dremok/gmail-agent -->
gmail-agent is one small Python package with two faces:
- a CLI for agents that have a shell (Claude Code, Codex, Aider, your own scripts), with --json output
- an MCP server over stdio for clients like Claude Desktop and Claude Code
It talks directly to the Gmail API from your machine using your own Google Cloud OAuth client, so there is no third-party server in between. You choose how much access it gets when you log in, from read-only up to full.
Why another one? A lot of real agent work with mail is about attachments: find last quarter's invoices, save them, read the PDFs. The hosted Gmail connectors can't save files to disk, and the most used open-source Gmail MCP server is archived. gmail-agent handles attachments well, shows you any write before it happens, and only offers the tools your login allows. See How it compares.
What it does
Read
- Search with Gmail syntax (from:, has:attachment, filename:pdf, newer_than:30d, ...), paginated
- Read a message or a whole thread as plain text (HTML mail is converted)
- List labels and drafts
Attachments
- List a message's attachments with name, type, size and part id
- Download from one message, or every attachment from every message matching a query
- Extract text from PDF and text attachments without saving them
Downloads never overwrite anything. If invoice.pdf exists, the next one becomes invoice_1.pdf, and you get the real paths back. Names are sanitized, so a file called ../../.ssh/config lands as config inside the folder you picked.
Write
- Send new mail with attachments, Cc/Bcc, plain text or HTML
- Reply and reply-all in the same thread (In-Reply-To, References and thread id are set, the original is quoted)
- Forward, including the original attachments
- Drafts: create, list, show, update, send, delete
- Labels: create, rename, delete, add to and remove from messages or threads
- Mark read or unread, star, archive
- Trash and untrash; permanent delete behind an explicit flag
Every write command takes --dry-run, which prints the exact API request and, for mail, the MIME message without changing anything. With --json, results include the ids of whatever was sent or created.
Quick start
You need uv (or pipx) and Python 3.11+.
uv tool install gmail-agent # or: pipx install gmail-agentFor the latest unreleased changes: uv tool install git+https://github.com/dremok/gmail-agent.
Then set it up once (about 5 minutes, guided):
gmail-agent setup # Google Cloud project, OAuth client and login; default access level is "modify"
gmail-agent status # shows the logged-in account and access level
gmail-agent search "has:attachment newer_than:7d"Then connect your agent. In Claude Code: /plugin install gmail-agent --marketplace dremok/gmail-agent. For Codex, Gemini CLI, VS Code, Cursor and Claude Desktop, see MCP server.
How it compares
Checked against each project's source and docs in October 2026. Corrections are welcome as issues.
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
gmail-agent: common questions
- Is gmail-agent MCP server safe?
- Yes, by our scan: it is graded A (92/100). Read the gmail-agent safety report
- How do I install gmail-agent?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does gmail-agent need an API key?
- No secret keys are declared. It reads 2 settings from the environment.
- Is gmail-agent maintained?
- The last commit was 21 days ago (2026-10-11). The latest release is v0.3.1.
- What can I use instead of gmail-agent?
- Servers from other publishers that do the same job: Fluxmail MCP server, Microsoft 365 Mail MCP server and Mailbox MCP server. Compare all gmail-agent alternatives.
- How does gmail-agent compare with other Email MCP servers?
- safety score 92/100 (higher than 90% of 914 Email servers); downloads a week 169 (more than 69% of 231 Email servers with a package). Full comparison.
Alternatives to gmail-agent
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
- Microsoft 365 MailMicrosoft 365 Outlook mail via Graph: read, search, send, reply, forward, draft, move, delete.not reviewedGrowingA
- MailboxMulti-account email MCP server for Gmail, IMAP, and JMAP: search, send, drafts, labels.not reviewedGrowingB
- Multi GmailManage multiple Gmail accounts in Claude Desktop — search, send, reply, draft, and organize.not reviewedGrowingB
- Multi-Account GmailMulti-account Gmail MCP server — read, search, draft, and label across every inbox.not reviewedGrowingA