1. Conduid
  2. Productivity
  3. Google Workspace MCP
MCP server · Productivity

Google Workspace MCP

MCP server for Google Drive, Docs, Sheets, Slides, Calendar, Gmail, and Contacts

Unclaimed MIT last commit 7 months ago productivitymcpgoogle-workspacemcp-server
72Good

Scored 3 hours ago · breakdown

About Google Workspace MCP

Google Workspace MCP is an MCP server published by dguido in the Productivity category: mCP server for Google Drive, Docs, Sheets, Slides, Calendar, Gmail, and Contacts.

The repository has 38 stars and 10 forks, with the last commit 7 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/dguido/google-workspace-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Google Workspace MCP

Powered by Claude · Grounded in docs

I know everything about Google Workspace MCP. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 3 hours ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v3.4.4v3.4.4 · 22 Feb 2026fix(gmail): include attachmentId in read_email text output (#57) Bump hono override from 4.11.7 to 4.11.10 — fixes Dependabot security alert #14 (#58) Bump ajv from 8.17.1 to 8.18.0 (#56) Bump the all-dependencies group with 6 updates (#55)
v3.4.3v3.4.3 · 16 Feb 2026Gmail Draft Management Agents can now update, list, and delete email drafts — solving the problem where agent-driven draft iteration creates orphan drafts with no way to manage them. `draft_email`** now accepts an optional `draftId` to…
v3.4.2v3.4.2 · 14 Feb 2026What's Changed Align Gmail tool parameter names with output fields (#51) Renamed `messageId` → `id` in `read_email`, `delete_email`, and `download_attachment` input parameters so they match the `id` field returned by `search_emails`. This…
v3.4.1v3.4.1 · 14 Feb 2026Add explicit array format examples to email tool descriptions for `send_email` and `draft_email`. Models frequently pass string values instead of arrays for the `to`/`cc`/`bcc` parameters. The descriptions now include format examples like…
v3.4.0v3.4.0 · 11 Feb 2026What's New Office file text extraction (#47) `get_file_content` now extracts readable text from `.docx`, `.xlsx`, and `.pptx` files using lightweight XML parsing — no external binary dependencies. Stdin auth fallback for headless…

README

Google Workspace MCP Server

MCP server providing Claude access to Google Drive, Docs, Sheets, Slides, Calendar, Gmail, and Contacts.

Quick Start

1. Set Up Google Cloud

  1. Go to the Google Cloud Console and create or select a project
  2. Enable all required APIs (one-click link)
  3. Go to APIs & Services > Credentials and create an OAuth 2.0 Client ID (Desktop app type)
  4. Copy the Client ID and Client Secret

2. Configure Claude Desktop

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "google-workspace": {
      "command": "npx",
      "args": ["@dguido/google-workspace-mcp"],
      "env": {
        "GOOGLE_CLIENT_ID": "YOUR_CLIENT_ID.apps.googleusercontent.com",
        "GOOGLE_CLIENT_SECRET": "YOUR_CLIENT_SECRET",
        "GOOGLE_WORKSPACE_SERVICES": "drive,gmail,calendar"
      }
    }
  }
}

That's it. On first tool call, a browser window opens for Google OAuth consent. Tokens are saved automatically.

Download the credentials JSON from Google Cloud Console and save to ~/.config/google-workspace-mcp/credentials.json, then authenticate manually:

npx @dguido/google-workspace-mcp auth

See Advanced Configuration for file-based setup, named profiles, and multi-account setup.

What You Can Do

Create a Google Doc called "Project Plan" in /Work/Projects with an outline for Q1.
Search for files containing "budget" and organize them into the Finance folder.
Create a presentation called "Product Roadmap" with slides for Q1 milestones.

Google Cloud Setup

1. Create a Google Cloud Project

  • Go to the Google Cloud Console
  • Click "Select a project" > "New Project"
  • Name your project (e.g., "Google Drive MCP")

2. Enable Required APIs

  • Enable all APIs at once (one-click link)
  • Or manually: Go to "APIs & Services" > "Library" and enable: Google Drive API, Google Docs API, Google Sheets API, Google Slides API, Google Calendar API, Gmail API, People API

3. Configure OAuth Consent Screen

  • Go to "APIs & Services" > "OAuth consent screen"
  • Fill in app name, support email, and developer contact
  • Choose "External" (or "Internal" for Workspace)
  • Add your email as a test user
  • Add scopes: drive.file, documents, spreadsheets, presentations, drive, drive.readonly, calendar, gmail.modify, gmail.labels, contacts

4. Create OAuth 2.0 Credentials

  • Go to "APIs & Services" > "Credentials"
  • Click "+ CREATE CREDENTIALS" > "OAuth client ID"
  • Application type: Desktop app
  • Copy the Client ID and Client Secret (or download the JSON file)

Configuration

File Locations

Both credentials and tokens are stored in ~/.config/google-workspace-mcp/ by default:

File Default Path
OAuth credentials ~/.config/google-workspace-mcp/credentials.json
Auth tokens ~/.config/google-workspace-mcp/tokens.json

Environment Variables

Variable Description
GOOGLE_CLIENT_ID OAuth Client ID (simplest setup — no credentials file needed)
GOOGLE_CLIENT_SECRET OAuth Client Secret (used with GOOGLE_CLIENT_ID)
GOOGLE_WORKSPACE_MCP_TOKEN_PATH Custom token storage location
GOOGLE_WORKSPACE_MCP_PROFILE Named profile for credential isolation
GOOGLE_WORKSPACE_SERVICES Comma-separated list of services to enable

Token-Efficient Output (TOON)

For LLM-optimized responses that reduce token usage by 20-50%, enable TOON format:

