Skip to content

Menu

Gmail MCP Server logo

Gmail MCP Server

Published · Updated

At a glance

Watch out for
Google does not make it; a community developer does.

For Gmail, this page covers google_workspace_mcp by Taylor Wilsdon, a community server that covers the whole of Google Workspace in one place: Gmail, Drive, Calendar, Docs, Sheets, Slides, Forms, Tasks, Contacts, Chat, programmable search and Apps Script. It is published on PyPI as workspace-mcp. An earlier version of this page credited a Gmail server to Anthropic; no such server exists.

The Gmail tools cover searching mail, reading threads, sending, drafting, managing labels and filters, and handling attachments. Across all services there are more than 120 tools, which is far too many for most models to handle at once. The server deals with that through tool tiers. Start it with --tool-tier core for the essentials, extended to add management operations, or complete for everything, and combine that with --tools gmail drive calendar to load only the services you use.

There are proper safety switches as well: --read-only, per-service --permissions, and --disabled-tools to remove individual tools. For email in particular, read-only is a sensible starting point. An assistant that can search and summarise your inbox is useful; one that can also send email as you deserves more caution, because a message in your inbox can contain instructions aimed at the model.

How it connects

Your AI app

An assistant or agent that supports MCP

Gmail MCP Server

Runs as

  • Python (uv / pip)
  • Docker
  • Remote (HTTP)

Gives the agent

  • Gmail
  • Drive, Docs, Sheets and Slides
  • Calendar, Tasks and Contacts
  • Forms, Chat and Apps Script
  • Tool tiers and permissions

Gmail

Signs in with

  • OAuth / browser sign-in
Your AI app talks to Gmail MCP Server over the Model Context Protocol, and the server carries out the work. Built from the setup and capability sections on this page.

What it can do

Gmail
Search messages, read threads, send and draft email, manage labels and filters, and download attachments.
Drive, Docs, Sheets and Slides
Search and share Drive files, import Office files, edit and style Docs, work with Sheets ranges and formatting, and update Slides.
Calendar, Tasks and Contacts
Events, free/busy, Out of Office and Focus Time; task lists; and people and groups.
Forms, Chat and Apps Script
Build forms and read responses, search Chat spaces and messages, and write, deploy and run Apps Script.
Tool tiers and permissions
--tool-tier core, extended or complete; --tools to pick services; --read-only, --permissions and --disabled-tools to restrict.

Setting it up

Create an OAuth client in Google Cloud Console in a project with the APIs enabled for the services you plan to use. Export GOOGLE_OAUTH_CLIENT_ID and GOOGLE_OAUTH_CLIENT_SECRET, then run uvx workspace-mcp --tool-tier core --tools gmail, adding other services as needed and --read-only while you try it. For clients that use HTTP, run uvx workspace-mcp --transport streamable-http and connect, for example, with claude mcp add --transport http workspace-mcp http://localhost:8000/mcp. The README warns not to use uvx workspace-cli, because an abandoned PyPI package squats that name. Docker and multi-user deployments with OAuth 2.1 are also documented.

Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)

Where it helps

  • Summarising unread email from the last day and drafting replies for review
  • Finding an attachment someone sent months ago
  • Creating a filter and label for a noisy mailing list
  • Combining Gmail with Calendar and Docs, such as turning an email thread into meeting notes

Limitations and things to watch

  • Google does not make it; a community developer does.
  • Loading every service and tier overwhelms most models; use core and a few services.
  • Sending email as you is risky when the inbox can contain prompt injection; use --read-only or approvals.
  • Setting up your own OAuth client in Google Cloud takes some effort the first time.

Sources

Written from the project's own documentation, checked November 2026.

How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…