Google Drive MCP

Google Drive MCP

Anthropic 官方 Google Drive MCP,让 AI 搜索、读取 Drive 中 Docs、Sheets、PDF 文件。

月访问量
92.0K
累计浏览
2
用户评分
4.6
收录时间
2026-07

产品介绍

产品介绍

Google Drive MCP 是 Anthropic 官方维护的 MCP 服务器,通过 Google Drive API 让 AI 搜索、读取 Google Docs、Sheets、PDF 及纯文本文件。基于 OAuth 2.0 认证,文件内容仅在会话中传递。

核心功能

  • 文件搜索:按文件名、关键词、类型、日期搜索
  • 文件读取:Docs、Sheets、PDF、纯文本
  • 文件夹浏览:列目录、导航层级
  • 元数据访问:创建时间、修改时间、作者
  • OAuth 2.0:自动 token 刷新

安装配置

前置:在 Google Cloud Console 启用 Drive/Docs/Sheets API,创建 OAuth 2.0 Desktop 凭证,下载为 gcp-oauth.keys.json

  "mcpServers": {
    "gdrive": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-gdrive"],
      "env": {
        "GDRIVE_CREDS_DIR": "/path/to/credentials/directory"
      }
    }
  }
}

典型使用场景

  • 文档检索与摘要
  • 跨文档对比分析
  • 知识库问答
  • 报表整理

平台支持

Node.js 18+,支持 Claude Desktop、Cursor、VS Code 等。MIT 许可证。