Gmail MCP
UpGmail MCP is Google's official mail server (Developer Preview): 10 tools like create_draft, search_threads and label_thread give an agent access to drafts, threads, search and labels in natural language. A single endpoint over JSON-RPC on HTTPS, auth via Google OAuth 2.0. Connecting it as a custom connector in Claude.ai requires a paid plan (Pro, Max, Team or Enterprise).
Why this server
- Google's official Gmail MCP (Developer Preview) — drafts, threads, search and labels
- 10 tools, from create_draft and search_threads to label_thread and unlabel_message
- JSON-RPC over HTTPS — works like any regular remote MCP endpoint in any client
- Custom connectors in Claude.ai require a Pro, Max, Team or Enterprise plan
Usage examples
Prompt: Find all emails from support this past week and draft an apology for the delay
Result: The agent called search_threads by sender and date, then create_draft with the reply text — the draft appeared in Gmail with no manual searching.
Prompt: Label every email with subject "Invoice" as Finance
Result: The agent ran search_threads on the subject line and called label_thread with the Finance label on every matching thread.
Health
120 reports in the last 30 days · Last report: 22 Sept 2026
Reports by day (30 days)
| date | works | partial | broken |
|---|---|---|---|
| 2026-08-24 | 4 | 0 | 0 |
| 2026-08-25 | 4 | 0 | 0 |
| 2026-08-26 | 4 | 0 | 0 |
| 2026-08-27 | 4 | 0 | 0 |
| 2026-08-28 | 4 | 0 | 0 |
| 2026-08-29 | 4 | 0 | 0 |
| 2026-08-30 | 4 | 0 | 0 |
| 2026-08-31 | 4 | 0 | 0 |
| 2026-09-01 | 4 | 0 | 0 |
| 2026-09-02 | 4 | 0 | 0 |
| 2026-09-03 | 4 | 0 | 0 |
| 2026-09-04 | 4 | 0 | 0 |
| 2026-09-05 | 4 | 0 | 0 |
| 2026-09-06 | 4 | 0 | 0 |
| 2026-09-07 | 4 | 0 | 0 |
| 2026-09-08 | 4 | 0 | 0 |
| 2026-09-09 | 4 | 0 | 0 |
| 2026-09-10 | 4 | 0 | 0 |
| 2026-09-11 | 4 | 0 | 0 |
| 2026-09-12 | 4 | 0 | 0 |
| 2026-09-13 | 4 | 0 | 0 |
| 2026-09-14 | 4 | 0 | 0 |
| 2026-09-15 | 4 | 0 | 0 |
| 2026-09-16 | 4 | 0 | 0 |
| 2026-09-17 | 4 | 0 | 0 |
| 2026-09-18 | 4 | 0 | 0 |
| 2026-09-19 | 4 | 0 | 0 |
| 2026-09-20 | 4 | 0 | 0 |
| 2026-09-21 | 4 | 0 | 0 |
| 2026-09-22 | 2 | 0 | 0 |
Server tools · 23
Collected by auto-check from tools/list — the real list, not the description.
apply_sensitive_message_labelPrefer `trash_message` or `mark_message_spam` instead. Adds a sensitive label (Trash or Spam) to a single message in the authenticated user's Gmail account. Use `apply_sensitive_message_label` when applying Trash or Spam to exactly 1 message. To apply sensitive labels to multiple messages, use `batch_apply_sensitive_message_labels` instead. If the message belongs to a thread that should be labeled as a whole, prefer `trash_thread` or `mark_thread_spam`. To find the message ID, use tools like `search_threads` or `get_thread`. To find the draft message ID, use tools like `list_drafts`.
apply_sensitive_thread_labelPrefer `trash_thread` or `mark_thread_spam` instead. Adds a sensitive label (Trash or Spam) to a single thread in the authenticated user's Gmail account. This operation affects all messages currently in the thread. Use `apply_sensitive_thread_label` when applying Trash or Spam to exactly 1 thread. To apply sensitive labels to multiple threads, use `batch_apply_sensitive_thread_labels` instead. To find the thread ID, use the `search_threads` tool first.
create_draftCreates a new draft email in the authenticated user's Gmail account. This tool takes recipient addresses (`to`, `cc`, `bcc`), a `subject`, and body content as inputs. Plain text body content can be provided in `body` (do NOT format `body` with Markdown), and rich-text HTML content can be provided in `htmlBody` (use valid HTML tags for formatting; if both are provided, `body` serves as the plain-text alternative). If the draft is created as a reply to an existing message, the ID of the original message should be passed to the tool in the `replyToMessageId` field. Returns a Draft object with the `id` and `threadId` fields populated.
create_labelCreates a new label in the authenticated user's Gmail account. Supports creating nested labels (sub-labels) using a forward slash (e.g., 'Projects/Alpha/Sprint-1'). By default, parent labels will be automatically created if they do not exist.
get_draftRetrieves a specific draft email from the authenticated user's Gmail account by ID. The optional `messageFormat` parameter controls the format of the draft returned. Use `MINIMAL` to return snippet and key headers, `METADATA_ONLY` to exclude snippet, subject, and body, `FULL_CONTENT` for the complete draft, or `RAW` for the raw MIME message content.
get_messageRetrieves a specific email message from the authenticated user's Gmail account by its unique message ID. Use this tool to inspect a single, individual email when you already know its message ID. If the user wants to read a specific email in detail, check the exact wording of a message, or examine attachment metadata for a single email, this is the right tool. It is not suitable for retrieving entire conversations or viewing back-and-forth discussion threads; use the 'get_thread' tool instead. Note: This tool does not support retrieving draft messages. To view drafts, use the 'list_drafts' tool instead. Key indicators include if the user asks for the full content of a specific message ID returned by a previous search, or if the query asks to inspect a specific individual email rather than an entire thread. Example user prompts are: "Get the full text of message ID 18f123456789abcd.", "Read the latest message in that thread from Alice.", and "What are the attachment names in the email I
get_threadRetrieves a specific email thread from the authenticated user's Gmail account, including a list of its messages. Note: This tool does not support retrieving drafts. Any draft messages within a thread are omitted. To view drafts, use the `list_drafts` tool instead. The optional `messageFormat` parameter controls the format of the messages returned. By default (or with `FULL_CONTENT`), it returns the full content of messages. We recommend using `PLAIN_TEXT`, which returns the plain text body without the HTML body. Use `MINIMAL` to include only subject and snippet (excluding body). Use `METADATA_ONLY` to include only basic metadata (message ID, thread ID, labels, timestamp, and size estimate).
label_messageAdds one or more labels to a specific message in the authenticated user's Gmail account. To find the message ID, use tools like `search_threads` or `get_thread`. If unsure of a user label's ID, use the `list_labels` tool first to discover available labels and their IDs. To move a specific message to Trash or mark it as Spam, please use the `trash_message` or `mark_message_spam` tool instead.
label_threadAdds labels to an entire thread in the authenticated user's Gmail account. This operation affects all messages currently in the thread and any future messages added to it. If unsure of the thread ID, use the `search_threads` tool first. If unsure of a user label's ID, use the `list_labels` tool first to discover available labels and their IDs. To move a thread to Trash or mark it as Spam, please use the `trash_thread` or `mark_thread_spam` tool instead.
list_draftsLists draft emails from the authenticated user's Gmail account. This tool can filter drafts based on a query string and supports pagination. It returns a list of drafts, including their IDs and subjects (unless `view` is set to `DRAFT_VIEW_METADATA_ONLY`). `page_token` can be used to paginate the results. To retrieve subsequent pages of results, use the `page_token` returned in the previous response. The `view` parameter controls which fields are populated in the response. By default (or with `DRAFT_VIEW_FULL`), it returns full content. Use `DRAFT_VIEW_METADATA_ONLY` to exclude sensitive content like subject and body. Note: An empty JSON object `{}` represents zero matching items, not an error.
list_labelsLists all labels available in the authenticated user's Gmail account. Use this tool to discover the `id` of a label before calling `label_thread`, `unlabel_thread`, `label_message`, or `unlabel_message`. Note: the system labels, `DRAFT` and `SENT`, cannot be set on messages and are read only. Note: An empty JSON object `{}` represents zero matching items, not an error.
mark_message_spamMarks a specific message as Spam in the authenticated user's Gmail account. To find the message ID, use tools like `search_threads` or `get_thread`.
mark_thread_spamMarks an entire thread as Spam in the authenticated user's Gmail account. This operation affects all messages currently in the thread. Use `mark_thread_spam` when marking a thread as spam, even if it currently contains only 1 message. Marking spam at the thread level ensures all current messages in the thread are marked as Spam. If unsure of the thread ID, use the `search_threads` tool first.
search_threadsLists email threads from the authenticated user's Gmail account. This tool can filter threads based on a query string and supports pagination. It returns a list of threads, including their IDs and related messages. Each related message contains details like a snippet of the message body, the subject, the sender, the recipients etc. The `view` parameter controls which fields are populated in the related messages. By default (or with `THREAD_VIEW_MINIMAL`), it includes subject and snippet. Use `THREAD_VIEW_METADATA_ONLY` to exclude subject and snippet. Note that the full message bodies are not returned by this tool; use the 'get_thread' tool with a thread ID to fetch the full message body if needed. Threads with excluded criteria may still appear in the results. This occurs because Gmail identifies matching messages first. For example, if you search for -is:starred, Gmail will find an entire thread if it contains at least one unstarred message, even if other emails in that same conversa
trash_messageMoves a specific message to the Trash in the authenticated user's Gmail account. Use `trash_message` when targeting a specific message within a thread. To trash an entire thread or a single-message thread, prefer `trash_thread`. To find the message ID, use tools like `search_threads` or `get_thread`. To find the draft message ID, use tools like `list_drafts`.
trash_threadMoves an entire thread to the Trash in the authenticated user's Gmail account. This operation affects all messages currently in the thread. Use `trash_thread` when trashing a thread, even if it currently contains only 1 message. Trashing at the thread level ensures all current messages in the thread are moved to Trash. If unsure of the thread ID, use the `search_threads` tool first.
unlabel_messageRemoves one or more labels from a specific message in the authenticated user's Gmail account. To find the message ID, use tools like `search_threads` or `get_thread`. If unsure of a user label's ID, use the `list_labels` tool first to discover available labels and their IDs.
unlabel_threadRemoves labels from an entire thread in the authenticated user's Gmail account. If unsure of the thread ID, use the `search_threads` tool first. If unsure of a user label's ID, use the `list_labels` tool first.
unmark_message_spamUnmarks a specific message as Spam in the authenticated user's Gmail account. To find the message ID, use tools like `search_threads` or `get_thread`.
unmark_thread_spamUnmarks an entire thread as Spam in the authenticated user's Gmail account. If unsure of the thread ID, use the `search_threads` tool first.
untrash_messageRemoves a specific message from the Trash in the authenticated user's Gmail account. To find the message ID, use tools like `search_threads` or `get_thread`.
untrash_threadRemoves an entire thread from the Trash in the authenticated user's Gmail account. If unsure of the thread ID, use the `search_threads` tool first.
update_message_labelsAtomically adds and/or removes labels from a specific message in the authenticated user's Gmail account. Requires at least one of `addLabelIds` or `removeLabelIds` to be provided. Moving an email between labels can be accomplished in a single call by specifying the target label in `addLabelIds` and the current label in `removeLabelIds`.
Reviews
No reviews yet.