MCP Catalogs
首页

claude-code-google-workspace

by evolsb·20·综合分 43

支持多账户的 Google Workspace 和 Slack MCP 服务器。

productivitycommunicationdeveloper-tools
7
Forks
2
活跃 Issue
2 个月前
最近提交
2 天前
收录于

概述

这是一个全面的 MCP 服务器设置,为 Claude Code 提供访问多个 Google Workspace 账户(Gmail、Drive、日历、表格、文档)和 Slack 的功能。项目包含通过 CLAUDE.md 的 AI 引导设置和手动设置说明。它解决了复杂的挑战,如使用单独的 OAuth 客户端和通过包装脚本管理令牌来处理多个 Google 账户。

试试问 AI

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

:跨多个 Google 账户访问邮件和文档
:从 Slack 和 Google Workspace 管理日历事件和任务
:搜索和检索 Google Drive 和 Slack 对话中的内容
:为什么不能在 settings.local.json 中使用 MCP 配置?
:如何处理多个 Google 账户?

什么时候选它

选择此项目,如果您需要通过 Claude Code 访问多个 Google Workspace 账户和 Slack,尤其是当官方集成尚未可用时。

什么时候不要选它

如果您已经在使用具有内置 Google Workspace 集成的 Claude Desktop/Cowork,或者您需要超出 Google 官方 CLI 提供的写入权限,请不要选择此项目。

此 server 暴露的工具

从 README 抽取出 8 个工具
  • query_gmail

    Search and retrieve Gmail messages

  • list_drive_files

    List and access Google Drive files

  • get_calendar_events

    Retrieve calendar events and schedule information

  • read_sheets

    Read data from Google Sheets

  • read_docs

    Access and read Google Docs content

  • search_slack

    Search and browse Slack messages and channels

  • list_slack_users

    List Slack users in the workspace

  • list_slack_channels

    List Slack channels in the workspace

说明:Tool names inferred from Google Workspace CLI documentation and MCP server capabilities mentioned in the README. No explicit tool signature documentation provided.

可对比工具

google-workspace-clislack-mcp-serveranthropic-claude-desktop

安装

快速开始

  1. 克隆此仓库并在其中打开 Claude Code
git clone https://github.com/YOUR_USERNAME/claude-code-google-workspace.git
cd claude-code-google-workspace
claude
  1. 告诉 Claude Code:"为我设置 Google Workspace MCP"
  2. 重启 Claude Code 以加载新的 MCP 服务器

手动设置

有关详细步骤说明,请参考 [docs/manual-setup.md](docs/manual-setup.md)。

配置

在项目根目录创建 .mcp.json

{
  "mcpServers": {
    "gws-personal": {
      "command": "bash",
      "args": ["./gws-token-wrapper.sh", "personal.json"]
    },
    "slack": {
      "command": "npx",
      "args": ["slack-mcp-server"]
    }
  }
}

FAQ

为什么不能在 settings.local.json 中使用 MCP 配置?
Claude Code 会静默忽略 settings.local.json 中的 MCP 配置。您必须使用项目根目录的 .mcp.json 或全局的 ~/.claude.json。
如何处理多个 Google 账户?
在同一个 GCP 项目中为每个 Google 账户创建单独的 OAuth 桌面应用客户端。使用令牌包装脚本为每个账户生成新的访问令牌。

claude-code-google-workspace 对比

GitHub →

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