mailport
v0.1.0Gmail 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.
| Parameter | Type | Description |
|---|---|---|
label_ids | array | Optional list of label IDs; only messages carrying all of these labels are returned. |
max_results | number | Optional maximum number of messages to return. |
query | string | Optional Gmail search query to filter messages by. |
get_message
Get a single Gmail message by its ID.
| Parameter | Type | Description |
|---|---|---|
message_id * | string | The unique identifier of the Gmail message to retrieve. |
format | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
max_results | number | Optional maximum number of threads to return. |
query | string | Optional Gmail search query to filter threads by. |
get_thread
Get a single Gmail thread by its ID.
| Parameter | Type | Description |
|---|---|---|
thread_id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
body * | string | The plain-text body of the message. |
subject * | string | The subject line of the message. |
to * | string | The recipient email address for the To header. |
bcc | string | Optional email address to blind-copy in the Bcc header. |
cc | string | Optional email address to copy in the Cc header. |
create_draft
Create a new Gmail draft message.
| Parameter | Type | Description |
|---|---|---|
body * | string | The plain-text body of the draft. |
subject * | string | The subject line of the draft. |
to * | string | The recipient email address for the To header. |
bcc | string | Optional email address to blind-copy in the Bcc header. |
cc | string | Optional email address to copy in the Cc header. |
modify_message
Add or remove labels on a Gmail message.
| Parameter | Type | Description |
|---|---|---|
message_id * | string | The unique identifier of the Gmail message to modify. |
add_label_ids | array | Optional list of label IDs to add to the message. |
remove_label_ids | array | Optional list of label IDs to remove from the message. |
trash_message
Move a Gmail message to the trash.
| Parameter | Type | Description |
|---|---|---|
message_id * | string | The unique identifier of the Gmail message to move to the trash. |
create_label
Create a new label in the user's Gmail mailbox.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the new label to create. |