MCP ScannerCustom audit
All servers

codefuturist/email-mcp

Email MCP server with full IMAP + SMTP support — read, search, send, manage, and organize email from any AI assistant via the Model Context Protocol

Package@codefuturist/email-mcp
Version0.6.0 in package.json
Publishercodefuturist community
MCP Registryio.github.codefuturist/email-mcp
Scanned2026-11-25
Scannerv1.3.0
Methodologyv1.2
Stars 160Forks 72Last push 2026-11-09
TypeScript 100.0%by source files the scanner reads
Code safetypartly tracedExposure1.0Prompts10.0Supply chainnot checkedSecrets10.0Transparency10.0
Analysis confidence80%
How much of the server the scanner could read: tools analyzed, files parsed, limits hit.
Code Safetypartly traced—

Paths from tool input into commands, SQL, files and URLs

Capability Exposure1.0/10Poor

How much power the tools give an agent over the machine

Prompt Integritynothing published yet10.0/10

Hidden instructions and poisoning in text for the model

Supply Chainnot checked—

Known vulnerabilities in the packages the server uses

Secrets & Credentialsnothing published yet10.0/10

How the server reads credentials and where they can go

Behavior Transparencynothing published yet10.0/10

Whether the tools do only what their descriptions say

How far the analysis went

The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.

  • Some paths pass through more than 8 functions one inside another; the scanner stops there
  • In 119 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
  • 2 source files could be read only in part
  • Supply Chain: the dependency files state no exact versions the scanner could check, so it has no number

Top risks in plain words

  • HIGHCapabilities add_label, create_mailbox, delete_label, delete_mailbox and 7 more read or write any file path by design: an agent steered by prompt injection can use them that way.

How to use it safely

Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.

  • Give it only the folder it needs

    add_label, create_mailbox, delete_label, delete_mailbox and 7 more can read or write any file path. Mount a single project folder, read-only where you can.

  • Turn off the tools you do not use

    Most MCP clients let you disable single tools. If you do not need add_label, create_mailbox, delete_label and 6 more, switch them off.

  • Keep confirmations on

    Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.

What its tools can do on your machine

The server offers 52 tools, 7 prompts, 6 resources. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.

Read or write filesopen, create, change or delete files
add_label, add_to_calendar, analyze_email_for_scheduling, apply_template, bulk_action, cancel_scheduled and 31 more
37 of 65
Connect to the internet or other hostssend requests or open connections
add_to_calendar, analyze_email_for_scheduling, download_attachment, extract_calendar, extract_contacts, get_email_stats and 1 more
7 of 65

No tool was seen to: start other programs on the machine; read passwords, tokens or keys; read environment variables; touch sensitive locations.

Where its requests and secrets go

Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.

Hosts written in the code

The literal addresses the tools' requests name.

  • None: no request names a fixed host.
Addresses from settings

Constants or settings that start an address; the value comes from configuration.

  • None seen.
Secrets it reads

Credential-like environment variables. Give the server a key with the least access it needs.

  • None: no credential-like variable is read by the tools.

Text it brings in from outside

Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.

  • files37 tools · add_label, add_to_calendar, analyze_email_for_scheduling +34
  • web or API responses5 tools · add_to_calendar, analyze_email_for_scheduling, extract_calendar +2

Tool annotations

52 of 65 tools declare annotations. readOnlyHint 27, destructiveHint 6, idempotentHint 5, openWorldHint 4.

Tools, prompts and resources (65: 52 tools, 7 prompts, 6 resources)

Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.