{
  "mcpServers": {
    "google-workspace": {
      "command": "npx",
      "args": ["@dguido/google-workspace-mcp"],
      "env": {
        "GOOGLE_WORKSPACE_SERVICES": "drive,gmail,calendar",
        "GOOGLE_WORKSPACE_TOON_FORMAT": "true"
      }
    }
  }
}

TOON (Token-Oriented Object Notation) encodes structured responses more compactly than JSON by eliminating repeated field names. Savings are highest for list operations (calendars, events, emails, filters).

Service Configuration

By default, we recommend enabling only the core services (drive,gmail,calendar) as shown in Quick Start. This provides file management, email, and calendar capabilities without the complexity of document editing tools.

To enable additional services, add them to GOOGLE_WORKSPACE_SERVICES:

{
  "mcpServers": {
    "google-workspace": {
      "command": "npx",
      "args": ["@dguido/google-workspace-mcp"],
      "env": {
        "GOOGLE_WORKSPACE_SERVICES": "drive,gmail,calendar,docs,sheets,slides"
      }
    }
  }
}

Available services: drive, docs, sheets, slides, calendar, gmail, contacts

  • Omit GOOGLE_WORKSPACE_SERVICES entirely to enable all services
  • Unified tools (create_file, update_file, get_file_content) require drive, docs, sheets, and slides
  • When you limit services, only the OAuth scopes for those services are requested during authentication. If you change enabled services, re-authenticate to update granted scopes.

See Advanced Configuration for named profiles, multi-account setup, and environment variables.

Available Tools

Drive (29 tools)

search listFolder createFolder createTextFile updateTextFile deleteItem renameItem moveItem copyFile getFileMetadata exportFile shareFile getSharing removePermission listRevisions restoreRevision downloadFile uploadFile getStorageQuota starFile resolveFilePath batchDelete batchRestore batchMove batchShare listTrash restoreFromTrash emptyTrash getFolderTree

Google Docs (8 tools)

createGoogleDoc updateGoogleDoc getGoogleDocContent appendToDoc insertTextInDoc deleteTextInDoc replaceTextInDoc formatGoogleDocRange

Google Sheets (7 tools)

createGoogleSheet updateGoogleSheet getGoogleSheetContent formatGoogleSheetCells mergeGoogleSheetCells addGoogleSheetConditionalFormat sheetTabs

Google Slides (10 tools)

createGoogleSlides updateGoogleSlides getGoogleSlidesContent formatSlidesText formatSlidesShape formatSlideBackground createGoogleSlidesTextBox createGoogleSlidesShape slidesSpeakerNotes listSlidePages

Calendar (7 tools)

listCalendars listEvents getEvent createEvent updateEvent deleteEvent findFreeTime

Gmail (14 tools)

sendEmail draftEmail readEmail searchEmails deleteEmail modifyEmail downloadAttachment listLabels getOrCreateLabel updateLabel deleteLabel createFilter listFilters deleteFilter

Contacts (6 tools)

listContacts getContact searchContacts createContact updateContact deleteContact

Unified (3 tools)

createFile updateFile getFileContent

Full API Reference

Troubleshooting

"OAuth credentials not found"

Set GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET env vars in your MCP config, or save your credentials file to ~/.config/google-workspace-mcp/credentials.json.

"Authentication failed" or browser doesn't open

Ensure credential type is "Desktop app" (not "Web application"). The server uses an ephemeral port assigned by the OS, so no specific ports need to be available.

"Tokens expired" or "Invalid grant"

Apps in "Testing" status expire tokens after 7 days. Re-authenticate:

rm ~/.config/google-workspace-mcp/tokens.json
npx @dguido/google-workspace-mcp auth

To avoid weekly re-authentication: Publish your OAuth app (see Avoiding Token Expiry below).

"API not enabled"

Enable the missing API in Google Cloud Console > APIs & Services > Library.

"Login Required" even with valid tokens

Revoke app access at Google Account Permissions, clear tokens, and re-authenticate.

Full Troubleshooting Guide

Security

  • RFC 8252-compliant OAuth 2.0 with PKCE (Proof Key for Code Exchange)
  • Loopback-only authentication server (127.0.0.1)
  • State parameter for CSRF protection
  • Automatic token refresh
  • Tokens stored with 0600 permissions
  • All processing happens locally
  • Never commit credentials or tokens to version control

Avoiding Token Expiry

OAuth apps in "Testing" status automatically expire tokens after 7 days. To avoid weekly re-authentication:

Option 1: Publish Your OAuth App (Recommended)

  1. Go to Google Cloud Console > APIs & Services > OAuth consent screen
  2. Click "PUBLISH APP"
  3. For personal use, you don't need to complete Google's verification process
  4. Published apps keep tokens valid until explicitly revoked

Note: Publishing makes your app available to any Google user, but since you control the OAuth credentials, only you can authenticate.

Option 2: Use Internal App (Workspace Only)

If you have a Google Workspace account:

  1. Set User Type to "Internal" on the OAuth consent screen
  2. Internal apps don't expire tokens and don't require publishing

Monitoring Token Age

Use get_status to check token age. Tokens older than 6 days show a warning automatically.

Development

npm install
npm run build    # Compile TypeScript
npm run check    # typecheck + lint + format check
npm test         # Run tests

See Contributing Guide for project structure and development workflow.

Origin

This project is a substantial rewrite of piotr-agier/google-drive-mcp, originally created by Piotr Agier.

License

MIT - See LICENSE file for details.

README fetched from the repository 3 hours ago. The original is authoritative.

Questions

About Google Workspace MCP

How do I install Google Workspace MCP?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Google Workspace MCP safe to use with an AI agent?

Its trust score is 72 out of 100 (good). It passes 5 of the 6 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Google Workspace MCP still maintained?

The last commit was 7 months ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.