mailport

v0.1.0
io.github.CloudCorpRecords/mailport Checked 3 days ago Published 1 month ago

Gmail messages, threads, labels, drafts and sending, as MCP tools via the Gmail API.

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

list_messages

List messages in the user's Gmail mailbox, optionally filtered by a search query or labels.

ParameterTypeDescription
label_idsarrayOptional list of label IDs; only messages carrying all of these labels are returned.
max_resultsnumberOptional maximum number of messages to return.
querystringOptional Gmail search query to filter messages by.

get_message

Get a single Gmail message by its ID.

ParameterTypeDescription
message_id *stringThe unique identifier of the Gmail message to retrieve.
formatstringOptional Gmail message format to return, such as full, minimal, raw, or metadata.

list_threads

List threads in the user's Gmail mailbox, optionally filtered by a search query.

ParameterTypeDescription
max_resultsnumberOptional maximum number of threads to return.
querystringOptional Gmail search query to filter threads by.

get_thread

Get a single Gmail thread by its ID.

ParameterTypeDescription
thread_id *stringThe unique identifier of the Gmail thread to retrieve.

list_labels

List all labels in the user's Gmail mailbox.

send_message

Send a new email message via Gmail.

ParameterTypeDescription
body *stringThe plain-text body of the message.
subject *stringThe subject line of the message.
to *stringThe recipient email address for the To header.
bccstringOptional email address to blind-copy in the Bcc header.
ccstringOptional email address to copy in the Cc header.

create_draft

Create a new Gmail draft message.

ParameterTypeDescription
body *stringThe plain-text body of the draft.
subject *stringThe subject line of the draft.
to *stringThe recipient email address for the To header.
bccstringOptional email address to blind-copy in the Bcc header.
ccstringOptional email address to copy in the Cc header.

modify_message

Add or remove labels on a Gmail message.

ParameterTypeDescription
message_id *stringThe unique identifier of the Gmail message to modify.
add_label_idsarrayOptional list of label IDs to add to the message.
remove_label_idsarrayOptional list of label IDs to remove from the message.

trash_message

Move a Gmail message to the trash.

ParameterTypeDescription
message_id *stringThe unique identifier of the Gmail message to move to the trash.

create_label

Create a new label in the user's Gmail mailbox.

ParameterTypeDescription
name *stringThe name of the new label to create.