Google Workspace MCP
v26.11.13Google Workspace MCP server: Gmail, Calendar, Drive, Docs and Sheets tools in one server.
Google Workspace MCP server for Claude Code, Cursor and any MCP client. Gmail, Calendar, Drive, Docs and Sheets in one server. The server speaks MCP over stdio. It needs Node.js 22 or newer. Prefer VS Code? Install the Google Workspace MCP extension: it signs you in with a wizard and registers the server with 8 AI agents. The server uses the first credential it finds:
Summary extracted from the README.
Google Workspace MCP
Google Workspace MCP server for Claude Code, Cursor and any MCP client. Gmail, Calendar, Drive, Docs and Sheets in one server.
npx -y @renzo.johnson/google-workspace-mcp
The server speaks MCP over stdio. It needs Node.js 22 or newer. Prefer VS Code? Install the Google Workspace MCP extension: it signs you in with a wizard and registers the server with 8 AI agents.
Sign in
The server uses the first credential it finds:
- An OAuth user: set
GOOGLE_OAUTH_CLIENT_ID,GOOGLE_OAUTH_CLIENT_SECRETandGOOGLE_OAUTH_REFRESH_TOKEN. Set all three or none; a partial set stops the server with an error naming what is missing. GOOGLE_APPLICATION_CREDENTIALS: path to a service-account key or anauthorized_userJSON file.- Application Default Credentials from the gcloud CLI:
gcloud auth application-default login --scopes=https://www.googleapis.com/auth/calendar.events,https://www.googleapis.com/auth/calendar.readonly,https://www.googleapis.com/auth/documents,https://www.googleapis.com/auth/documents.readonly,https://www.googleapis.com/auth/drive.file,https://www.googleapis.com/auth/drive.readonly,https://www.googleapis.com/auth/gmail.modify,https://www.googleapis.com/auth/gmail.readonly,https://www.googleapis.com/auth/gmail.send,https://www.googleapis.com/auth/spreadsheets,https://www.googleapis.com/auth/spreadsheets.readonly
The OAuth refresh token (or service account) needs these scopes:
https://www.googleapis.com/auth/calendar.eventshttps://www.googleapis.com/auth/calendar.readonlyhttps://www.googleapis.com/auth/documentshttps://www.googleapis.com/auth/documents.readonlyhttps://www.googleapis.com/auth/drive.filehttps://www.googleapis.com/auth/drive.readonlyhttps://www.googleapis.com/auth/gmail.modifyhttps://www.googleapis.com/auth/gmail.readonlyhttps://www.googleapis.com/auth/gmail.sendhttps://www.googleapis.com/auth/spreadsheetshttps://www.googleapis.com/auth/spreadsheets.readonly
Claude Code
Add it from the command line:
claude mcp add google-workspace -- npx -y @renzo.johnson/google-workspace-mcp
Or add it to .mcp.json in your project (or ~/.claude.json for every project).
Cursor
Add it to ~/.cursor/mcp.json (or .cursor/mcp.json in a project).
Configuration
Claude Code and Cursor use the same JSON shape:
With Application Default Credentials (gcloud):
{
"mcpServers": {
"google-workspace": {
"command": "npx",
"args": [
"-y",
"@renzo.johnson/google-workspace-mcp"
]
}
}
}
With an OAuth user:
{
"mcpServers": {
"google-workspace": {
"command": "npx",
"args": [
"-y",
"@renzo.johnson/google-workspace-mcp"
],
"env": {
"GOOGLE_OAUTH_CLIENT_ID": "your-client-id.apps.googleusercontent.com",
"GOOGLE_OAUTH_CLIENT_SECRET": "your-client-secret",
"GOOGLE_OAUTH_REFRESH_TOKEN": "your-refresh-token"
}
}
}
}
With a service-account key:
{
"mcpServers": {
"google-workspace": {
"command": "npx",
"args": [
"-y",
"@renzo.johnson/google-workspace-mcp"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "/path/to/service-account.json"
}
}
}
}
Available Tools (16)
Gmail (4 tools)
| Tool | What It Does | Example Prompt |
|---|---|---|
gmail_list |
List recent emails with metadata | "Show me my last 10 emails" |
gmail_read |
Read full email content by ID | "Read that email from John" |
gmail_search |
Search emails using Gmail query syntax | "Find emails from my boss this week" |
gmail_send |
Send an email | "Email the team about the meeting" |
Gmail Admin (mega-tool)
| Action | Description |
|---|---|
create_draft |
Create a new email draft |
update_draft |
Update an existing draft |
delete_draft |
Delete a draft (requires confirm) |
add_label / remove_label |
Manage message labels |
create_label / delete_label |
Create or delete labels |
trash / untrash |
Move to/from trash (trash requires confirm) |
mark_read / mark_unread |
Toggle read status |
Calendar (2 tools)
| Tool | What It Does | Example Prompt |
|---|---|---|
calendar_list_events |
List upcoming events | "What meetings do I have today?" |
calendar_get_event |
Get full event details | "Show me the details of my 3pm meeting" |
Calendar Admin (mega-tool)
| Action | Description |
|---|---|
create_event |
Create a new calendar event |
update_event |
Update event details |
delete_event |
Delete an event (requires confirm) |
list_calendars |
List all calendars |
create_calendar |
Create a new calendar |
Drive (2 tools)
| Tool | What It Does | Example Prompt |
|---|---|---|
drive_list |
List files in Drive or folder | "Show me files in my Drive" |
drive_search |
Search files by content or name | "Find the Q4 report" |
Drive Admin (mega-tool)
| Action | Description |
|---|---|
create_folder |
Create a new folder |
move / copy / rename |
File operations |
delete |
Delete a file (requires confirm) |
share / unshare |
Manage sharing permissions |
get_permissions |
View current permissions |
Docs (1 tool)
| Tool | What It Does | Example Prompt |
|---|---|---|
docs_read |
Read full text of a Google Doc | "Read the project proposal doc" |
Docs Admin (mega-tool)
| Action | Description |
|---|---|
create |
Create a new document |
append_text |
Add text to end of document |
insert_text |
Insert text at a specific position |
replace_text |
Find and replace text |
delete_content |
Delete content range (requires confirm) |
Sheets (1 tool)
| Tool | What It Does | Example Prompt |
|---|---|---|
sheets_read |
Read cell data or sheet metadata | "Show me the data in Sheet1!A1:D10" |
Sheets Admin (mega-tool)
| Action | Description |
|---|---|
create |
Create a new spreadsheet |
append_rows |
Add rows to a sheet |
update_cells |
Update cell values |
add_sheet |
Add a new sheet tab |
delete_sheet |
Delete a sheet tab (requires confirm) |
clear_range |
Clear a cell range (requires confirm) |
Safety
Destructive actions (delete, trash, clear) require confirm: true to execute. The AI agent will be warned and must explicitly confirm before proceeding.
Privacy
The server sends no telemetry. It talks only to Google APIs, with your own credentials.
Links
By Renzo Johnson | MIT License