Naver Mail (네이버 메일)

v0.1.4
io.github.CapyKkuing/naver-mail-mcp Checked 2 days ago Published 29 days ago

Read, search, reply to and organize Naver Mail with the same tools as the Gmail MCP (IMAP/SMTP).

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

get_profile

Returns the connected Naver Mail address, total messages and unread count in the inbox. Use it to confirm which account is connected.

search_threads

IMPORTANT: results are previews (up to 5 messages per thread, from this page only). Never answer questions about the latest or unread email from previews alone; call get_thread to read relevant threads in full. Lists email threads in the Naver Mail account matching a query, newest first, with pagination. Each thread has its id, messageCount (messages from this page) and messages with id, sender, recipients, date, labelIds, subject and snippet. Use it to find thread ids before reading full threads or acting on emails.

ParameterTypeDescription
includeTrashbooleanInclude messages in Trash. Default false.
pageSizeintegerMax messages to return (grouped into threads). Default 20, max 50.
pageTokenstringnextPageToken from a previous call.
querystringGmail search syntax, converted to IMAP for Naver Mail. Supported: from:, to:, cc:, bcc:, subject:, "exact phrase", bare keywords, after:YYYY/MM/DD (inclusive), before:YYYY/MM/DD (exclusive), newer_tha…
viewstringTHREAD_VIEW_MINIMAL (default) includes subject and snippet; THREAD_VIEW_METADATA_ONLY excludes them.

get_thread

Retrieves an email thread (conversation) with all its messages, oldest first, across folders (inbox, sent, user folders). Drafts are omitted. Threads are reconstructed from Message-ID/References headers. Use PLAIN_TEXT to save context.

ParameterTypeDescription
threadId *stringThread id from search_threads.
messageFormatstringMINIMAL: subject, snippet, sender, recipients, date, labels. METADATA_ONLY: no subject/snippet/body. PLAIN_TEXT (recommended): MINIMAL + plaintextBody + attachments (HTML converted to text if needed).…

get_message

Retrieves a single email message by id, including body and attachment metadata. For whole conversations use get_thread. Use PLAIN_TEXT to prevent context exhaustion.

ParameterTypeDescription
messageId *stringMessage id from search_threads or get_thread.
messageFormatstringMINIMAL: subject, snippet, sender, recipients, date, labels. METADATA_ONLY: no subject/snippet/body. PLAIN_TEXT (recommended): MINIMAL + plaintextBody + attachments (HTML converted to text if needed).…

get_attachment

Downloads one attachment of a message. Returns text for text-like files (txt, csv, html, json, ics) and base64 data (up to 8MB).

ParameterTypeDescription
attachmentId *stringattachmentId from get_message (zero-based index).
messageId *string

list_labels

Lists labels with message and unread counts. In Naver Mail labels are folders: system labels INBOX, SENT, DRAFT, TRASH, SPAM map to the matching folders; user labels are folder paths. STARRED (important mark) and UNREAD are flags. Use the returned id with label tools.

create_label

Creates a new user label (a Naver Mail folder). Nested labels use '/', e.g. 'Projects/Alpha'; missing parents are created.

ParameterTypeDescription
displayName *stringLabel name, e.g. 'Receipts' or 'Projects/Alpha'.

update_label

Renames a user label (folder).

ParameterTypeDescription
displayName *stringNew name.
labelId *stringUser label id from list_labels.

delete_label

Deletes a user label. WARNING: in Naver Mail a label is a folder, so the messages inside it are deleted too. Confirm with the user first.

ParameterTypeDescription
labelId *stringUser label id from list_labels.

label_message

Adds labels to a message: STARRED marks important, UNREAD marks unread, a folder label moves it. Moving changes the message id; the new id is returned.

ParameterTypeDescription
labelIds *arrayLabel ids: STARRED, UNREAD, INBOX, TRASH, SPAM, or a user label id from list_labels. Adding a folder label moves the message to that folder (one folder per message); removing the current folder label…
messageId *string

unlabel_message

Removes labels from a message, e.g. remove UNREAD to mark as read, STARRED to unstar. Moving changes the message id; the new id is returned.

ParameterTypeDescription
labelIds *arrayLabel ids: STARRED, UNREAD, INBOX, TRASH, SPAM, or a user label id from list_labels. Adding a folder label moves the message to that folder (one folder per message); removing the current folder label…
messageId *string

update_message_labels

Adds and/or removes labels on a message in one call. Moving changes the message id; the new id is returned.

ParameterTypeDescription
messageId *string
addLabelIdsarrayLabel ids: STARRED, UNREAD, INBOX, TRASH, SPAM, or a user label id from list_labels. Adding a folder label moves the message to that folder (one folder per message); removing the current folder label…
removeLabelIdsarray

label_thread

Adds labels to every message in a thread (e.g. STARRED, or a folder label to move the conversation).

ParameterTypeDescription
labelIds *arrayLabel ids: STARRED, UNREAD, INBOX, TRASH, SPAM, or a user label id from list_labels. Adding a folder label moves the message to that folder (one folder per message); removing the current folder label…
threadId *string

unlabel_thread

Removes labels from every message in a thread, e.g. remove UNREAD to mark the whole conversation as read.

ParameterTypeDescription
labelIds *arrayLabel ids: STARRED, UNREAD, INBOX, TRASH, SPAM, or a user label id from list_labels. Adding a folder label moves the message to that folder (one folder per message); removing the current folder label…
threadId *string

trash_message

Moves a message to Trash (soft delete). Default tool when the user asks to delete a message without asking for permanent deletion.

ParameterTypeDescription
messageId *string

trash_thread

Moves every message of a thread to Trash (soft delete).

ParameterTypeDescription
threadId *string

untrash_message

Moves a message out of Trash (to Sent if you sent it, otherwise Inbox).

ParameterTypeDescription
messageId *string

untrash_thread

Moves the messages of a thread out of Trash.

ParameterTypeDescription
threadId *string

mark_message_spam

Moves a message to the Spam folder.

ParameterTypeDescription
messageId *string

mark_thread_spam

Moves every message of a thread to the Spam folder.

ParameterTypeDescription
threadId *string

unmark_message_spam

Moves a message out of Spam back to the Inbox.

ParameterTypeDescription
messageId *string

unmark_thread_spam

Moves the messages of a thread out of Spam.

ParameterTypeDescription
threadId *string

send_message

Sends an email immediately from the Naver Mail account (SMTP) and saves a copy in Sent. To send an existing draft, give draftId. To thread under an existing conversation give replyThreadId or replyToMessageId. Confirm recipients and content with the user before sending.

ParameterTypeDescription
attachmentsarrayAttachments. Combined size must not exceed 25MB.
bccarrayBcc recipients. Plain email addresses (e.g. "user@example.com"); "Name <user@example.com>" also works.
bodystringPlain text body. Do NOT format with Markdown; use htmlBody for rich text. If htmlBody is also given, this is the plain-text alternative.
ccarrayCc recipients. Plain email addresses (e.g. "user@example.com"); "Name <user@example.com>" also works.
draftIdstringSend this draft as is; other fields are ignored. The draft is removed after sending.
htmlBodystringHTML body (valid HTML tags).
replyThreadIdstringThread the message under this thread (replies to its latest message).
replyToMessageIdstringThread the message as a reply to this message.
subjectstring
toarrayPrimary recipients. Required unless draftId is given. Plain email addresses (e.g. "user@example.com"); "Name <user@example.com>" also works.

reply

Replies to a message (to the sender, or everyone with replyAll). The original is quoted below the reply and threading headers are set. To reply in a thread, use the id of its latest message from get_thread. body or htmlBody is required. Confirm with the user before sending.

