Gmail

v2.4.0
io.github.domdomegg/gmail-mcp Checked 8 hours ago Published 4 months ago

Allow AI systems to read, send, archive, and manage emails via Gmail.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_profile Get profile

Get the current user's Gmail profile including email address

messages_list List messages

List individual messages. Consider using gmail_threads_list instead to group related messages. Use gmail_message_get to fetch full content.

ParameterTypeDescription
includeSpamTrashbooleanInclude messages from SPAM and TRASH
labelIdsarrayOnly return messages with these label IDs
maxResultsnumberMaximum number of messages to return
pageTokenstringPage token for pagination
qstringGmail search query (e.g., "from:someone@example.com", "is:unread", "subject:hello")

message_get Get message

Get a single message by ID. Consider using gmail_thread_get to get all messages in a conversation.

ParameterTypeDescription
id *stringThe ID of the message to retrieve
formatstringThe format to return the message in
metadataHeadersarrayWhen format is metadata, only include these headers

message_send Send message

Send an email message. Can also be used to reply to existing threads.

ParameterTypeDescription
body *stringEmail body (plain text). Used as the plain-text alternative when htmlBody is also provided.
subject *stringEmail subject
to *stringRecipient email address(es), comma-separated for multiple
bccstringBCC recipients, comma-separated
ccstringCC recipients, comma-separated
fromstringSender email address (for send-as aliases)
htmlBodystringOptional HTML body. When set alongside body, the message is sent as multipart/alternative; when set alone, as text/html.
inReplyTostringMessage-ID header of the message being replied to
threadIdstringThread ID to reply to

message_forward Forward message

Forward an email message to new recipients, including attachments and inline images.

ParameterTypeDescription
id *stringThe ID of the message to forward
to *stringRecipient email address(es), comma-separated for multiple
bodystringOptional message to add above the forwarded content
fromstringSender email address (for send-as aliases)

message_modify Modify message labels

Modify the labels on a message. Use this to archive (remove INBOX), mark as read (remove UNREAD), star, etc.

ParameterTypeDescription
id *stringThe ID of the message to modify
addLabelIdsarrayLabel IDs to add to the message
removeLabelIdsarrayLabel IDs to remove from the message

message_archive Archive message

Archive a message by removing the INBOX label. The message remains accessible via search or All Mail.

ParameterTypeDescription
id *stringThe ID of the message to archive

message_trash Trash message

Move a message to the trash. Messages in trash are deleted after 30 days.

ParameterTypeDescription
id *stringThe ID of the message to trash

message_untrash Untrash message

Remove a message from trash

ParameterTypeDescription
messageId *stringThe ID of the message to restore from trash

message_delete Delete message

Permanently delete a message. This cannot be undone. Prefer gmail_message_trash for most cases.

ParameterTypeDescription
messageId *stringThe ID of the message to permanently delete

messages_batch_modify Batch modify messages

Modify labels on multiple messages at once

ParameterTypeDescription
messageIds *arrayThe IDs of messages to modify
addLabelIdsarrayLabel IDs to add
removeLabelIdsarrayLabel IDs to remove

messages_batch_delete Batch delete messages

Permanently delete multiple messages. This cannot be undone.

ParameterTypeDescription
messageIds *arrayThe IDs of messages to permanently delete

thread_get Get thread

Get all messages in a thread (conversation). Recommended over gmail_message_get for reading emails.

ParameterTypeDescription
id *stringThe ID of the thread to retrieve
formatstringThe format to return messages in
metadataHeadersarrayWhen format is metadata, only include these headers

threads_list List threads

List or search email threads (conversations). Recommended over messages_list for most use cases.

ParameterTypeDescription
includeSpamTrashbooleanInclude spam and trash in results
labelIdsarrayOnly return threads with these label IDs
maxResultsnumberMaximum number of threads to return
pageTokenstringPage token for pagination
qstringSearch query (same syntax as Gmail search box)

thread_modify Modify thread

Modify labels on a thread

ParameterTypeDescription
threadId *stringThe ID of the thread to modify
addLabelIdsarrayLabel IDs to add
removeLabelIdsarrayLabel IDs to remove

thread_trash Trash thread

Move a thread to trash

ParameterTypeDescription
threadId *stringThe ID of the thread to trash

thread_untrash Untrash thread

Remove a thread from trash

ParameterTypeDescription
threadId *stringThe ID of the thread to restore from trash

thread_delete Delete thread

Permanently delete a thread. This cannot be undone. Prefer gmail_thread_trash for most cases.

ParameterTypeDescription
threadId *stringThe ID of the thread to permanently delete

draft_create Create draft

Create a new draft email. The draft can be edited and sent later from Gmail.

