MCP Server

Gmail Model Context Protocol server with recipient allowlist and local audit log.

Local serverstdioPython

What is the MCP MCP server?

Connect MCP to Claude, Cursor or any other MCP client and it stops being a tab you switch to. Gmail Model Context Protocol server with recipient allowlist and local audit log. The mcp mcp server is what makes that connection.

What the server does

A comprehensive Gmail Model Context Protocol server: 35 tools covering send/preview/confirm, reply, forward, drafts, search, read, attachments, trash, labels, filters, signature, and vacation responder.

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • Group — Tools
  • Drafts — create_draft, list_drafts, send_draft, update_draft, delete_draft
  • Attachments — get_message_attachments, download_attachment
  • Trash — trash_message, untrash_message, trash_thread, untrash_thread
  • Labels — list_labels, create_label, update_label, delete_label, label_message, unlabel_message, label_thread, unlabel_thread
  • Filters — list_filters, create_filter, delete_filter
  • Signature — get_signature, update_signature
  • macOS — The macOS tool exposed by this server

Installation

The server ships on PyPI as mcp-gmail-manager, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

Credentials and setup notes

Configuration is passed through the environment: GMAIL_MCP_TOKEN. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

  • Python ≥ 3.10 - A Google Cloud project with the Gmail API enabled and an OAuth 2.0 client (Desktop type) - A way to forward localhost:8765 to your auth host (typically ssh -L 8765:localhost:8765 user@host)

Where it fits

Plenty of team communication servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. MCP's toolset — Group, Drafts, Attachments and 5 more — is a fair guide to whether it matches your workflow.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
GroupTools
Draftscreate_draft, list_drafts, send_draft, update_draft, delete_draft
Attachmentsget_message_attachments, download_attachment
Trashtrash_message, untrash_message, trash_thread, untrash_thread
Labelslist_labels, create_label, update_label, delete_label, label_message, unlabel_message, label_thread, unlabel_thread
Filterslist_filters, create_filter, delete_filter
Signatureget_signature, update_signature
macOSThe macOS tool exposed by this server.

How to install the MCP MCP server

{
  "mcpServers": {
    "gmail-manager": {
      "command": "uvx",
      "args": ["mcp-gmail-manager"],
      "env": {
        "GMAIL_MCP_TOKEN": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

  • Python ≥ 3.10 - A Google Cloud project with the Gmail API enabled and an OAuth 2.0 client (Desktop type) - A way to forward localhost:8765 to your auth host (typically ssh -L 8765:localhost:8765 user@host)
VariableDescriptionRequired
GMAIL_MCP_TOKENCredential the server authenticates with.Yes

Example prompts to try

  • Use MCP to Group.
  • Use MCP to Drafts.
  • Use MCP to Attachments.

Frequently asked questions

It connects MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 8 tools (Group, Drafts, Attachments, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with MCP directly.