Gmail MCP server
Search threads, manage drafts, and apply labels in Gmail from your AI agents.
About
Connect Tracecat to Gmail to search threads, manage drafts, and apply labels for SOC analysts triaging phishing reports and IT teams handling service desk email. You can pivot from sender headers into your SIEM and EDR to verify a reported phishing thread in seconds. From there, label the message with the verdict, reply with templated guidance, and convert inbound user emails into tickets with confidence.
Setup
- 1
Sign in with OAuth
You'll authorize Tracecat to access Gmail on your behalf. No API keys to manage.
- 2
Select the
Gmailtile in the Tracecat MCP catalogOpen the
MCP catalogin your workspace, select theGmailtile, and complete the OAuth flow. - 3
Enable
Gmailin your agentIn your
ai.agentaction orAgents→toolstab, selectGmailfrom theMCP integrationsdropdown.
Tools
create_draft | Create a draft email with subject, recipients, and body in the connected mailbox. |
create_label | Create a new Gmail label for organizing threads. |
get_thread | Fetch a thread with all messages, headers, and bodies. |
label_message | Apply one or more labels to a single message. |
label_thread | Apply one or more labels to every message in a thread. |
list_drafts | List drafts in the connected mailbox with subject and recipient. |
list_labels | List labels in the connected mailbox with system or user type. |
search_threads | Search threads using Gmail's query syntax for sender, subject, label, and date filters. |
unlabel_message | Remove one or more labels from a single message. |
unlabel_thread | Remove one or more labels from every message in a thread. |