EC

evolsb/claude-code-google-workspace

Productivity workflow

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

39 stars 12 forks 品質 69 トレンド 4MIT

マルチアカウント Google ワークスペース (Gmail、ドライブ、カレンダー、スプレッドシート、Docs) + Claude コードの Slack MCP サーバー CLAUDE.md によるセットアップガイド.

概要

複数のGoogleアカウント(例えば、個人+仕事)をフルサポートして、Gmail、Googleドライブ、カレンダー、スプレッドシート、Docs、およびSlackにClaudeコードアクセスを与えます。 ClaudeデスクトップとClaude Coworkは、Googleのワークスペースの統合を組み込んでおり、トグルを反転して接続しています。 2026年3月現在、正式な統合はなく、マルチアカウントを扱うプラグインや、設定方法に関するドキュメントはありません。 このリポジトリは、それを動作させるために研究とデバッグの〜6時間の結果です。 最終的な解決策は簡単ですが、Claude Code の MCP システム、Google の OAuth2 実装、および gws CLI でいくつかのドキュメントされていない動作を発見する必要があります。 それは1つの問題ではありません - それはそれらのスタックであり、それぞれは文書化されていない: 1。 サーバがsettings.local.jsonにmcpServersを置くと、サーバは起動しません。 エラーはありません。 ログなし JSON の構文を再起動して再チェックする時間を使うことができます。 config は、プロジェクトのルートで .mcp.json で行わなければなりません。 (クロードコード発行 #24477) 2.

概要(AI 翻訳)

複数のGoogleアカウント(例えば、個人+仕事)をフルサポートして、Gmail、Googleドライブ、カレンダー、スプレッドシート、Docs、およびSlackにClaudeコードアクセスを与えます。

背景

ClaudeデスクトップとClaude Coworkは、Googleのワークスペースの統合を組み込んでおり、トグルを反転して接続しています。 ロードコードは何もありません。 2026年3月現在、正式な統合はなく、マルチアカウントを扱うプラグインや、設定方法に関するドキュメントはありません。

このリポジトリは、それを動作させるために研究とデバッグの〜6時間の結果です。 最終的な解決策は簡単ですが、Claude Code の MCP システム、Google の OAuth2 実装、および gws CLI でいくつかのドキュメントされていない動作を発見する必要があります。

###このハードを作るもの

それは1つの問題ではありません - それはそれらのスタックであり、それぞれは文書化されていない:

1.Claudeコードは、誤ったファイルでMCPコンフィグを黙って無視します。 [settings.local.jsonに[mcpServers]を入れた場合は、サーバは起動しません。 エラーはありません。 ログなし JSON の構文を再起動して再チェックする時間を使うことができます。 config は、プロジェクトルートで .mcp.json] に移動する必要があります。 (クロードコード発行 #24477)

2つのGoogleアカウントの1つのOAuthクライアントが両方のアカウントを破棄します.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Multi-Account Google Workspace + Slack MCP for Claude Code

Give Claude Code access to Gmail, Google Drive, Calendar, Sheets, Docs, and Slack — with full support for multiple Google accounts (e.g., personal + work).

Background

Claude Desktop and Claude Cowork have built-in Google Workspace integrations — flip a toggle and you’re connected. Claude Code has nothing. As of March 2026, there’s no official integration, no plugin that handles multi-account, and no documentation on how to set it up.

This repo is the result of ~6 hours of research and debugging to get it working. The final solution is simple, but getting there required discovering several undocumented behaviors in Claude Code’s MCP system, Google’s OAuth2 implementation, and the gws CLI.

What makes this hard

It’s not one problem — it’s a stack of them, each undocumented:

  1. Claude Code silently ignores MCP config in the wrong file. If you put mcpServers in settings.local.json (where you’d expect it), servers don’t start. No error. No log. You can spend hours restarting and re-checking JSON syntax. The config must go in .mcp.json at the project root. (Claude Code Issue #24477)

  2. One OAuth client for two Google accounts breaks both. Google invalidates account A’s refresh token when you authenticate account B with the same OAuth client. You need separate OAuth Desktop App clients — one per account — in the same GCP project.

  3. The credential file env var doesn’t work. GOOGLE_WORKSPACE_CLI_CREDENTIALS_FILE is supposed to let you point the Google Workspace CLI at different credential files, but it doesn’t reliably route to the right account. You have to mint fresh access tokens and pass them via GOOGLE_WORKSPACE_CLI_TOKEN (the highest-priority auth method).

  4. Go binaries use single-dash flags. Both the gws CLI and slack-mcp-server are Go binaries. --transport stdio fails silently. It’s -t stdio — or just omit it (stdio is the default).

  5. MCP servers only start at session launch. Config changes don’t take effect until you restart Claude Code entirely.

Each of these individually cost 30-120 minutes to diagnose. Together they make the setup feel broken when it’s actually a solvable configuration problem.

What we tried and rejected

Approach Why It Failed
Legacy google-workspace Claude Code plugin Single-account only, port 8000 conflict blocks second instance
Single OAuth client for both accounts Google invalidates first account’s refresh token on second auth
CREDENTIALS_FILE env var per MCP server Doesn’t reliably route to the right account
mcpServers in settings.local.json Silently ignored — Claude Code never reads MCP config from there
mcpServers in .claude/settings.json Also silently ignored
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →