mcp-google-workspace
Allows sending, reading, searching emails, managing labels, attachments, drafts, threads, filters, forwarding, vacation settings, and summarizing emails.
Provides tools for managing events, calendars, availability checks, smart scheduling, event attachments, and conflict prevention.
Integration for Google Chat (optional, requires enabling).
Allows fetching and creating documents, appending and replacing text, and raw batch updates.
Provides file/folder CRUD, uploads, downloads, exports, sharing permissions, and Shared Drives operations.
Allows creating, reading, updating forms, managing publish settings, and reading responses.
Integration for Google Keep (optional, requires enabling).
Integration for Google Meet (optional, requires enabling).
Provides spreadsheet metadata, reading/writing values, appending, and raw batch updates.
Allows creating and modifying presentations, slide pages, thumbnails, text replacement, and raw batch updates.
Manages task lists and tasks, including creation, completion, movement, and deletion.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-google-workspaceschedule a meeting with Sarah for next Tuesday at 2pm"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-google-workspace
Production-ready Google Workspace MCP package with:
Gmail MCP: send/read/search emails, attachment handling, label management, batch operations.
Google Calendar MCP: events, availability, create/update/delete operations.
Google Drive MCP: files/folders CRUD, uploads/downloads/exports, sharing permissions, Shared Drives operations.
Google Sheets MCP: spreadsheet metadata, values reads/writes, and raw batch updates.
Google Docs MCP: document fetch/create flows plus convenience text mutations and raw batch updates.
Google Tasks MCP: task lists, tasks, completion, movement, and deletion.
Google People MCP: personal contacts and contact groups.
Google Forms MCP: forms CRUD, publish settings, and response reads.
Google Slides MCP: presentations, slide pages, thumbnails, text replacement, and raw batch updates.
MCP Apps Dashboard: workspace dashboard app-layer tools/resources with interactive UI.
Optional Google Keep MCP, Google Chat MCP, Google Meet MCP, and Gemini media integrations behind feature flags.
FastMCP advanced features: Context logging, progress updates, user elicitation, sampling, resources, and prompts.
Composed server architecture: Gmail + Calendar + Drive + Sheets + Docs + Tasks + People + Forms + Slides mounted by default, with optional Apps/Keep/Chat/Meet/Gemini namespaces.
Requirements
Python 3.12+
UV package manager
Node.js 18+ and npm (required for MCP Apps UI in
src/mcp_google_workspace/apps/ui)Google Cloud OAuth desktop credentials (
credentials.json)Google APIs enabled in your Google Cloud project: Gmail, Calendar, Drive, Sheets, Docs, Tasks, People, Forms, and Slides
Optional APIs when enabling feature-flagged integrations: Google Keep, Google Chat, and Google Meet
Gemini Developer API key when enabling Gemini media tools
Related MCP server: gworkspace-mcp
Installation
uv sync --all-extras --devIf you are working on MCP Apps UI, install frontend dependencies and build the bundle:
cd src/mcp_google_workspace/apps/ui
npm ci
npm run buildOAuth setup
Place credentials.json in one of:
project root:
./credentials.jsonpackage credentials folder:
./src/credentials/credentials.json
On first run, the server launches a browser for OAuth consent and writes token.json.
Optional service feature flags
Sheets, Docs, Tasks, People, Forms, and Slides are mounted by default and their scopes are always requested.
If you are upgrading from an older checkout, delete token.json once so OAuth can re-consent the expanded scope set.
Google Keep OAuth scope can return invalid_scope in standard user OAuth flows.
Keep integration is therefore disabled by default.
Enable Keep when your Google Workspace setup supports it:
$env:ENABLE_KEEP="true"Google Chat OAuth scopes also commonly require Google Workspace accounts. Chat integration is therefore disabled by default.
Enable Chat when your Google Workspace setup supports it:
$env:ENABLE_CHAT="true"Google Meet integration is also disabled by default. Enable it only after enabling the Meet API for the same OAuth client:
$env:ENABLE_MEET="true"Gemini media integration is also disabled by default. Enable it with a Gemini Developer API key:
$env:ENABLE_GEMINI="true"
$env:GEMINI_API_KEY="your-api-key"Capability-specific Gemini model defaults:
$env:GEMINI_IMAGE_GENERATE_MODEL="gemini-3.1-flash-image-preview"
$env:GEMINI_IMAGE_EDIT_MODEL="gemini-3.1-flash-image-preview"
$env:GEMINI_VIDEO_UNDERSTANDING_MODEL="gemini-3-flash-preview"
$env:GEMINI_AUDIO_UNDERSTANDING_MODEL="gemini-3-flash-preview"
$env:GEMINI_REASONING_MODEL="gemini-3.1-pro-preview"Whenever you enable one of these optional integrations or otherwise change the scope set, delete token.json and re-authenticate to refresh granted scopes.
Apps dashboard rollout flag
The MCP app-layer dashboard namespace is opt-in for controlled rollout.
Enable apps namespace:
$env:ENABLE_APPS_DASHBOARD="true"Run (STDIO)
uv run python -m mcp_google_workspaceMCP Bundle (MCPB)
This repository now includes a native uv-based MCP Bundle manifest and packaging assets.
Install on Claude Desktop:
Download the latest
.mcpbfrom GitHub Releases.In Claude Desktop, open the MCP bundle install flow.
Select the downloaded
mcp-google-workspace-*.mcpbfile.Choose the credentials directory that contains
credentials.json, or leave it empty to use the repo defaults.Enable optional integrations only if your Google Workspace account and OAuth client support their scopes.
Finish the install and authenticate in the browser on first launch.
Gemini media tools are API-key-based rather than OAuth-based. If you enable Gemini in the bundle UI, also set the Gemini API key and optional model defaults there.
Build a local .mcpb archive only if you are developing or testing bundle changes:
uv run python scripts/build_mcpb.pyNote: Claude Desktop currently rejects extra server metadata keys such as package_manager, python_version, and working_dir, so this bundle keeps the uv server block to the manifest fields Claude accepts.
Bundle-specific documentation, runtime settings, and validation steps live in docs/MCPB.md.
Run (SSE)
$env:MCP_HOST="127.0.0.1"
$env:MCP_PORT="8000"
uv run python -m mcp_google_workspace.server_sseNotable MCP tools
Gmail (namespaced as gmail_* in composed server):
send_emailread_emailsearch_emailslist_emailslist_labels,create_label,update_label,delete_label,apply_labelslist_attachments,download_attachmentmark_as_read,mark_as_unread,move_email,delete_emailuntrash_email,mark_as_spam,mark_as_not_spambatch_modify,batch_deletelist_filters,create_filter,delete_filterDrafts:
list_drafts,get_draft,create_draft,update_draft,delete_draft,send_draftThreads:
list_threads,get_thread,modify_thread,trash_thread,untrash_thread,delete_threadlist_historyForwarding addresses:
list_forwarding_addresses,get_forwarding_address,create_forwarding_address,delete_forwarding_addressVacation settings:
get_vacation_settings,update_vacation_settingssummarize_email(sampling-powered)
Calendar (namespaced as calendar_*):
get_events,get_event,list_calendars,get_timezone_info,get_current_datecheck_availability,create_event,update_event,delete_eventSmart scheduling:
find_common_free_slotsEvent attachments:
list_event_attachments,add_event_attachment,remove_event_attachment,download_event_attachmentEvent styling + conferencing fields on create/update:
color_id,visibility,transparency,conference_dataConflict prevention: create/update run a FreeBusy overlap check and return
status: "CONFLICT"when slot is not available
Calendar smart scheduling (find_common_free_slots)
find_common_free_slots returns candidate meeting slots (not raw FreeBusy output) for all participants in a time window.
Inputs:
participants: list of calendar IDs/emailstime_min,time_max: RFC3339 windowslot_duration_minutes: desired meeting durationgranularity_minutes: candidate step sizemax_results: result captime_zone: optional timezone used in FreeBusy queryworking_hours_start,working_hours_end: optional daily working-hours filter (HH:MM, 24h)
Compatibility notes:
participantsshould be sent as a JSON array (for example["primary", "rodrigo@example.com"]).Legacy callers can still use
meeting_durationas an alias forslot_duration_minutes.
Working-hours defaults:
working_hours_start:08:00working_hours_end:17:00
Drive (namespaced as drive_*):
Files/content:
list_files,get_file,create_folder,create_file_metadata,upload_fileFile mutations:
update_file_metadata,update_file_content,move_file,copy_file,delete_fileContent retrieval:
download_file,export_google_file,get_file_content_capabilitiesSharing:
list_permissions,get_permission,create_permission,update_permission,delete_permissionShared Drives:
list_drives,get_drive,hide_drive,unhide_driveProgress reporting:
upload_file,update_file_content,download_file, andexport_google_fileemit MCP progress updatesUse Drive for file discovery when you need Docs, Sheets, Slides, or Forms file IDs by MIME type or name
Sheets (namespaced as sheets_*):
get_spreadsheet,create_spreadsheetValues:
get_sheet_values,batch_get_sheet_values,append_sheet_values,update_sheet_valuesRaw request escape hatch:
batch_update_spreadsheet
Docs (namespaced as docs_*):
get_document,create_documentConvenience text mutations:
append_document_text,replace_document_textRaw request escape hatch:
batch_update_document
Tasks (namespaced as tasks_*):
Task lists:
list_tasklists,get_tasklist,create_tasklistTasks:
list_tasks,get_task,create_task,update_task,complete_task,move_task,delete_task
People (namespaced as people_*):
Contacts:
list_contacts,search_contacts,get_contact,create_contact,update_contact,delete_contactContact groups:
list_contact_groups,create_contact_group,modify_contact_group_membersScope note: v1 is personal contacts only; Workspace directory lookup is intentionally excluded
Forms (namespaced as forms_*):
get_form,create_form,batch_update_formPublishing:
set_form_publish_settingsResponses:
list_form_responses,get_form_response
Slides (namespaced as slides_*):
get_presentation,create_presentationSlide reads:
get_slide_page,get_slide_thumbnailText mutation and raw request escape hatch:
replace_text_in_presentation,batch_update_presentation
Apps (namespaced as apps_*, mounted when ENABLE_APPS_DASHBOARD=true):
State/navigation:
get_state,set_state,patch_state,today,next_range,prev_rangeDashboard:
get_dashboardWeekly calendar layout:
get_weekly_calendar_view(Google Calendar-like week columns)Detail views:
get_event_detail,get_email_detail,get_email_attachmentScheduling actions:
find_meeting_slots,create_meeting_from_slot,reschedule_meeting,cancel_meeting,respond_to_event
Keep (namespaced as keep_*):
create_note,get_note,list_notes,delete_noteshare_note,unshare_notesummarize_note(sampling-powered)compatibility stubs for unsupported Keep v1 operations:
update_notearchive_note,unarchive_notelist_keep_labels,create_keep_label,delete_keep_labelchecklist mutation helpers
Note: Keep tools/resources are mounted only when ENABLE_KEEP=true.
Chat (namespaced as chat_*):
list_spaces,get_spacelist_messages,get_messagecreate_message,update_message,delete_messagesummarize_space_messages(sampling-powered)
Note: Chat tools/resources are mounted only when ENABLE_CHAT=true.
Meet (namespaced as meet_*, mounted when ENABLE_MEET=true):
Spaces:
create_space,get_space,update_space,end_active_conferenceConference records:
list_conference_records,get_conference_record
Gemini (namespaced as gemini_*, mounted when ENABLE_GEMINI=true):
generate_image,edit_imagedescribe_video,analyze_audiolocal filesystem or Drive file ID inputs for media tools
generated images are written locally under
GEMINI_OUTPUT_DIRArtifacts and attendance metadata:
list_conference_participants,list_conference_recordings,list_conference_transcriptsv1 scope boundary: metadata only; transcript or recording file downloads still belong in Drive if added later
MCP Resources and Prompts
Gmail resources:
gmail://inbox/summarygmail://labelsgmail://email/{message_id}
Calendar resources:
calendar://todaycalendar://week
Drive resources:
drive://recentdrive://shared-drivesdrive://file/{file_id}
Keep resources:
keep://notes/recentkeep://note/{note_id}
Chat resources:
chat://spaceschat://space/{space_id}/messageschat://space/{space_id}/memberschat://users/{user_ref}chat://users/me
Apps resources (mounted when ENABLE_APPS_DASHBOARD=true):
apps://dashboard/currentapps://dashboard/day/{ymd}apps://dashboard/week/{ymd}apps://calendar/week/{ymd}
Prompts:
compose_email_promptreply_email_promptsummarize_inbox_promptsummarize_keep_note_promptextract_actions_from_keep_notes_promptdraft_chat_announcement_promptsummarize_chat_thread_prompt
MCP Client-Dependent Features
These features depend on active MCP client support and may be silently unavailable in clients that do not implement the corresponding MCP capabilities.
MCP Apps (UI Dashboard)
When ENABLE_APPS_DASHBOARD=true, the apps_get_dashboard and apps_get_weekly_calendar_view tools carry an _meta.ui.resourceUri annotation pointing to ui://apps/dashboard-ui. MCP clients that support the Apps rendering protocol (e.g. Claude Desktop) will embed an interactive workspace dashboard UI alongside the tool response.
The UI is a TypeScript web component that communicates with the server via PostMessage. It renders:
A weekly calendar view (all-day events + timed event columns)
An inbox summary with email detail drill-down
Scheduling action buttons (RSVP, reschedule, cancel)
Session-scoped state (current view, anchor date, selected calendars, inbox query) is stored server-side per session and managed through apps_get_state / apps_set_state / apps_patch_state.
Requires: MCP client with App/iframe rendering support.
Progress Notifications
Long-running tools emit incremental notifications/progress messages via ctx.report_progress(current, total, description). Clients that handle progress notifications can display progress bars or status messages during API-heavy operations.
Tools that emit progress:
Namespace | Tools |
Drive |
|
Apps |
|
Chat |
|
Requires: MCP client that handles notifications/progress.
Sampling
Several tools use MCP sampling (ctx.sample()) to generate LLM-powered summaries within the tool response, using the host client's configured model for inference.
Sampling-powered tools:
gmail_summarize_email— summarizes an email body in up to 5 bulletskeep_summarize_note— summarizes a Keep notechat_summarize_space_messages— summarizes recent messages in a Chat space
Requires: MCP client with sampling/createMessage support (e.g. Claude Desktop). Without sampling support these tools will fail or return an empty summary.
Tool Input Compatibility
All request-schema-based tools now apply the same input normalization layer:
Accepts
camelCaseandsnake_caseparameter keys for object payloads.Accepts full request payload as JSON string (must decode to an object).
For list/dict fields, accepts JSON-string values; list fields also accept comma-separated strings.
find_common_free_slotsandapps_find_meeting_slotsacceptmeeting_durationas alias forslot_duration_minutes.
Recommendation: send a normal JSON object with native arrays/objects whenever possible.
Google Keep API limitations
Google Keep API v1 currently exposes create, get, list, and delete for notes, plus permission batch create/delete. It does not expose a direct update/patch endpoint, archive/unarchive endpoints, or dedicated label endpoints in v1. The MCP server returns explicit unsupported responses for those operations.
Marketplace packaging
This repo includes:
.claude-plugin/marketplace.json.claude-plugin/plugin.json
and a compatibility manifest at:
plugins/google-workspace/.claude-plugin/plugin.json
Reference docs:
Install with Claude Code marketplace
From within Claude Code:
/plugin marketplace add guinacio/mcp-google-workspace
/plugin install google-workspace@google-workspace-mcpLocal checkout flow (from this repository root):
/plugin marketplace add .
/plugin install google-workspace@google-workspace-mcpOptional refresh after updates:
/plugin marketplace update google-workspace-mcpClaude Desktop JSON (mcpServers)
If you want to run it directly in Claude Desktop without marketplace install, add this to your Claude Desktop config JSON under mcpServers.
Windows config file:
%APPDATA%\Claude\claude_desktop_config.json
macOS config file:
~/Library/Application Support/Claude/claude_desktop_config.json
Linux config file:
~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"google-workspace": {
"command": "uv",
"args": [
"run",
"--directory",
"c:/path/to/mcp-google-workspace",
"python",
"-m",
"mcp_google_workspace"
],
"env": {
"ENABLE_APPS_DASHBOARD": "true",
"ENABLE_KEEP": "false",
"ENABLE_CHAT": "false",
"ENABLE_MEET": "false"
}
}
}
}Replace c:/path/to/mcp-google-workspace with your local repo path.
Tests
uv run pytest -qApps smoke test:
# in-process mode (auto-enables apps namespace)
uv run python scripts/qa_apps_smoke.py
# or against a running SSE server
uv run python scripts/qa_apps_smoke.py --sse-url http://127.0.0.1:8001/sseExisting calendar project reference
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/guinacio/mcp-google-workspace'
If you have feedback or need assistance with the MCP directory API, please join our Discord server