gmail-imap
Read-only access to a Gmail mailbox over IMAP using a Google app password: lists recent emails (with folder and unread filters), runs Gmail-native searches (X-GM-RAW syntax like from:, has:attachment, is:unread, newer_than:7d), reads full message bodies with attachment listings, downloads attachments by UID to a local directory, and lists all mailboxes and labels.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Gmail IMAP (Antigravity Global MCP Plugin)
专为 Google Antigravity 打造的跨项目全局 Gmail 只读 MCP 插件,通过 Google 官方 16 位应用专用密码(App Password) 经标准 IMAP 协议访问邮箱,解决官方 gmail CLI 在部分绑定工作区项目下报 no credentials found 的问题。
功能特点
跨项目全局可用:作为标准 MCP Server 运行,在任意绑定本地文件夹的项目与全局对话中均可稳定调用。
内置 5 个实用工具:
list_recent_emails:列出最近 N 封邮件(支持指定文件夹、仅看未读)。search_emails:支持 Gmail 原生搜索语法(X-GM-RAW,如from:linkedin、has:attachment、is:unread、newer_than:7d)。read_email:读取邮件完整正文(自动处理纯文本/HTML 及中文编码)与附件清单。download_attachment:按 UID 将邮件附件直接下载到本地指定目录。list_mailboxes:列出邮箱全部文件夹与标签。
自动适配 Windows 本地代理:自动读取环境变量或 Windows 系统代理(如 Clash Verge / FlClash),无需额外配置即可直连
imap.gmail.com:993。凭证安全托管:通过 Antigravity 插件
variables表单安全填写邮箱与应用专用密码,不将密码写入代码或对话记录。
Related MCP server: mailgate
安装与配置
需要本机已安装 Node.js(推荐 v18+)。
将本仓库下载或克隆到 Antigravity 插件目录:
# Windows 默认插件目录 C:\Users\<你的用户名>\.gemini\config\plugins\gmail-imap进入插件目录并安装依赖:
cd C:\Users\<你的用户名>\.gemini\config\plugins\gmail-imap npm install生成 Google 应用专用密码:
先确保 Google 账号已开启 两步验证;
打开 Google 应用专用密码页面,创建一个新的 16 位应用专用密码。
在 Antigravity 插件管理页打开
gmail-imap,填入GMAIL_USER与GMAIL_APP_PASSWORD并启用插件即可。
目录结构
gmail-imap/
├── plugin.json # Antigravity 插件清单
├── mcp_config.json # MCP Server 启动配置与安全变量声明
├── index.mjs # IMAP MCP Server(基于 imapflow & mailparser)
├── rules/gmail-imap.md # 自动优先调用规则
└── package.jsonLicense
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Read, send, file and search email in any Gmail, Microsoft 365 or IMAP mailbox, plus its calendar.
Email for AI agents: read, search and send from your Gmail, Outlook, Yahoo, iCloud or IMAP inbox.
Search Gmail and Outlook, save drafts, manage email rules, and view email stats.
Email: search, read, fetch attachments; attach files when the MCP client supports inputs.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides programmatic access to Microsoft Outlook mailboxes, enabling AI assistants to search, analyze, and extract insights from emails in personal and shared mailboxes.-
- AlicenseNot gradedqualityCmaintenanceEnables a locally-running agent to read and organize email from Gmail, Microsoft 365, and IMAP mailboxes with restricted, audited access.GPL 3.0
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to manage multiple email accounts, including searching, reading, sending, organizing, and deleting messages, with secure encrypted credential storage and connection pooling.1,009 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to search, read, send, reply to, forward, organize, and bulk-delete email across multiple mailboxes via IMAP and SMTP, with connection pooling and AES-256-encrypted credential storage. Supports 15+ pre-configured providers and a web-based setup wizard.1,009 npmMIT