add_labeltool Add a label to an email. For ProtonMail, this copies the email into the corresponding Labels/<name> folder. For Gmail and standard IMAP, this sets a keyword flaFilesoutside textReads/writes files
Add a label to an email. For ProtonMail, this copies the email into the corresponding Labels/<name> folder. For Gmail and standard IMAP, this sets a keyword flag on the message.
create_mailboxtool Create a new mailbox (folder). Use '/' as separator for nested folders (e.g., 'Work/Projects'). Use list_mailboxes to see existing folders.Filesoutside textReads/writes files
Create a new mailbox (folder). Use '/' as separator for nested folders (e.g., 'Work/Projects'). Use list_mailboxes to see existing folders.
delete_labeltool Delete a label. For ProtonMail, deletes the label folder. For standard IMAP keywords, labels cannot be deleted server-wide — use remove_label on individual emaiFilesoutside textdestructive (declared)Reads/writes files
Delete a label. For ProtonMail, deletes the label folder. For standard IMAP keywords, labels cannot be deleted server-wide — use remove_label on individual emails.
delete_mailboxtool ⚠️ DESTRUCTIVE: Permanently delete a mailbox and ALL its contents. This cannot be undone. Use list_mailboxes to verify the folder path.Filesoutside textdestructive (declared)Reads/writes files
⚠️ DESTRUCTIVE: Permanently delete a mailbox and ALL its contents. This cannot be undone. Use list_mailboxes to verify the folder path.
get_email_statstool Get email statistics and analytics for a mailbox. Shows volume, top senders, daily trends, and read/flagged counts.FilesNetworkoutside textread-only (declared)Reads/writes files
Get email statistics and analytics for a mailbox. Shows volume, top senders, daily trends, and read/flagged counts.
list_mailboxestool List all mailbox folders for an account with unread counts and special-use flags. Use list_accounts first to get the account name.Filesoutside textread-only (declared)Reads/writes files
List all mailbox folders for an account with unread counts and special-use flags. Use list_accounts first to get the account name.
remove_labeltool Remove a label from an email. For ProtonMail, this removes the email from the label folder. For Gmail and standard IMAP, this removes a keyword flag.Filesoutside textReads/writes files
Remove a label from an email. For ProtonMail, this removes the email from the label folder. For Gmail and standard IMAP, this removes a keyword flag.
rename_mailboxtool Rename an existing mailbox (folder). Use list_mailboxes to see current folder paths.Filesoutside textReads/writes files
Rename an existing mailbox (folder). Use list_mailboxes to see current folder paths.
save_drafttool Save an email draft to the Drafts folder. Compose over time, then use send_draft to send it. Use list_emails with the Drafts mailbox to see saved drafts.Filesoutside textReads/writes files
Save an email draft to the Drafts folder. Compose over time, then use send_draft to send it. Use list_emails with the Drafts mailbox to see saved drafts.
cleanup_inboxprompt AI-guided inbox cleanup — categorizes emails and suggests or executes organization actions.
AI-guided inbox cleanup — categorizes emails and suggests or executes organization actions.
compose_replyprompt Draft a professional reply to an email with tone control. Fetches the original email and optionally the full thread for context.
Draft a professional reply to an email with tone control. Fetches the original email and optionally the full thread for context.
draft_from_contextprompt Compose a new email about a topic, searching past emails for relevant context to reference naturally.
Compose a new email about a topic, searching past emails for relevant context to reference naturally.
extract_action_itemsprompt Scan recent emails and extract action items, deadlines, and commitments. Produces a structured task list with source references.
Scan recent emails and extract action items, deadlines, and commitments. Produces a structured task list with source references.
summarize_meetingsprompt Scan recent emails for calendar invites and produce a meeting overview grouped by timeframe.
Scan recent emails for calendar invites and produce a meeting overview grouped by timeframe.
summarize_threadprompt Summarize an email conversation thread. Produces a structured report with participants, timeline, decisions, and action items.
Summarize an email conversation thread. Produces a structured report with participants, timeline, decisions, and action items.
triage_inboxprompt Analyze unread emails and categorize by urgency. Produces a structured triage report with recommended actions.
Analyze unread emails and categorize by urgency. Produces a structured triage report with recommended actions.
accountsresource List of all configured email accounts
List of all configured email accounts
mailboxesresource Mailbox folder tree with message counts for an accountFilesoutside text
Mailbox folder tree with message counts for an account
scheduledresource List of pending scheduled emails
List of pending scheduled emails
statsresource Daily inbox statistics snapshot with unread count and quotaFilesoutside text
Daily inbox statistics snapshot with unread count and quota
templatesresource User-defined email template with variable placeholdersFilesoutside text
User-defined email template with variable placeholders
unreadresource Unread email count summary by folder for an accountFilesoutside text
Unread email count summary by folder for an account
add_to_calendartool FilesNetworkoutside text
No description.
analyze_email_for_schedulingtool FilesNetworkoutside textread-only (declared)
No description.
apply_templatetool Apply an email template with variable substitution. Use action "preview" to see the result, "draft" to save as draft, or "send" to send immediately.Filesoutside text
Apply an email template with variable substitution. Use action "preview" to see the result, "draft" to save as draft, or "send" to send immediately.
bulk_actiontool Batch operation on multiple emails by UID list. Supports mark_read, mark_unread, flag, unflag, move, and delete. Max 100 IDs per call. Returns success/failure cFilesoutside textdestructive (declared)
Batch operation on multiple emails by UID list. Supports mark_read, mark_unread, flag, unflag, move, and delete. Max 100 IDs per call. Returns success/failure counts.
cancel_scheduledtool Cancel a scheduled email. Removes it from the queue and deletes the associated draft.Filesoutside textdestructive (declared)
Cancel a scheduled email. Removes it from the queue and deletes the associated draft.
check_calendar_permissionstool read-only (declared)
No description.
check_clipboard_setuptool Diagnose the clipboard integration used for caught verification codes: platform tools, concealed-write support, current [settings.verification] values, and the read-only (declared)
Diagnose the clipboard integration used for caught verification codes: platform tools, concealed-write support, current [settings.verification] values, and the watcher prerequisite. With test_write=true it performs a harmless clipboard round-trip (writes a test string, reads it back, clears it).
check_healthtool Check connection health, quota, and capabilities for email accounts, plus local cache size, coverage and hit ratio. Useful for diagnosing issues.Filesoutside textread-only (declared)
Check connection health, quota, and capabilities for email accounts, plus local cache size, coverage and hit ratio. Useful for diagnosing issues.
check_notification_setuptool Diagnose desktop notification support on this platform. Checks if required OS tools are available and provides setup instructions to enable notification permissread-only (declared)
Diagnose desktop notification support on this platform. Checks if required OS tools are available and provides setup instructions to enable notification permissions (macOS, Linux, Windows).
configure_alertstool Update alert/notification settings at runtime. Changes take effect immediately. Use save=true to persist changes to the config file. Omit any field to leave it Filesoutside text
Update alert/notification settings at runtime. Changes take effect immediately. Use save=true to persist changes to the config file. Omit any field to leave it unchanged.
configure_verificationtool Update [settings.verification] at runtime — changes take effect immediately, including starting/stopping the ambient catcher via `enabled`. Use save=true to perFilesoutside text
Update [settings.verification] at runtime — changes take effect immediately, including starting/stopping the ambient catcher via `enabled`. Use save=true to persist to config.toml (previous file is backed up). Omit every field to see the current configuration. Registered in read-only mode too: this writes config, never the mailbox.
create_labeltool Create a new label. For ProtonMail, creates a folder under Labels/. For standard IMAP keywords, labels are auto-created on first use — this is a no-op.Filesoutside text
Create a new label. For ProtonMail, creates a folder under Labels/. For standard IMAP keywords, labels are auto-created on first use — this is a no-op.
create_remindertool
No description.
delete_emailtool Delete an email. By default moves to Trash. Set permanent=true for permanent deletion (⚠️ irreversible). The mailbox must be a real folder. Use find_email_foldeFilesoutside textdestructive (declared)
Delete an email. By default moves to Trash. Set permanent=true for permanent deletion (⚠️ irreversible). The mailbox must be a real folder. Use find_email_folder first if the email was found in a virtual folder.
download_attachmenttool FilesNetworkoutside textread-only (declared)
No description.
extract_calendartool Extract calendar events (ICS/iCalendar) from an email. Returns structured event data including time, location, attendees, and status.FilesNetworkoutside textread-only (declared)
Extract calendar events (ICS/iCalendar) from an email. Returns structured event data including time, location, attendees, and status.
extract_contactstool Extract unique contacts from recent email headers. Returns contacts sorted by frequency (most frequent first). Useful for finding frequent correspondents or buiFilesNetworkoutside textread-only (declared)
Extract unique contacts from recent email headers. Returns contacts sorted by frequency (most frequent first). Useful for finding frequent correspondents or building an address book.
find_email_foldertool Find a real mailbox folder an email belongs to. Required before move_email or delete_email when the email was found in a virtual folder (e.g., "All Mail", "Starread-only (declared)
Find a real mailbox folder an email belongs to. Required before move_email or delete_email when the email was found in a virtual folder (e.g., "All Mail", "Starred"). Returns the first real folder path found, to use as sourceMailbox; on a label-based server a message may also sit in other folders.
forward_emailtool Forward an email to new recipients with optional additional message. The original is converted to readable text and "> "-quoted below your note; its attachmentsFilesoutside text
Forward an email to new recipients with optional additional message. The original is converted to readable text and "> "-quoted below your note; its attachments are re-attached unless includeAttachments is false. Set html=true to also send an HTML part carrying the original HTML in a blockquote.
get_emailtool Filesoutside textread-only (declared)
No description.
get_email_statustool Get the current read/flag/label state of an email without fetching its body. Much cheaper than get_email when you only need to check whether an email is unread,read-only (declared)
Get the current read/flag/label state of an email without fetching its body. Much cheaper than get_email when you only need to check whether an email is unread, flagged, or which labels it has. Also useful to confirm the result of a mark_email call. Does NOT mark the email as seen.
get_emailstool Fetch the full content of multiple emails in a single call (max 20). More efficient than calling get_email repeatedly when triaging or summarising several emailread-only (declared)
Fetch the full content of multiple emails in a single call (max 20). More efficient than calling get_email repeatedly when triaging or summarising several emails. Does NOT mark emails as seen. Defaults to format="text" (HTML stripped) for compact, AI-friendly output. Each message carries the same 📰 newsletter / 🤖 automated marker as get_email.
get_hooks_configtool Get the current AI hooks configuration including preset, rules, and custom instructions.read-only (declared)
Get the current AI hooks configuration including preset, rules, and custom instructions.
get_threadtool read-only (declared)
No description.
get_verification_codetool Find the newest verification code (OTP/2FA) or sign-in magic link in recent mail, using false-positive-resistant scoring (EN/DE). Use wait_seconds (max 45) to wFilesoutside text
Find the newest verification code (OTP/2FA) or sign-in magic link in recent mail, using false-positive-resistant scoring (EN/DE). Use wait_seconds (max 45) to wait for a mail still in flight; if nothing arrives, simply call again. Works without the watcher via polling — with [settings.watcher] enabled, hits land within ~1 second. Set copy_to_clipboard=true to also place the value on the clipboard (concealed from clipboard managers, auto-cleared). The code/link is returned in the result by design.
get_watcher_statustool Get the status of IMAP IDLE watcher connections and recent activity.read-only (declared)
Get the status of IMAP IDLE watcher connections and recent activity.
list_accountstool List all configured email accounts. Call this first to discover available account names for use with other tools.read-only (declared)
List all configured email accounts. Call this first to discover available account names for use with other tools.
list_calendarstool read-only (declared)
No description.
list_emailstool List emails in a mailbox with optional filters. Returns paginated results with metadata (read/unread 🔵, flagged ⭐, replied ↩️, attachments 📎, labels 🏷️). List oread-only (declared)
List emails in a mailbox with optional filters. Returns paginated results with metadata (read/unread 🔵, flagged ⭐, replied ↩️, attachments 📎, labels 🏷️). List or machine-generated mail is marked 📰 newsletter / 🤖 automated from its RFC headers, with the unsubscribe URI when the sender offers one — personal mail carries no marker. Use get_email to fetch full body content. ProtonMail note: labels are represented as IMAP folders — use list_labels to discover them, then list_emails with mailbox="Labels/X" to find labeled emails.
list_eventstool read-only (declared)
No description.
list_labelstool List available labels for an email account. Auto-detects the label system: ProtonMail folder-labels, Gmail X-GM-LABELS, or IMAP keywords. ProtonMail note: labelFilesoutside textread-only (declared)
List available labels for an email account. Auto-detects the label system: ProtonMail folder-labels, Gmail X-GM-LABELS, or IMAP keywords. ProtonMail note: labels are represented as IMAP folders under the Labels/ prefix. Use list_emails with mailbox="Labels/<name>" to find emails tagged with a ProtonMail label.
list_presetstool List all available AI triage presets with their descriptions and suggested labels.read-only (declared)
List all available AI triage presets with their descriptions and suggested labels.
list_reminderstool read-only (declared)
No description.
list_scheduledtool List scheduled emails. Shows pending, sent, or all scheduled emails.read-only (declared)
List scheduled emails. Shows pending, sent, or all scheduled emails.
list_templatestool List all available email templates. Templates are TOML files in ~/.config/email-mcp/templates/ with {{variable}} placeholders for subject and body.Filesoutside textread-only (declared)
List all available email templates. Templates are TOML files in ~/.config/email-mcp/templates/ with {{variable}} placeholders for subject and body.
mark_emailtool Change email flags — mark as read/unread, flag/unflag. Idempotent: marking an already-read email as read is a no-op.Filesoutside text
Change email flags — mark as read/unread, flag/unflag. Idempotent: marking an already-read email as read is a no-op.
move_emailtool Move an email to a different mailbox folder. The sourceMailbox must be a real folder, not a virtual one like "All Mail". Use find_email_folder first if the emaiFilesoutside text
Move an email to a different mailbox folder. The sourceMailbox must be a real folder, not a virtual one like "All Mail". Use find_email_folder first if the email was discovered in a virtual folder.
reply_emailtool Reply to an email with proper threading (In-Reply-To & References headers). Use get_email first to read the original. The original message is quoted below the rFilesoutside text
Reply to an email with proper threading (In-Reply-To & References headers). Use get_email first to read the original. The original message is quoted below the reply by default (Thunderbird/Outlook style) — set quoteOriginal=false for the bare body only.
schedule_emailtool Schedule an email to be sent at a specific time in the future. The email is queued locally and sent automatically when the time arrives.Filesoutside text
Schedule an email to be sent at a specific time in the future. The email is queued locally and sent automatically when the time arrives.
search_emailstool Search emails by keyword across subject, sender, and body — and, where the local mirror is enabled, attachment filenames (searching "report" finds an email carrread-only (declared)
Search emails by keyword across subject, sender, and body — and, where the local mirror is enabled, attachment filenames (searching "report" finds an email carrying Q3-report.pdf). Omit query (or pass an empty string) to use it as a pure filter — e.g. find all emails from a specific sender without a keyword. Supports additional filters for sender, recipient, date range (since/before — INTERNALDATE; sent_since/sent_before — Date: header), attachments, size, and reply status. At least one of query/from/to/since/before/sent_since/sent_before/has_attachment/larger_than/smaller_than/answered must be set; otherwise the call errors (use list_emails to browse without filters). Results carry the same 📰 newsletter / 🤖 automated markers as list_emails.
send_drafttool Send an existing draft email and remove it from Drafts. The draft is fetched, sent via SMTP, then deleted. Use list_emails with the Drafts mailbox to find draftFilesNetworkoutside textdestructive (declared)
Send an existing draft email and remove it from Drafts. The draft is fetched, sent via SMTP, then deleted. Use list_emails with the Drafts mailbox to find draft IDs.
send_emailtool Send a new email. Supports plain text or HTML body, CC, and BCC.Filesoutside text
Send a new email. Supports plain text or HTML body, CC, and BCC.
test_notificationtool Send a test desktop notification to verify that OS permissions are correctly configured. Use check_notification_setup first to diagnose any issues.
Send a test desktop notification to verify that OS permissions are correctly configured. Use check_notification_setup first to diagnose any issues.

Text the model reads (65)

Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.

get_email_stats tool
Get email statistics and analytics for a mailbox. Shows volume, top senders, daily trends, and read/flagged counts.
list_emails tool
List emails in a mailbox with optional filters. Returns paginated results with metadata (read/unread 🔵, flagged ⭐, replied ↩\ufe0f, attachments 📎, labels 🏷\ufe0f). List or machine-generated mail is marked 📰 newsletter / 🤖 automated from its RFC headers, with the unsubscribe URI when the sender offers one — personal mail carries no marker. Use get_email to fetch full body content. ProtonMail note: labels are represented as IMAP folders — use list_labels to discover them, then list_emails with mailbox="Labels/X" to find labeled emails.
get_email_status tool
Get the current read/flag/label state of an email without fetching its body. Much cheaper than get_email when you only need to check whether an email is unread, flagged, or which labels it has. Also useful to confirm the result of a mark_email call. Does NOT mark the email as seen.
list_accounts tool
List all configured email accounts. Call this first to discover available account names for use with other tools.
download_attachment tool
bulk_action tool
Batch operation on multiple emails by UID list. Supports mark_read, mark_unread, flag, unflag, move, and delete. Max 100 IDs per call. Returns success/failure counts.
extract_calendar tool
Extract calendar events (ICS/iCalendar) from an email. Returns structured event data including time, location, attendees, and status.
add_to_calendar tool
check_calendar_permissions tool
list_calendars tool
list_events tool
list_reminders tool
create_reminder tool
analyze_email_for_scheduling tool
extract_contacts tool
Extract unique contacts from recent email headers. Returns contacts sorted by frequency (most frequent first). Useful for finding frequent correspondents or building an address book.
save_draft tool
Save an email draft to the Drafts folder. Compose over time, then use send_draft to send it. Use list_emails with the Drafts mailbox to see saved drafts.
send_draft tool
Send an existing draft email and remove it from Drafts. The draft is fetched, sent via SMTP, then deleted. Use list_emails with the Drafts mailbox to find draft IDs.
get_email tool
get_emails tool
Fetch the full content of multiple emails in a single call (max 20). More efficient than calling get_email repeatedly when triaging or summarising several emails. Does NOT mark emails as seen. Defaults to format="text" (HTML stripped) for compact, AI-friendly output. Each message carries the same 📰 newsletter / 🤖 automated marker as get_email.
search_emails tool
Search emails by keyword across subject, sender, and body — and, where the local mirror is enabled, attachment filenames (searching "report" finds an email carrying Q3-report.pdf). Omit query (or pass an empty string) to use it as a pure filter — e.g. find all emails from a specific sender without a keyword. Supports additional filters for sender, recipient, date range (since/before — INTERNALDATE; sent_since/sent_before — Date: header), attachments, size, and reply status. At least one of query/from/to/since/before/sent_since/sent_before/has_attachment/larger_than/smaller_than/answered must be set; otherwise the call errors (use list_emails to browse without filters). Results carry the same 📰 newsletter / 🤖 automated markers as list_emails.
create_mailbox tool
Create a new mailbox (folder). Use '/' as separator for nested folders (e.g., 'Work/Projects'). Use list_mailboxes to see existing folders.
rename_mailbox tool
Rename an existing mailbox (folder). Use list_mailboxes to see current folder paths.
delete_mailbox tool
⚠\ufe0f DESTRUCTIVE: Permanently delete a mailbox and ALL its contents. This cannot be undone. Use list_mailboxes to verify the folder path.
check_health tool
Check connection health, quota, and capabilities for email accounts, plus local cache size, coverage and hit ratio. Useful for diagnosing issues.
list_labels tool
List available labels for an email account. Auto-detects the label system: ProtonMail folder-labels, Gmail X-GM-LABELS, or IMAP keywords. ProtonMail note: labels are represented as IMAP folders under the Labels/ prefix. Use list_emails with mailbox="Labels/<name>" to find emails tagged with a ProtonMail label.
add_label tool
Add a label to an email. For ProtonMail, this copies the email into the corresponding Labels/<name> folder. For Gmail and standard IMAP, this sets a keyword flag on the message.
remove_label tool
Remove a label from an email. For ProtonMail, this removes the email from the label folder. For Gmail and standard IMAP, this removes a keyword flag.
create_label tool
Create a new label. For ProtonMail, creates a folder under Labels/. For standard IMAP keywords, labels are auto-created on first use — this is a no-op.
delete_label tool
Delete a label. For ProtonMail, deletes the label folder. For standard IMAP keywords, labels cannot be deleted server-wide — use remove_label on individual emails.
find_email_folder tool
Find a real mailbox folder an email belongs to. Required before move_email or delete_email when the email was found in a virtual folder (e.g., "All Mail", "Starred"). Returns the first real folder path found, to use as sourceMailbox; on a label-based server a message may also sit in other folders.
list_mailboxes tool
List all mailbox folders for an account with unread counts and special-use flags. Use list_accounts first to get the account name.
move_email tool
Move an email to a different mailbox folder. The sourceMailbox must be a real folder, not a virtual one like "All Mail". Use find_email_folder first if the email was discovered in a virtual folder.
delete_email tool
Delete an email. By default moves to Trash. Set permanent=true for permanent deletion (⚠\ufe0f irreversible). The mailbox must be a real folder. Use find_email_folder first if the email was found in a virtual folder.
mark_email tool
Change email flags — mark as read/unread, flag/unflag. Idempotent: marking an already-read email as read is a no-op.
schedule_email tool
Schedule an email to be sent at a specific time in the future. The email is queued locally and sent automatically when the time arrives.
list_scheduled tool
List scheduled emails. Shows pending, sent, or all scheduled emails.
cancel_scheduled tool
Cancel a scheduled email. Removes it from the queue and deletes the associated draft.
send_email tool
Send a new email. Supports plain text or HTML body, CC, and BCC.
reply_email tool
Reply to an email with proper threading (In-Reply-To & References headers). Use get_email first to read the original. The original message is quoted below the reply by default (Thunderbird/Outlook style) — set quoteOriginal=false for the bare body only.
forward_email tool
Forward an email to new recipients with optional additional message. The original is converted to readable text and "> "-quoted below your note; its attachments are re-attached unless includeAttachments is false. Set html=true to also send an HTML part carrying the original HTML in a blockquote.
list_templates tool
List all available email templates. Templates are TOML files in ~/.config/email-mcp/templates/ with {{variable}} placeholders for subject and body.
apply_template tool
Apply an email template with variable substitution. Use action "preview" to see the result, "draft" to save as draft, or "send" to send immediately.
get_thread tool
get_verification_code tool
Find the newest verification code (OTP/2FA) or sign-in magic link in recent mail, using false-positive-resistant scoring (EN/DE). Use wait_seconds (max 45) to wait for a mail still in flight; if nothing arrives, simply call again. Works without the watcher via polling — with [settings.watcher] enabled, hits land within ~1 second. Set copy_to_clipboard=true to also place the value on the clipboard (concealed from clipboard managers, auto-cleared). The code/link is returned in the result by design.
check_clipboard_setup tool
Diagnose the clipboard integration used for caught verification codes: platform tools, concealed-write support, current [settings.verification] values, and the watcher prerequisite. With test_write=true it performs a harmless clipboard round-trip (writes a test string, reads it back, clears it).
configure_verification tool
Update [settings.verification] at runtime — changes take effect immediately, including starting/stopping the ambient catcher via `enabled`. Use save=true to persist to config.toml (previous file is backed up). Omit every field to see the current configuration. Registered in read-only mode too: this writes config, never the mailbox.
get_watcher_status tool
Get the status of IMAP IDLE watcher connections and recent activity.
list_presets tool
List all available AI triage presets with their descriptions and suggested labels.
get_hooks_config tool
Get the current AI hooks configuration including preset, rules, and custom instructions.
check_notification_setup tool
Diagnose desktop notification support on this platform. Checks if required OS tools are available and provides setup instructions to enable notification permissions (macOS, Linux, Windows).
test_notification tool
Send a test desktop notification to verify that OS permissions are correctly configured. Use check_notification_setup first to diagnose any issues.
configure_alerts tool
Update alert/notification settings at runtime. Changes take effect immediately. Use save=true to persist changes to the config file. Omit any field to leave it unchanged.
extract_action_items prompt
Scan recent emails and extract action items, deadlines, and commitments. Produces a structured task list with source references.
summarize_meetings prompt
Scan recent emails for calendar invites and produce a meeting overview grouped by timeframe.
cleanup_inbox prompt
AI-guided inbox cleanup — categorizes emails and suggests or executes organization actions.
compose_reply prompt
Draft a professional reply to an email with tone control. Fetches the original email and optionally the full thread for context.
draft_from_context prompt
Compose a new email about a topic, searching past emails for relevant context to reference naturally.
summarize_thread prompt
Summarize an email conversation thread. Produces a structured report with participants, timeline, decisions, and action items.
triage_inbox prompt
Analyze unread emails and categorize by urgency. Produces a structured triage report with recommended actions.
accounts resource
List of all configured email accounts
mailboxes resource
Mailbox folder tree with message counts for an account
scheduled resource
List of pending scheduled emails
stats resource
Daily inbox statistics snapshot with unread count and quota
templates resource
User-defined email template with variable placeholders
unread resource
Unread email count summary by folder for an account

What we checked

The same checks run on every server. Each line below has one of these marks:

FoundA published issue such as a risky tool or a CVE
PassedWe ran the check on this server and found nothing
After reviewChecked; we publish it once a person verifies it
Partly tracedRan, but the scanner could not follow every path to its end
FactWhat the code does, not a judgement either way
Not checkedThe scanner had nothing to read for it, or it needs the live server
Code Safetypartly traced
  • 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injection
    Checked on every scan. Results in this category are published only after a person has verified them.
Capability Exposure1.0
  • Runs programs the caller chooses
    No tool runs a command or program the caller supplies — 65 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Executes caller-supplied code
    No tool evaluates code the caller supplies — 65 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Reads or writes any file path HIGH
    15 findings in add_label, create_mailbox, delete_label, delete_mailbox and more
  • Requests any address
    No tool sends a request to an address the caller supplies — 65 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Runs caller-supplied SQL
    No tool executes a query the caller supplies — 65 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Tools that start processes
    Not seen in the traced code of 65 capabilities; 62 more call code the scanner could not follow, where it may happen
  • Tools that touch files
    37 of 65 capabilities touch files; 25 more call code the scanner could not follow, where it may happen
  • Tools that call the network
    7 of 65 capabilities call the network; 55 more call code the scanner could not follow, where it may happen
Where the code is: 65 handlers in 32 files at commit 7d31cd5eac87
Prompt Integrity10.0
  • 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrity
    Checked on every scan. Results in this category are published only after a person has verified them.
Supply Chainnot checked
  • Dependency manifests
    1 manifest: package.json
  • Lockfiles checked against OSV
    Nothing could be resolved to exact versions; 3 not resolved: deno.lock: lockfile format is not supported by this analyzer, dependencies were not checked; package.json: dependency ranges declared here were not resolved against a lockfile and were not checked
  • MCP SDK version
    @modelcontextprotocol/node ^2.1.1, @modelcontextprotocol/sdk ^1.32.1, @modelcontextprotocol/server ^2.3.1
Secrets & Credentials10.0
  • 3 checks: credential harvesting, undeclared credential access, credentials sent over the network
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Tools that read credentials
    Not seen in the traced code of 65 capabilities; 62 more call code the scanner could not follow, where it may happen
  • Authentication declared
    Not checked: needs the live server's tools/list (a remote server declares how clients authenticate)
Behavior Transparency10.0
  • 3 checks: undeclared network access, undeclared file access, undeclared process execution
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Tool descriptions present
    Every tool has a description the model and the user can read (10 only in code no tool reaches)
  • Statically known names
    Every tool's name could be read from the code
  • Input schemas
    Not checked: needs the live server's tools/list (every tool declares an input schema)
  • Destructive tools annotated
    Not checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)

Dependencies with known vulnerabilities (0 in production)

Dependency ranges were not resolved against a lockfile, so the score is capped at 7.

No known vulnerabilities in the production dependencies that could be checked.

Past security advisories

Vulnerabilities published for this server itself, from the GitHub Advisory Database.

No security advisories have been published for this server in the GitHub Advisory Database.

How it runs

Where it runsOn your machine, started by your MCP client from this repository or its package
Transportnot stated in the code the scanner read; most local servers talk over stdio
Sign-innot checked needs the live server
MCP SDK@modelcontextprotocol/node ^2.1.1, @modelcontextprotocol/sdk ^1.32.1, @modelcontextprotocol/server ^2.3.1

The project's own security

Security policyyes SECURITY.md
Private reportingmentioned the policy names a private channel
Past advisoriesnone in the GitHub Advisory Database
Last push2026-11-09
Signed releasesnot checked yet

Where it is published

Other npm packages
1 package by other publishers point to this repository

Not published by the repository's owner; check who publishes a package before you install it.

MCP Registryio.github.codefuturist/email-mcp
Listed in6 catalogs (awesome_punkpeye, github_search, glama, mcp_registry, mcp_toplist, npm)
LicenseLGPL-3.0
Created2026-02-18
Topicsai claude email imap imapflow llm mcp mcp-server model-context-protocol nodejs

Attack map

How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.

Request a scan or an audit

Tell us about your server. We reply within 5 working days.

What do you need? *

We use these details only to answer you.