Skip to content

google-workspace

Gmail API access via OAuth 2.0 with support for multiple authenticated accounts. Search, read, send, reply, manage labels, and download attachments.

Tools: 13 | Auth: Google OAuth 2.0

Tools

ToolDescription
authenticateStart OAuth 2.0 flow to authenticate a Gmail account
auth_statusCheck authentication state for all configured accounts
list_accountsList all authenticated Gmail accounts
search_emailsSearch Gmail using query syntax (is:unread, from:, etc.)
get_emailGet single email with full content, body, headers, attachments
get_emails_batchBatch read multiple emails by ID (max 50)
get_threadGet full conversation thread with all messages
send_emailSend new email via Gmail API (plain or HTML)
reply_to_emailReply to email maintaining thread (In-Reply-To, References)
delete_emailTrash or permanently delete email
list_labelsList all Gmail labels with message counts
modify_labelsAdd/remove labels on messages
get_attachmentDownload email attachment to disk

Multi-Account Support

Supports multiple Gmail accounts simultaneously. Each account has its own OAuth token cached in .credentials/.

Gmail Search Syntax

Standard Gmail query syntax works:

  • is:unread
  • from:someone@example.com
  • subject:meeting
  • after:2026/03/01
  • has:attachment

Notes

  • Max 100 emails per search
  • Attachments download to .attachments/
  • Requires GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET (or client_secret.json)

Varia