
MCP 的 Google 原生工具集合(例如 Gmail、日历)
概览
这是一组基于 Google 原生的工具(例如 Gmail、日历),用于 MCP 协议,旨在无缝集成 Claude 或 Cursor 等 AI 客户端。 点击下方即可一键安装 .mcpb: - : - ✉️ 从本地文件或 Google Drive 📥 - 到本地存储 - 🔄 : 本地文件路径或 Google Drive 文件 ID - 📁 : 自动 MIME 类型检测和文件名净化 - : 将本地存储或 Google Drive 的文件附加在同一邮件中 - : 覆盖附件的原始文件名 - : 自动执行 25MB Gmail 限制 - : Windows、macOS 和 Linux 自动检测下载文件夹 - : 自动重命名文件以防止被覆盖 - google_gmail_send_email:现在支持本地文件和 Google Drive 附件- google_gmail_draft_email:创建带有附件的草稿 - google_gmail_download_attachments:下载所有可自定义路径的电子邮件附件 - 自动刷新过期访问令牌- 无需......
概述(AI 翻译)
这是一组基于 Google 原生的工具(例如 Gmail、日历),用于 MCP 协议,旨在无缝集成 Claude 或 Cursor 等 AI 客户端。
快速安装
点击下方,使用 .mcpb 一键安装:
JSON 配置
v1.1.0 新增内容
🆕 主要特色
- 完整的电子邮件附件支持:
- ✉️ 从本地文件或Google Drive发送带有附件的邮件
- 📥 **将所有电子邮件附件下载到本地存储
- 🔄 双附件源:本地文件路径或Google Drive文件ID
- 📁 智能文件处理:自动MIME类型检测和文件名净化
🔧 增强邮件功能
- 多源附件:在同一邮件中附加本地存储或Google Drive的文件
- 自定义文件名:覆盖附件的原始文件名
- 文件大小验证:自动执行25MB的Gmail限制
- 跨平台下载:Windows、macOS和Linux上的Downloads文件夹自动检测
- 冲突解决:自动重命名文件以防止覆盖
📁 新与增强工具
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Google MCP Tools
This is a collection of Google-native tools (e.g., Gmail, Calendar) for the MCP protocol, designed to integrate seamlessly with AI clients like Claude or Cursor.
Quick Install
Click below for one-click install with .mcpb:
What’s New in v1.1.0
🆕 Major Features
- Complete Email Attachment Support:
- ✉️ Send emails with attachments from local files or Google Drive
- 📥 Download all email attachments to local storage
- 🔄 Dual attachment sources: Local file paths or Google Drive file IDs
- 📁 Smart file handling: Automatic MIME type detection and filename sanitization
🔧 Enhanced Email Capabilities
- Multi-source attachments: Attach files from local storage or Google Drive in the same email
- Custom filenames: Override original filenames for attachments
- File size validation: Automatic 25MB Gmail limit enforcement
- Cross-platform downloads: Auto-detection of Downloads folder on Windows, macOS, and Linux
- Conflict resolution: Automatic file renaming to prevent overwrites
📁 New & Enhanced Tools
google_gmail_send_email: Now supports attachments from local files and Google Drivegoogle_gmail_draft_email: Create drafts with attachmentsgoogle_gmail_download_attachments: Download all email attachments with customizable path
Features
-
OAuth Management:
- Refresh expired access tokens automatically
- Update tokens in the token file without re-authentication
- Complete re-authentication with automated token cleanup
- Maintain session continuity across long-running operations
-
Gmail:
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"google-mcp": {
"command": "bunx",
"args": ["--no-cache", "google-mcp@latest"],
"env": {
// Either can be used, but not both
// Use OAuth
"GOOGLE_OAUTH_CLIENT_ID": "<YOUR_CLIENT_ID>",
"GOOGLE_OAUTH_CLIENT_SECRET": "<YOUR_CLIENT_SECRET>",
"GOOGLE_OAUTH_TOKEN_PATH": "<PATH_TO_STORE_TOKENS> CAN_BE_ANYWHERE_ON_YOUR_SYSTEM",
// Use Service Account
"GOOGLE_CLIENT_EMAIL": "<YOUR_SERVICE_ACCOUNT_EMAIL>",
"GOOGLE_PRIVATE_KEY": "<YOUR_SERVICE_ACCOUNT_PRIVATE_KEY>",
"GMAIL_USER_TO_IMPERSONATE": "<USER_TO_IMPERSONATE>"
}
}
}
}