home / mcp / s google workspace mcp server
Provides access to Gmail, Calendar, and Drive data via MCP clients with create/read/update/delete operations.
Configuration
View docs{
"mcpServers": {
"giuseppe-coco-google-workspace-mcp-server": {
"url": "https://mcp.example.com/gsuite"
}
}
}You run a secure bridge that connects your Google Workspace data (Gmail, Calendar, Drive) to MCP-compatible AI clients. This MCP server lets you search, create, update, and manage Google data through scripted or natural language interactions, enabling powerful, hands-free productivity with tools you already use.
You connect an MCP client (for example, Claude Desktop) to the Google Workspace MCP Server and use natural language prompts to access Calendar, Gmail, and Drive data. Common tasks you can accomplish include listing events, creating or updating calendar items, reading recent emails, searching your inbox by subject, composing emails, searching Drive for files, creating Google Docs, updating doc content, and deleting or binning Drive items.
Typical usage patterns you can try:
When you issue a request, the MCP server executes the corresponding Google API actions and returns results or confirms the changes. If an operation requires additional details, you can supply them in subsequent prompts until the task is complete.
Follow these steps to set up the server and get started with an MCP client.
Prerequisites you need before installation:
Step 1: Configure your Google Cloud project
1. Create or select a Google Cloud project.
2. Enable Gmail API, Google Calendar API, and Google Drive API.
3. Create OAuth credentials for a Desktop app and download the JSON file. Rename it to client_secrets.json and place it in the root directory of your project.
Step 2: Install dependencies
git clone <your-repo-url>
cd <your-repo-name>
uv venv # Create a virtual environment
source .venv/bin/activate # On Windows: .venv\Scripts\activate
uv install -r requirements.txtStep 3: Run one-time authorization to access Google data
1. Run the credentials script to authorize access to your Google account.
python get_credentials.pyThis will prompt you to log in in a browser and grant the requested permissions. A token.json file is created to store your authorization tokens for future use.
Open the Claude Desktop configuration file and add an MCP server entry that points to your local Python MCP server.
{
"mcpServers": {
"GsuiteMCPServer": {
"command": "absolute-path-to-your-python-executable-in-virtual-environment",
"args": [
"<mcp_server.py-abs-path>"
]
}
}
}Ask Claude to perform actions such as creating a calendar event from an email, drafting a travel plan in Google Docs, or checking your availability for a two-hour customer call.
List and search events on your primary Google Calendar within a specific date range.
Create new calendar events with a title, description, start time, and end time.
Update existing calendar events with partial changes (e.g., new title or times).
Delete events directly from the calendar.
Read the content of your most recent Gmail message.
Search for emails by their subject line.
Compose and send new emails from your Gmail account.
Search Google Drive files and folders using advanced queries.
Create new Google Docs with a given title and initial content.
Update the entire content of an existing Google Doc.
Move Drive items to the bin or delete them permanently.