ParameterTypeDescription
body *stringEmail body (plain text). Used as the plain-text alternative when htmlBody is also provided.
subject *stringEmail subject
to *stringRecipient email address(es), comma-separated for multiple
attachmentsarrayOptional file attachments (base64-encoded)
bccstringBCC recipients, comma-separated
ccstringCC recipients, comma-separated
fromstringSender email address (for send-as aliases)
htmlBodystringOptional HTML body. When set alongside body, the draft is multipart/alternative; when set alone, text/html.
inReplyTostringMessage-ID header of the message being replied to
threadIdstringThread ID if this is a reply draft

draft_get Get draft

Get a specific draft by ID

ParameterTypeDescription
draftId *stringThe ID of the draft to retrieve
formatstringFormat of the message

drafts_list List drafts

List all drafts

ParameterTypeDescription
includeSpamTrashbooleanInclude spam and trash in results
maxResultsnumberMaximum number of drafts to return
pageTokenstringPage token for pagination
qstringSearch query to filter drafts

draft_update Update draft

Update an existing draft

ParameterTypeDescription
draftId *stringThe ID of the draft to update
attachmentsarrayOptional file attachments (base64-encoded)
bccstringBCC email address(es), comma-separated
bodystringEmail body (plain text). Used as the plain-text alternative when htmlBody is also provided.
ccstringCC email address(es), comma-separated
fromstringSender email address (for send-as aliases)
htmlBodystringOptional HTML body. When set alongside body, the draft is multipart/alternative; when set alone, text/html.
subjectstringEmail subject
threadIdstringThread to keep the draft in. Defaults to the draft's current thread, so reply drafts stay in their conversation.
tostringRecipient email address(es), comma-separated

draft_delete Delete draft

Permanently delete a draft

ParameterTypeDescription
draftId *stringThe ID of the draft to delete

draft_send Send draft

Send an existing draft

ParameterTypeDescription
draftId *stringThe ID of the draft to send

labels_list List labels

List all labels in the user's mailbox. Includes both system labels (INBOX, SENT, etc.) and user-created labels.

label_get Get label

Get a specific label by ID

ParameterTypeDescription
labelId *stringThe ID of the label to retrieve

label_create Create label

Create a new label

ParameterTypeDescription
name *stringThe display name of the label
backgroundColorstringBackground color hex code (e.g., #16a765)
labelListVisibilitystringVisibility in label list
messageListVisibilitystringVisibility in message list
textColorstringText color hex code (e.g., #ffffff)

label_update Update label

Update an existing label

ParameterTypeDescription
labelId *stringThe ID of the label to update
backgroundColorstringBackground color hex code (e.g., #16a765)
labelListVisibilitystringVisibility in label list
messageListVisibilitystringVisibility in message list
namestringNew display name for the label
textColorstringText color hex code (e.g., #ffffff)

label_delete Delete label

Delete a label. System labels cannot be deleted.

ParameterTypeDescription
labelId *stringThe ID of the label to delete

attachment_get Get attachment

Get a message attachment. Returns base64url-encoded data.

ParameterTypeDescription
attachmentId *stringThe ID of the attachment
messageId *stringThe ID of the message containing the attachment

filters_list List filters

List all email filters

filter_get Get filter

Get a specific filter by ID

ParameterTypeDescription
filterId *stringThe ID of the filter to retrieve

filter_create Create filter

Create a new email filter

ParameterTypeDescription
addLabelIdsarrayLabel IDs to add
excludeChatsbooleanExclude chat messages
forwardstringEmail address to forward to
fromstringMatch emails from this sender
hasAttachmentbooleanMatch emails with attachments
negatedQuerystringExclude emails matching this query
querystringMatch emails matching this query (same as Gmail search)
removeLabelIdsarrayLabel IDs to remove
sizenumberMatch emails larger/smaller than this size (bytes)
sizeComparisonstringSize comparison operator
subjectstringMatch emails with this subject
tostringMatch emails to this recipient

filter_delete Delete filter

Delete an email filter

ParameterTypeDescription
filterId *stringThe ID of the filter to delete

vacation_get Get vacation settings

Get vacation auto-reply settings

vacation_set Set vacation settings

Set vacation auto-reply settings. To disable, set enableAutoReply to false.

ParameterTypeDescription
enableAutoReply *booleanWhether to enable the vacation auto-reply
endTimestringEnd time in milliseconds since epoch
responseBodyHtmlstringHTML body for the auto-reply
responseBodyPlainTextstringPlain text body for the auto-reply
responseSubjectstringSubject line for the auto-reply
restrictToContactsbooleanOnly send to people in contacts
restrictToDomainbooleanOnly send to people in the same domain
startTimestringStart time in milliseconds since epoch