Provides comprehensive email management capabilities including reading, sending, replying, forwarding emails, managing drafts and labels, and creating specialized drafts for job applications and follow-ups.
Enables calendar management through listing, creating, updating, and deleting events, as well as retrieving detailed event information.
Provides document creation and editing capabilities including text formatting, paragraph styling, table insertion, list creation, document sharing, and report template generation.
Enables comprehensive file and folder management including uploading, downloading, moving, copying, deleting, searching, sharing files with users or via links, and monitoring storage quotas.
Allows creating, reading, and writing spreadsheets with formatting support, formula addition, cell formatting, tab management, sharing capabilities, and specialized job tracker templates.
Provides local data storage for profile management, job applications, contacts, skills, work experience, education, tasks, notes, and a personal memory system for storing preferences, behaviors, goals, and interactions.
Google Workspace MCP Server
A comprehensive Model Context Protocol (MCP) server for Google Workspace integration with Claude Desktop. Provides 109 tools for Gmail, Calendar, Sheets, Docs, Drive, plus local storage and personal memory system.
Features
Gmail: Read, send, reply, forward emails, manage drafts and labels
Google Calendar: List, create, update, delete events
Google Sheets: Create, read, write spreadsheets with formatting
Google Docs: Create and edit documents with formatting
Google Drive: Upload, download, share files and folders
Local Storage: Profile, job applications, contacts, skills, tasks
Memory System: Personal preferences, behaviors, goals, patterns
Setup Guide
Prerequisites
Python 3.10 or higher
Claude Desktop installed
Google Cloud project with APIs enabled
Step 1: Clone or Download
Step 2: Install Dependencies
Required packages:
mcp>=0.9.0google-api-python-client>=2.100.0google-auth-httplib2>=0.2.0google-auth-oauthlib>=1.2.0python-dotenv>=1.0.0requests>=2.31.0
Step 3: Set Up Google Cloud Project
Go to Google Cloud Console
Create a new project (or select existing)
Enable the following APIs:
Gmail API
Google Calendar API
Google Sheets API
Google Docs API
Google Drive API
Go to APIs & Services > Credentials
Click Create Credentials > OAuth client ID
Select Desktop app as application type
Download the JSON file
Rename it to
credentials.jsonand place in thegoogle-mcp-serverfolder
Step 4: Authenticate with Google
Run the authentication script:
This will:
Open a browser window for Google sign-in
Ask you to authorize the app
Create a
tokens.jsonfile with your access tokens
Step 5: Set Up Database Folder (Optional)
Create a centralized database folder for all your data:
The MCP server stores data in:
~/Documents/pbdb/mcp/local_data.db- Job tracking, contacts, skills~/Documents/pbdb/mcp/personal_memory.db- Personal memory system
Step 6: Configure Claude Desktop
Find your Claude Desktop config file:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Add the MCP server configuration:
Windows Example:
macOS/Linux Example:
Step 7: Restart Claude Desktop
Close and reopen Claude Desktop. The MCP server will initialize automatically.
Step 8: Verify Installation
In Claude Desktop, try these commands:
"Show my recent emails"
"What events do I have on my calendar?"
"List my Google Drive files"
"What do you know about me?"
Available Tools (109 Total)
Gmail (21 tools)
Tool | Description |
| List emails from inbox |
| Get full email content |
| Send a new email |
| Search emails with query |
| Create a draft email |
| List all drafts |
| Update a draft |
| Send a draft |
| Delete a draft |
| Reply to an email |
| Forward an email |
| Add label to email |
| Remove label from email |
| List all labels |
| Mark email as read |
| Mark email as unread |
| Move to trash |
| Archive email |
| Create job follow-up draft |
| Create thank you draft |
Calendar (5 tools)
Tool | Description |
| List upcoming events |
| Create a new event |
| Update an event |
| Delete an event |
| Get event details |
Sheets (11 tools)
Tool | Description |
| Create new spreadsheet |
| Read data from sheet |
| Write data to sheet |
| Append rows to sheet |
| Get spreadsheet info |
| Create new tab |
| List all spreadsheets |
| Format cells |
| Add formula to cell |
| Share spreadsheet |
| Create job tracker template |
Docs (12 tools)
Tool | Description |
| Create new document |
| Read document content |
| Append text |
| Format text |
| Apply styles |
| Insert table |
| Insert bullet list |
| Insert numbered list |
| List all documents |
| Share document |
| Create report template |
Drive (17 tools)
Tool | Description |
| List files |
| List folders |
| Create folder |
| Upload file |
| Download file |
| Move file |
| Copy file |
| Delete file |
| Search files |
| Share with user |
| Share with link |
| Get file info |
| Rename file |
| Get storage info |
| Export content |
Local Storage (21 tools)
Tool | Description |
| Set profile field |
| Get profile |
| Get complete profile |
| Add job application |
| Get applications |
| Update application |
| Add interview |
| Get interviews |
| Add contact |
| Get contacts |
| Add skill |
| Get skills |
| Add experience |
| Get experience |
| Add education |
| Get education |
| Add task |
| Get tasks |
| Complete task |
| Add note |
| Get notes |
| Get job stats |
Memory System (22 tools)
Tool | Description |
| Save user info |
| Get user info |
| Remember anything |
| Recall memories |
| Store behavior pattern |
| Get behaviors |
| Store preference |
| Get preferences |
| Store goal |
| Get goals |
| Store work style |
| Get work style |
| Store fact |
| Get facts |
| Log decision |
| Get decisions |
| Log interaction |
| Get interactions |
| Store learning |
| Get learnings |
| Get all user data |
| Search memories |
Project Structure
Troubleshooting
Server not loading in Claude Desktop
Check the path in
claude_desktop_config.jsonVerify Python path is correct
Check logs at
%APPDATA%\Claude\logs\mcp-server-google-workspace.log
Authentication errors
Delete
tokens.jsonand re-authenticateVerify
credentials.jsonis validCheck that APIs are enabled in Google Cloud Console
Database errors
Verify database folder exists at
~/Documents/pbdb/mcp/Check file permissions
Delete
.dbfiles to reset (data will be lost)
License
MIT License