ParameterTypeDescription
messageId *string
attachmentsarrayAttachments. Combined size must not exceed 25MB.
bccarrayBcc recipients. Plain email addresses (e.g. "user@example.com"); "Name <user@example.com>" also works.
bodystringPlain text body. Do NOT format with Markdown; use htmlBody for rich text. If htmlBody is also given, this is the plain-text alternative.
ccarrayOverrides the default Cc recipients. Plain email addresses (e.g. "user@example.com"); "Name <user@example.com>" also works.
htmlBodystringHTML body (valid HTML tags).
replyAllbooleanReply to all recipients. Default false.
toarrayOverrides the default reply recipients. Plain email addresses (e.g. "user@example.com"); "Name <user@example.com>" also works.

forward

Forwards a message with its original attachments. Optional comments go above the forwarded message via forwardText (plain) or htmlBody. Confirm with the user before sending.

ParameterTypeDescription
messageId *string
attachmentsarrayExtra attachments in addition to the original ones (25MB total).
bccarrayBcc recipients. Plain email addresses (e.g. "user@example.com"); "Name <user@example.com>" also works.
ccarrayCc recipients. Plain email addresses (e.g. "user@example.com"); "Name <user@example.com>" also works.
forwardTextstringPlain text comments above the forwarded message. No Markdown.
htmlBodystringHTML comments above the forwarded message.
toarrayPrimary recipients. Plain email addresses (e.g. "user@example.com"); "Name <user@example.com>" also works.

create_draft

Creates a draft in the Naver Mail drafts folder (임시보관함). If replyToMessageId is given, threading headers are set and the original message is quoted below the body; recipients default to the original sender. Returns the draft id.

ParameterTypeDescription
attachmentsarrayAttachments. Combined size must not exceed 25MB.
bccarrayBcc recipients. Plain email addresses (e.g. "user@example.com"); "Name <user@example.com>" also works.
bodystringPlain text body. Do NOT format with Markdown; use htmlBody for rich text. If htmlBody is also given, this is the plain-text alternative.
ccarrayCc recipients. Plain email addresses (e.g. "user@example.com"); "Name <user@example.com>" also works.
htmlBodystringHTML body (valid HTML tags).
replyToMessageIdstring
subjectstring
toarrayPrimary recipients. Plain email addresses (e.g. "user@example.com"); "Name <user@example.com>" also works.

update_draft

Updates a draft with merge semantics: given (non-empty) fields overwrite, omitted fields are kept. If only body is given the HTML body is cleared. WARNING: attachments are NOT merged; re-provide them or they are removed. The draft id changes (returned).

ParameterTypeDescription
draftId *string
attachmentsarrayAttachments. Combined size must not exceed 25MB.
bccarrayBcc recipients. Plain email addresses (e.g. "user@example.com"); "Name <user@example.com>" also works.
bodystringPlain text body. Do NOT format with Markdown; use htmlBody for rich text. If htmlBody is also given, this is the plain-text alternative.
ccarrayCc recipients. Plain email addresses (e.g. "user@example.com"); "Name <user@example.com>" also works.
htmlBodystringHTML body (valid HTML tags).
subjectstring
toarrayPrimary recipients. Plain email addresses (e.g. "user@example.com"); "Name <user@example.com>" also works.

delete_draft

Deletes a draft.

ParameterTypeDescription
draftId *string

list_drafts

Lists drafts, optionally filtered by a query (same syntax as search_threads).

ParameterTypeDescription
pageSizeintegerDefault 20, max 50.
pageTokenstring
querystring
viewstringDRAFT_VIEW_FULL adds subject and plaintextBody.

get_draft

Retrieves a draft by id.

ParameterTypeDescription
draftId *string
messageFormatstringMINIMAL: subject, snippet, sender, recipients, date, labels. METADATA_ONLY: no subject/snippet/body. PLAIN_TEXT (recommended): MINIMAL + plaintextBody + attachments (HTML converted to text if needed).…