Skip to main content
Glama
Google Workspace MCP Server

Google Workspace MCP Server

README.md
# 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](.vscode/mcp.json).

## Commands

```bash
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](docs/architecture.md) for design and production deployment considerations.

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