google-drive-mcp
by piotr-agier·★ 151·综合分 49
一个功能全面的 MCP 服务器,可通过 OAuth 认证管理 Google Drive 文件、文档、表格、幻灯片和日历。
概述
Google Drive MCP 服务器提供了与 Google 生态系统的强大集成,使用户能够通过标准化的 MCP 接口管理文件、文档、电子表格、演示文稿和日历事件。它支持个人 Google Drive 和共享驱动器,提供全面的文件操作,包括创建、编辑、移动、复制和删除。该实现使用 TypeScript,并包含高级功能,如 Google 文档中的精细文本编辑、电子表格操作以及用于日历事件的 Google Meet 集成。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
如果您需要与Google Workspace服务集成,并希望通过MCP管理文件、文档和日历,请选择此MCP服务器。
什么时候不要选它
如果您需要访问非Google云存储服务,或希望选择没有OAuth依赖的自托管解决方案,请不要使用它。
此 server 暴露的工具
从 README 抽取出 12 个工具create_google_docCreates a new Google Document with specified content.
create_google_sheetCreates a new Google Spreadsheet with specified columns and data.
create_google_presentationCreates a new Google Slides presentation with specified slides.
list_filesLists files and folders in Google Drive with optional filtering.
search_filesSearches for files in Google Drive based on query criteria.
update_google_docUpdates content in an existing Google Document.
update_google_sheetUpdates cells or ranges in an existing Google Spreadsheet.
create_calendar_eventCreates a new calendar event in Google Calendar.
list_calendar_eventsLists calendar events from Google Calendar.
update_calendar_eventUpdates an existing calendar event in Google Calendar.
delete_fileDeletes a file or folder from Google Drive.
move_fileMoves a file or folder to a different location in Google Drive.
可对比工具
安装
安装
选项 1:使用 npx(推荐)
# 运行服务器(首次运行时自动进行身份验证)
npx @piotr-agier/google-drive-mcp
# 可选:如需要,手动运行身份验证
npx @piotr-agier/google-drive-mcp auth选项 2:本地安装
- 克隆并安装:
``bash git clone https://github.com/piotr-agier/google-drive-mcp.git cd google-drive-mcp npm install ``
- 设置凭据:
```bash # 复制示例文件 cp gcp-oauth.keys.example.json gcp-oauth.keys.json
# 编辑 gcp-oauth.keys.json 并添加您的 OAuth 客户端 ID ```
- 身份验证(可选):
``bash npm run auth ``
Claude Desktop 配置
{
"mcpServers": {
"google-drive": {
"command": "npx",
"args": ["@piotr-agier/google-drive-mcp"]
}
}
}FAQ
- 这个 MCP 服务器集成了哪些 Google 服务?
- 它集成了 Google Drive、文档、表格、幻灯片和日历,为每个服务提供文件管理和内容创建功能。
- 身份验证如何处理?
- 服务器使用 OAuth 2.0 并自动刷新令牌。需要创建具有必要 API 的 Google Cloud 项目,并为桌面应用程序设置 OAuth 凭据。
google-drive-mcp 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。