MCP Catalogs
首页

google-drive-mcp

by piotr-agier·151·综合分 49

一个功能全面的 MCP 服务器,可通过 OAuth 认证管理 Google Drive 文件、文档、表格、幻灯片和日历。

file-systemcloud-storageproductivity
83
Forks
7
活跃 Issue
本月
最近提交
2 天前
收录于

概述

Google Drive MCP 服务器提供了与 Google 生态系统的强大集成,使用户能够通过标准化的 MCP 接口管理文件、文档、电子表格、演示文稿和日历事件。它支持个人 Google Drive 和共享驱动器,提供全面的文件操作,包括创建、编辑、移动、复制和删除。该实现使用 TypeScript,并包含高级功能,如 Google 文档中的精细文本编辑、电子表格操作以及用于日历事件的 Google Meet 集成。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:自动创建和组织 Google Drive 中的项目文档
:通过 AI 助手管理日历事件和安排会议
:通过自然语言搜索和分析电子表格和文档
:这个 MCP 服务器集成了哪些 Google 服务?
:身份验证如何处理?

什么时候选它

如果您需要与Google Workspace服务集成,并希望通过MCP管理文件、文档和日历,请选择此MCP服务器。

什么时候不要选它

如果您需要访问非Google云存储服务,或希望选择没有OAuth依赖的自托管解决方案,请不要使用它。

此 server 暴露的工具

从 README 抽取出 12 个工具
  • create_google_doc

    Creates a new Google Document with specified content.

  • create_google_sheet

    Creates a new Google Spreadsheet with specified columns and data.

  • create_google_presentation

    Creates a new Google Slides presentation with specified slides.

  • list_files

    Lists files and folders in Google Drive with optional filtering.

  • search_files

    Searches for files in Google Drive based on query criteria.

  • update_google_doc

    Updates content in an existing Google Document.

  • update_google_sheet

    Updates cells or ranges in an existing Google Spreadsheet.

  • create_calendar_event

    Creates a new calendar event in Google Calendar.

  • list_calendar_events

    Lists calendar events from Google Calendar.

  • update_calendar_event

    Updates an existing calendar event in Google Calendar.

  • delete_file

    Deletes a file or folder from Google Drive.

  • move_file

    Moves a file or folder to a different location in Google Drive.

可对比工具

sharepoint-mcpdropbox-mcponedrive-mcp

安装

安装

选项 1:使用 npx(推荐)

# 运行服务器(首次运行时自动进行身份验证)
npx @piotr-agier/google-drive-mcp

# 可选:如需要,手动运行身份验证
npx @piotr-agier/google-drive-mcp auth

选项 2:本地安装

  1. 克隆并安装:

``bash git clone https://github.com/piotr-agier/google-drive-mcp.git cd google-drive-mcp npm install ``

  1. 设置凭据:

```bash # 复制示例文件 cp gcp-oauth.keys.example.json gcp-oauth.keys.json

# 编辑 gcp-oauth.keys.json 并添加您的 OAuth 客户端 ID ```

  1. 身份验证(可选):

``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 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。