- Explore MCP Servers
- google-workspace-mcp
Google Workspace Mcp
What is Google Workspace Mcp
google-workspace-mcp is a collection of Model Context Protocol (MCP) servers designed to facilitate secure access to Google Workspace services, including Gmail, Calendar, and Drive, through Large Language Models like Claude.
Use cases
Use cases for google-workspace-mcp include automating email management, scheduling events based on availability, and organizing files and folders efficiently within Google Drive.
How to use
To use google-workspace-mcp, set up a Google Cloud project with OAuth 2.0 credentials, install the necessary software including Python and Node.js, and follow the setup instructions to create a project directory and configure the environment.
Key features
Key features of google-workspace-mcp include the ability to search and manage emails with the Gmail MCP Server, view events and check availability with the Calendar MCP Server, and search and organize files with the Drive MCP Server.
Where to use
google-workspace-mcp can be used in various fields such as software development, productivity tools, and any application that requires integration with Google Workspace services for enhanced functionality.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Google Workspace Mcp
google-workspace-mcp is a collection of Model Context Protocol (MCP) servers designed to facilitate secure access to Google Workspace services, including Gmail, Calendar, and Drive, through Large Language Models like Claude.
Use cases
Use cases for google-workspace-mcp include automating email management, scheduling events based on availability, and organizing files and folders efficiently within Google Drive.
How to use
To use google-workspace-mcp, set up a Google Cloud project with OAuth 2.0 credentials, install the necessary software including Python and Node.js, and follow the setup instructions to create a project directory and configure the environment.
Key features
Key features of google-workspace-mcp include the ability to search and manage emails with the Gmail MCP Server, view events and check availability with the Calendar MCP Server, and search and organize files with the Drive MCP Server.
Where to use
google-workspace-mcp can be used in various fields such as software development, productivity tools, and any application that requires integration with Google Workspace services for enhanced functionality.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
Google Workspace MCP Servers
A collection of Model Context Protocol (MCP) servers that enable secure access to Google Workspace services through Large Language Models like Claude. This project includes three independent servers:
- Gmail MCP Server: Search emails, read content, and manage labels
- Calendar MCP Server: View events and check availability
- Drive MCP Server: Search and organize files and folders
Prerequisites
- Windows 10 or later
- Python 3.10+
- Node.js (required for
npx) - Claude Desktop
- A Google Cloud project with OAuth 2.0 credentials
Setup Instructions
1. Google Cloud Setup
- Go to the Google Cloud Console
- Create a new project or select an existing one
- Enable the following APIs:
- Gmail API
- Google Calendar API
- Google Drive API
- Configure OAuth 2.0:
- Go to “APIs & Services” > “Credentials”
- Click “Create Credentials” > “OAuth client ID”
- Choose “Desktop application”
- Download the credentials and rename to
client_secrets.json
2. Project Setup
# Create project directory
uv init google-workspace-mcp
cd google-workspace-mcp
# Create virtual environment and activate it
uv venv
.venv\Scripts\activate
# Install required packages
uv add mcp[cli] google-api-python-client google-auth-httplib2 google-auth-oauthlib
3. Project Structure
Create the following directory structure:
google-workspace-mcp/ ├── .venv/ ├── client_secrets.json # Your OAuth credentials ├── gmail_server/ │ ├── __init__.py │ └── main.py ├── calendar_server/ │ ├── __init__.py │ └── main.py ├── drive_server/ │ ├── __init__.py │ └── main.py └── shared/ ├── __init__.py └── auth.py
4. Configure Claude Desktop
- Open Claude Desktop
- Click on the Claude menu and select “Settings…”
- Click on “Developer” in the left sidebar
- Click “Edit Config”
- Replace the contents with the configuration provided in the
claude_config.jsonfile
Important: Replace C:\path\to\google-workspace-mcp with your actual project path.
Available Features
Gmail Server
Resources:
messages/{message_id}: Get contents of specific emailslabels: List all available Gmail labels
Tools:
search_emails: Search emails using Gmail’s query syntaxapply_label: Apply or create labels for emails
Example queries:
- “Search my emails for messages about project deadlines”
- “Find emails from [email protected] from last week”
- “Add a ‘Follow-up’ label to my last email from Alice”
Calendar Server
Resources:
events/{time_min}/{time_max}: Get calendar events within a time rangecalendars: List all available calendars
Tools:
check_availability: Check free/busy status for a given date
Example queries:
- “What meetings do I have tomorrow?”
- “Am I free next Tuesday afternoon?”
- “Show me all my events for this week”
Drive Server
Resources:
files/{file_id}: Get contents of specific filesfolders/{folder_id}: List contents of specific folders
Tools:
search_files: Search files and foldersmove_file: Move files between folders
Example queries:
- “Find all PDF files related to project X”
- “What documents are in my Reports folder?”
- “Move my recent presentations to the Meeting Materials folder”
Troubleshooting
Authentication Issues
If you encounter authentication problems:
- Check that
client_secrets.jsonis in the correct location - Delete any existing
token_*.picklefiles to force re-authentication - Ensure all required Google Cloud APIs are enabled
Server Connection Issues
If Claude can’t connect to the servers:
- Check Claude’s logs at
%APPDATA%\Claude\logs\mcp*.log - Verify paths in
claude_desktop_config.jsonare correct - Ensure the virtual environment is activated
- Restart Claude Desktop
Common Error Messages
- “Failed to start server”: Check that all paths in the configuration are correct
- “Authentication failed”: Verify your OAuth credentials
- “API not enabled”: Enable the required API in Google Cloud Console
Logs and Debugging
Server logs can be found at:
%APPDATA%\Claude\logs\mcp-server-gmail.log%APPDATA%\Claude\logs\mcp-server-calendar.log%APPDATA%\Claude\logs\mcp-server-drive.log
To view logs in real-time:
Get-Content -Path "%APPDATA%\Claude\logs\mcp*.log" -Wait
Security Notes
- All servers operate in read-only mode for their respective services
- OAuth tokens are stored locally in
token_*.picklefiles - Each service maintains its own authentication token
- Permission requests are shown to the user during first authentication
Contributing
We welcome contributions! Please see our contributing guidelines for more information.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










