Full natural language control over Google Calendar, Drive, Gmail, Docs, Sheets, Slides, Forms, Tasks, Contacts, and Chat through all MCP clients, AI assistants and developer tools.
> /plugin marketplace add taylorwilsdon/google_workspace_mcp> /plugin install google-workspace-mcp@google-workspace-mcp
What's inside
Full natural language control over Google Calendar, Drive, Gmail, Docs, Sheets, Slides, Forms, Tasks, Contacts, and Chat through all MCP clients, AI assistants and developer tools. Includes a full featured CLI & Code Mode for use with tools like Claude Code and Codex!
The most feature-complete Google Workspace MCP server, it can do things that Google's own tooling and the built in integrations with Claude and ChatGPT can't come close to. With multi-user support, rich fine-grained editing tools and the most extensive coverage of any Google Workspace tool in existence, Workspace MCP is in a different class.
By leveraging native OAuth 2.1, stateless deployment capability and external auth server & gateway passthrough auth support, it's also the only Workspace MCP you can host for your whole organization centrally & securely!
See it in action:
Workspace MCP connects AI assistants to all twelve major Google Workspace services - 120+ tools behind a single MCP server, with OAuth 2.1 multi-user auth, three progressive tool tiers, read-only mode, a full CLI, and stateless container deployment. It runs locally over stdio for legacy clients and remotely over streamable HTTP with full implementation of the latest MCP spec.
The README covers just enough to get you running, with extensive documentation on the website:
| Where to go | What you'll find |
|---|---|
| Quick Start | Google Cloud setup, credentials, and client connection with screenshots |
| Full Documentation | Every tool, parameter, and auth mode |
| Advanced Deployment | Reverse proxy & nginx config, origin validation, credential store backends (GCS/CMEK), and the complete environment variable reference |
| Client Setup Guides | Claude Desktop/web Connectors, ChatGPT Developer Mode, and more |
| FAQ & Troubleshooting | OAuth errors, redirect URIs, Google Chat setup, client quirks |
For Security Teams
By default, this server sends no data anywhere except Google's APIs, on behalf of the authenticated user, using your own OAuth client credentials. There is no usage reporting, analytics, license server, or SaaS dependency outside optional OTel support for your own usage.
validate_file_path() still blocks .env* files plus common home-directory credential stores such as ~/.ssh/ and ~/.aws/ even if ALLOWED_FILE_DIRS is broadenedFull dependency tree in pyproject.toml, pinned in uv.lock.
For Legal & Procurement
This project is MIT licensed — not "open core," not "source available," not "free with a CLA." There is no dual licensing, no commercial tier gating features, and no contributor license agreement.
Each page lists every tool with its tier, parameters, required scopes, and example prompts. The complete reference covers all twelve in one place.
💬 Google Chat needs a one-time Chat app configuration and a Workspace account - see the Chat setup FAQ.
Set credentials → pick a launch command → connect your client. Full walkthrough with screenshots: workspacemcp.com/quick-start
You'll need an OAuth client from Google Cloud Console with the APIs enabled for the services you plan to use - the quick start guide walks through it in about five minutes.
Confidential Client
# 1. Credentials
export GOOGLE_OAUTH_CLIENT_ID="..."
export GOOGLE_OAUTH_CLIENT_SECRET="..."
# 2. Launch - pick a tier
uvx workspace-mcp --tool-tier core # essential tools
uvx workspace-mcp --tool-tier extended # core + management ops
uvx workspace-mcp --tool-tier complete # everything
# Or cherry-pick services
uvx workspace-mcp --tools gmail drive calendar
Secretless / Public OAuth 2.1 (PKCE)
# 1. Credentials
export MCP_ENABLE_OAUTH21=true
export GOOGLE_OAUTH_CLIENT_ID="..."
export WORKSPACE_MCP_PORT=8000
export GOOGLE_OAUTH_REDIRECT_URI="http://localhost:${WORKSPACE_MCP_PORT}/oauth2callback"
export OAUTHLIB_INSECURE_TRANSPORT=1
export FASTMCP_SERVER_AUTH_GOOGLE_JWT_SIGNING_KEY="$(openssl rand -hex 32)"
# 2. Launch - OAuth 2.1 requires HTTP transport
uvx workspace-mcp --transport streamable-http --tool-tier core
Tool tiers keep context windows lean: core is the essential set, extended adds management operations, complete loads everything. Combine with --tools <service> ..., --read-only, or per-service --permissions - details in the server modes docs.
Claude Desktop, web & mobile - run the server in HTTP mode and add it as a Connector (Settings → Connectors → Add custom connector). This is the recommended path; the Connector guide has step-by-step screenshots. Legacy stdio configuration remains available for clients without Connector support - see the FAQ.
Claude Code
# Start the server in HTTP mode, then:
claude mcp add --transport http workspace-mcp http://localhost:8000/mcp
# Optional: install the bundled skill for better Workspace tool routing
ln -s "$(pwd)/skills/managing-google-workspace" ~/.claude/skills/managing-google-workspace
ChatGPT - connect via Developer Mode with the ChatGPT guide.
VS Code, LM Studio, Open WebUI, and everything else - any MCP client works over streamable HTTP (recommended) or stdio. Client-specific walkthroughs live in the guides and FAQ.
workspace-cli lists and calls tools against a running server with encrypted, disk-backed OAuth token caching - authenticate once, script forever:
uv run workspace-cli list
uv run workspace-cli call search_gmail_messages query="is:unread" max_results=5
Install globally with uv tool install . from this repo. ⚠️ Don't use uvx workspace-cli - an abandoned PyPI package squats that name.
Everything you need to run this in production lives in two places. The documentation covers auth modes and server configuration:
docker build -t workspace-mcp . && docker run -p 8000:8000 workspace-mcpThe Advanced Deployment guide covers self-hosting specifics: reverse proxy setup with WORKSPACE_EXTERNAL_URL (including the nginx Origin: null consent workaround and Referrer-Policy pitfall), origin validation and VS Code webview allowlisting, credential store backends (local directory or GCS with CMEK enforcement), and the complete environment variable reference.
By default this server sends no data anywhere except Google's APIs, using your own OAuth client credentials - no usage reporting, analytics, license server, or SaaS dependency. MIT licensed with no CLA, no dual licensing, and no copyleft in the dependency chain. The full security posture - scope minimization, sensitive-path blocking, stateless mode - is documented at workspacemcp.com.
A few things worth internalizing before you connect an LLM to your email:
.env, client_secret.json, or .credentials/ to source control.ALLOWED_FILE_DIRS only if you trust the client and its data sources; .env*, ~/.ssh/, ~/.aws/, and similar paths are always blocked.uv sync --group dev # install deps
uv run ruff check . # lint
uv run pytest # test
Single-file service modules live in g<service>/, tools are registered with @server.tool decorators, and tiers are defined in core/tool_tiers.yaml. PRs welcome.
MIT - see LICENSE. The license is 21 lines and says what it means.
.claude-plugin/
marketplace.json
plugin.json
.dockerignore
.env.oauth21
.github/
dependabot.yml
FUNDING.yml
instructions/
general.instructions.md
ISSUE_TEMPLATE/
bug-report.md
feature_request.md
pull_request_template.md
workflows/
check-maintainer-edits.yml
docker-publish.yml
publish-mcp-registry.yml
pytest.yml
ruff.yml
.gitignore
.mcpbignore
.python-version
auth/
__init__.py
auth_info_middleware.py
credential_store.py
external_oauth_provider.py
gateway_identity.py
google_auth.py
mcp_session_middleware.py
oauth_callback_server.py
oauth_config.py
oauth_responses.py
oauth_types.py
oauth21_session_store.py
permissions.py
port_resolver.py
request_identity.py
scopes.py
service_decorator.py
core/
__init__.py
api_enablement.py
attachment_storage.py
cli.py
comments.py
config.py
context.py
http_utils.py
log_formatter.py
server.py
startup_ui.py
storage.py
telemetry.py
tool_registry.py
tool_tier_loader.py
tool_tiers.yaml
utils.py
warning_filters.py
docker-compose.yml
Dockerfile
docs/
trusted-gateway-identity.md
fastmcp_server.py
fastmcp.json
gappsscript/
__init__.py
apps_script_tools.py
README.md
TESTING.md
gcalendar/
__init__.py
calendar_helpers.py
calendar_tools.py
gchat/
__init__.py
chat_tools.py
gcontacts/
__init__.py
contacts_helpers.py
contacts_tools.py
gdocs/
__init__.py
docs_helpers.py
docs_markdown_writer.py
docs_markdown.py
docs_structure.py
docs_tables.py
docs_tools.py
managers/
__init__.py
batch_operation_manager.py
header_footer_manager.py
table_operation_manager.py
validation_manager.py
operation_schemas.py
gdrive/
__init__.py
drive_helpers.py
drive_tools.py
gforms/
__init__.py
forms_tools.py
glama.json
gmail/
__init__.py
gmail_helpers.py
gmail_tools.py
gsearch/
__init__.py
search_tools.py
gsheets/
__init__.py
sheets_helpers.py
sheets_tools.py
gslides/
__init__.py
slides_helpers.py
slides_tools.py
gtasks/
__init__.py
tasks_tools.py
helm-chart/
workspace-mcp/
Chart.yaml
README.md
templates/
_helpers.tpl
configmap.yaml
deployment.yaml
hpa.yaml
ingress.yaml
NOTES.txt
poddisruptionbudget.yaml
pvc.yaml
secret.yaml
service.yaml
serviceaccount.yaml
values.yaml
LICENSE
main.py
manifest.json
pyproject.toml
README.md
SECURITY.md
server.json
skills/
managing-google-workspace/
evaluations/
edit_doc.json
search_email.json
share_file.json
references/
apps-script.md
calendar.md
chat.md
contacts.md
docs-layout-workflow.md
docs.md
drive.md
forms.md
gmail.md
search.md
server-options.md
sheets.md
slides.md
tasks.md
SKILL.md
smithery.yaml
tests/
__init__.py
auth/
__init__.py
conftest.py
test_auth_info_middleware.py
test_auth_state_scoping.py
test_branding.py
test_credential_security.py
test_gateway_identity.py
test_gcs_credential_store.py
test_google_auth_callback_refresh_token.py
test_google_auth_pkce.py
test_google_auth_prompt_selection.py
test_google_auth_refresh_persistence.py
test_google_auth_stdio_preflight.py
test_httplib2_timeout.py
test_oauth_callback_server.py
test_oauth_config_public_client.py
test_oauth_responses.py
test_oauth21_session_store.py
test_port_resolver.py
core/
__init__.py
test_allowed_redirect_uris.py
test_attachment_route.py
test_attachment_storage.py
test_cli_value_coercion.py
test_comments.py
test_credentials_dir_permissions.py
test_http_oauth_scope_config.py
test_log_formatter.py
test_pdf_image_utils.py
test_service_decorator_cleanup.py
test_start_google_auth.py
test_startup_ui.py
test_storage.py
test_telemetry.py
test_user_google_email_defaults.py
test_validate_file_path.py
test_warning_filters.py
test_well_known_cache_control_middleware.py
gappsscript/
__init__.py
manual_test.py
test_apps_script_tools.py
gcalendar/
__init__.py
test_correct_time_format_for_api.py
test_focus_time.py
test_format_person.py
test_get_events_detailed_fields.py
test_manage_event.py
test_out_of_office.py
test_rsvp_event.py
gchat/
__init__.py
test_chat_tools.py
gcontacts/
__init__.py
golden/
contacts_tool_schemas.json
test_contacts_integration.py
test_contacts_tools_v2.py
test_contacts_tools_v3.py
test_contacts_tools.py
gdocs/
__init__.py
fixtures/
sample_blog_article.md
golden/
docs_tool_schemas.json
test_advanced_doc_formatting.py
test_docs_markdown_writer.py
test_docs_markdown.py
test_header_footer_guardrails.py
test_insert_doc_tab_response.py
test_paragraph_style.py
test_strikethrough.py
test_suggestions_view_mode.py
test_table_cell_style.py
test_table_column_operations.py
test_table_column_properties.py
test_table_merge_operations.py
test_table_row_operations.py
test_table_row_style.py
gdrive/
__init__.py
test_create_drive_folder.py
test_drive_file_content.py
test_drive_tools.py
test_ssrf_protections.py
test_url_download_limits.py
gforms/
__init__.py
test_forms_tools.py
gmail/
__init__.py
test_attachment_fix.py
test_body_format.py
test_draft_gmail_message.py
test_forward_gmail_message.py
test_get_gmail_attachment_content.py
test_get_gmail_thread_content_analysis.py
test_inline_image_attachments.py
test_manage_gmail_filter.py
test_modify_gmail_message_labels_schema.py
test_thread_ownership_helpers.py
gsheets/
__init__.py
test_duplicate_sheet.py
test_format_sheet_range.py
test_read_sheet_values.py
test_resize_sheet_dimensions.py
test_sheets_helpers.py
helpers.py
integration/
__init__.py
test_update_tab_from_markdown.py
test_cwe77_ruff_workflow.py
test_main_permissions_tier.py
test_permissions.py
test_scopes.py
test_slides_tools.py
uv.lockFAQ
google-workspace-mcp is a Claude Code plugin with 1 hand-picked skill for productivity work, indexed on Flowy. Install it with the command on its page. It includes managing-google-workspace. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.