
Security News
Ruby's Bundler 4.0.18 Extends Cooldown to bundle lock and bundle cache
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.
@mindstone/mcp-server-email-imap
Advanced tools
Email IMAP/SMTP MCP server for Model Context Protocol hosts — supports iCloud Mail, Yahoo Mail, and custom IMAP providers
Email IMAP/SMTP MCP server for Model Context Protocol hosts. Read, search, send, and manage emails through IMAP and SMTP — supports iCloud Mail, Gmail, Yahoo Mail, Outlook / Microsoft 365, and custom IMAP providers.
cd <path-to-repo>/connectors/email-imap
npm install
npm run build
npx -y @mindstone/mcp-server-email-imap
node dist/index.js
EMAIL_IMAP_EMAIL — email addressEMAIL_IMAP_PASSWORD — app-specific passwordEMAIL_IMAP_PROVIDER — email provider (icloud, gmail, yahoo, outlook,
or custom). When unset, the connector auto-detects the provider from the
email's domain (e.g. @gmail.com → gmail, @icloud.com → icloud,
@outlook.com → outlook, @yahoo.co.uk → yahoo). If the domain is not
recognised, the connector refuses to start with a clear error — it will
not silently fall back to a default provider.EMAIL_IMAP_IMAP_HOST — custom IMAP host (optional, for custom providers)EMAIL_IMAP_SMTP_HOST — custom SMTP host (optional, for custom providers)EMAIL_IMAP_IMAP_PORT — custom IMAP port (default: 993)EMAIL_IMAP_SMTP_PORT — custom SMTP port (default: 587)EMAIL_IMAP_ALLOW_PLAINTEXT — set to 1 to opt into cleartext IMAP
(imap_port=143) or SMTP (smtp_port=25) for provider: custom.
Strongly discouraged — credentials and message bodies will travel
unencrypted. With this env var unset, the connector refuses to start
when a cleartext port is configured.MCP_HOST_BRIDGE_STATE — optional path to a host bridge state file used for credential managementMINDSTONE_REBEL_BRIDGE_STATE — backwards-compatible alias for MCP_HOST_BRIDGE_STATEemail_send)These caps act as blast-radius circuit breakers against prompt-injection-driven mass sends. Defaults are baked into the source so a host that sets none of these still gets safe behaviour. Hosts can tighten them per deployment.
EMAIL_IMAP_MAX_RECIPIENTS — maximum combined To+CC+BCC recipients per
email_send call (default: 25). Exceeding this returns a structured
error with code: "RECIPIENT_LIMIT_EXCEEDED".EMAIL_IMAP_RATE_LIMIT_PER_HOUR — maximum number of email_send calls per
rolling window (default: 50). Exceeding this returns a structured error
with code: "RATE_LIMIT_EXCEEDED", plus resetAt (ISO-8601) and
retryAfterMs so the host/LLM can back off.EMAIL_IMAP_RATE_LIMIT_WINDOW_MS — sliding-window length, in milliseconds,
for the rate limit (default: 3600000 — one hour).{
"mcpServers": {
"Email": {
"command": "npx",
"args": ["-y", "@mindstone/mcp-server-email-imap"],
"env": {
"EMAIL_IMAP_EMAIL": "you@icloud.com",
"EMAIL_IMAP_PASSWORD": "your-app-specific-password",
"EMAIL_IMAP_PROVIDER": "icloud"
}
}
}
}
{
"mcpServers": {
"Email": {
"command": "node",
"args": ["<path-to-repo>/connectors/email-imap/dist/index.js"],
"env": {
"EMAIL_IMAP_EMAIL": "you@icloud.com",
"EMAIL_IMAP_PASSWORD": "your-app-specific-password",
"EMAIL_IMAP_PROVIDER": "icloud"
}
}
}
}
email_sendemail_send is a destructive, open-world action: it dispatches mail to
arbitrary external recipients on the user's behalf. The tool is annotated
with destructiveHint: true and openWorldHint: true accordingly.
Hosts MUST require explicit user confirmation before each email_send
invocation. A user-confirmation gate is the only reliable defence against
prompt-injection content (e.g., text inside an email_get_message body)
coercing the LLM into sending mail without the user's intent. Do not
auto-approve email_send based on tool annotations alone — surface the full
recipient list, subject, and body to the user and require an affirmative
click/keystroke before forwarding the call to the connector.
The connector additionally enforces:
EMAIL_IMAP_MAX_RECIPIENTS, default
25).EMAIL_IMAP_RATE_LIMIT_PER_HOUR / EMAIL_IMAP_RATE_LIMIT_WINDOW_MS,
defaults 50 / 3600000ms).When either cap is exceeded the tool returns a structured error JSON
({ ok: false, code: "RECIPIENT_LIMIT_EXCEEDED" | "RATE_LIMIT_EXCEEDED", … })
without contacting the SMTP transport. Caps are env-tunable but defaults are
baked into the source — hosts do not need to set any env var to get safe
behaviour.
configure_email_imap — Configure email account credentials and provideremail_list_mailboxes — List all email folders/mailboxes with message countsemail_get_mailbox_status — Get mailbox status with unread count and latest subjectsemail_search_messages — Search for emails in a mailboxemail_get_message — Get full email content by UIDemail_move_messages — Move emails between foldersemail_set_flags — Set or remove flags (read, starred) on messagesemail_send — Send an email or replyemail_save_draft — Save a draft emailFSL-1.1-MIT — Functional Source License, Version 1.1, with MIT future licence. The software converts to MIT licence on 2030-04-08.
FAQs
Email IMAP/SMTP MCP server for Model Context Protocol hosts — supports iCloud Mail, Yahoo Mail, and custom IMAP providers
We found that @mindstone/mcp-server-email-imap demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.