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_draftCreate a draft email with subject, recipients, and body in the connected mailbox.
create_labelCreate a new Gmail label for organizing threads.
get_threadFetch a thread with all messages, headers, and bodies.
label_messageApply one or more labels to a single message.
label_threadApply one or more labels to every message in a thread.
list_draftsList drafts in the connected mailbox with subject and recipient.
list_labelsList labels in the connected mailbox with system or user type.
search_threadsSearch threads using Gmail's query syntax for sender, subject, label, and date filters.
unlabel_messageRemove one or more labels from a single message.
unlabel_threadRemove one or more labels from every message in a thread.