claude-code-google-workspace
by evolsb·★ 20·Score 43
MCP servers for Google Workspace (Gmail, Drive, Calendar, Sheets, Docs) and Slack with multi-account support.
Overview
This is a comprehensive MCP server setup that provides Claude Code with access to multiple Google Workspace accounts (Gmail, Drive, Calendar, Sheets, Docs) and Slack. The project includes both AI-guided setup via CLAUDE.md and manual setup instructions. It addresses complex challenges like handling multiple Google accounts with separate OAuth clients and token management through a wrapper script.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this if you need to access multiple Google Workspace accounts and Slack through Claude Code, especially when official integrations aren't available yet.
When NOT to choose this
Don't choose this if you're already using Claude Desktop/Cowork which has built-in Google Workspace integrations, or if you need write access beyond what Google's official CLI provides.
Tools this server exposes
8 tools extracted from the READMEquery_gmailSearch and retrieve Gmail messages
list_drive_filesList and access Google Drive files
get_calendar_eventsRetrieve calendar events and schedule information
read_sheetsRead data from Google Sheets
read_docsAccess and read Google Docs content
search_slackSearch and browse Slack messages and channels
list_slack_usersList Slack users in the workspace
list_slack_channelsList Slack channels in the workspace
Note: Tool names inferred from Google Workspace CLI documentation and MCP server capabilities mentioned in the README. No explicit tool signature documentation provided.
Comparable tools
Installation
Quick Start
- Clone this repo and open Claude Code in it
git clone https://github.com/YOUR_USERNAME/claude-code-google-workspace.git
cd claude-code-google-workspace
claude- Tell Claude Code: "Set up Google Workspace MCP for me"
- Restart Claude Code to load the new MCP servers
Manual Setup
Refer to [docs/manual-setup.md](docs/manual-setup.md) for detailed step-by-step instructions.
Configuration
Create .mcp.json at project root with:
{
"mcpServers": {
"gws-personal": {
"command": "bash",
"args": ["./gws-token-wrapper.sh", "personal.json"]
},
"slack": {
"command": "npx",
"args": ["slack-mcp-server"]
}
}
}FAQ
- Why can't I use settings.local.json for MCP configuration?
- Claude Code silently ignores MCP config in settings.local.json. You must use .mcp.json at project root or ~/.claude.json for global configuration.
- How do I handle multiple Google accounts?
- Create separate OAuth Desktop App clients for each Google account in the same GCP project. Use a token wrapper script to mint fresh access tokens for each account.
Compare claude-code-google-workspace with
Last updated · Auto-generated from public README + GitHub signals.