Skip to main content
Glama
Google Workspace MCP Server

Google Workspace MCP Server

Google Workspace MCP Server

Generic stdio MCP server exposing gmail_create_draft, gmail_send_email, and google_docs_append_content.

Setup

  1. Enable the Gmail API and Google Docs API in a Google Cloud project, then create an OAuth 2.0 desktop client.

  2. Copy .env.example to .env, set the OAuth values, generate GOOGLE_TOKEN_STORE_ENCRYPTION_KEY with openssl rand -base64 32, and register the exact redirect URI in Google Cloud.

  3. Run npm run build, then npm run authorize and complete browser consent.

  4. Run npm start, or configure an MCP client to execute node /absolute/path/to/mcp-server/build/index.js. VS Code configuration is included in .vscode/mcp.json.

Related MCP server: Google Services MCP Server

Commands

npm run build
npm test
npm run authorize
npm start

The server requests only gmail.compose and documents. OAuth tokens, client secrets, email bodies, and document content are excluded from tool results and normal logs. See docs/architecture.md for design and production deployment considerations.

Available Tools

3 tools
gmail_create_draftCreate Gmail DraftB

Creates a Gmail draft only for the authorized Google account. This operation never sends email.

Inputs: to (required), body (required), subject (required), cc, +3 more.

gmail_send_emailSend Gmail EmailB

Sends an email externally through the authorized Gmail account. This operation has an immediate external side effect.

Inputs: to (required), body (required), subject (required), cc, +3 more.

google_docs_append_contentAppend Google Doc ContentC

Appends text to the end of an existing Google Document without overwriting existing content. This operation modifies the document.

Inputs: content (required), documentId (required), addNewline, idempotencyKey.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 3 tools

    Disambiguation5/5

    The three tools have clearly distinct purposes: appending to a Doc, creating a Gmail draft, and sending an email. The descriptions explicitly distinguish draft creation from sending, so an agent should not confuse them.

    Naming Consistency4/5

    All names follow a service_action_object pattern with verb_noun endings, but the service prefixes are inconsistent: google_docs_* versus gmail_*. This is a minor deviation rather than a chaotic mix.

    Tool Count2/5

    A Google Workspace server with only three tools is severely under-scoped for such a broad domain. Each tool is reasonable, but the set feels like a tiny slice rather than a coherent server surface.

    Completeness1/5

    The surface covers only one Docs operation and two Gmail operations, with no read, list, search, update, delete, Drive, Calendar, or Sheets functionality. This is severely incomplete for a server claiming to represent Google Workspace.

    Maintenance

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers