mailbridge-email

mailbridge-email is a cursor rule for coding agents from Creativestefan/mailbridge-mcp. It costs 36 tokens per session (758 once invoked), scanned A, original, MIT.

Rules for using Mailbridge's email tools in Cursor, covering inboxes, messages, drafts, scheduled mail, attachments, and related email work. Mailbridge provides tools for reading, searching, organizing, composing, and sending email.

In plain words
What is it for?
Use it to read and search email, inspect conversation threads, review contact history, export messages, write or send replies, save and manage drafts, schedule messages, and organize email folders or flags.
Why use it?
It gives the agent a defined way to handle email requests and tells it what to do if no email account is configured. This reduces inconsistent handling of inboxes, replies, drafts, and scheduled messages.

Cursor rule

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/creativestefan/mailbridge-mcp/mailbridge-email
Clone the repo
git clone --depth 1 https://github.com/Creativestefan/mailbridge-mcp

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mailbridge-email

README.md
[![agentmods](https://agentmods.dev/badge/rules/creativestefan/mailbridge-mcp/mailbridge-email.svg)](https://agentmods.dev/rules/creativestefan/mailbridge-mcp/mailbridge-email)
Your own site
<a href="https://agentmods.dev/rules/creativestefan/mailbridge-mcp/mailbridge-email"><img src="https://agentmods.dev/badge/rules/creativestefan/mailbridge-mcp/mailbridge-email.svg" alt="Measured on agentmods" height="20"></a>
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 758 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00036 $0.00758
Opus 5 $0.00018 $0.00379
Sonnet 5 $0.00007 $0.00152
Haiku 4.5 $0.00004 $0.00076

Measured 5d ago against content hash a8c36b571945, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

mailbridge-email scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/mailbridge/rules/mailbridge-email.mdc · 78 lines

How it starts

The opening of the file, as written. The whole thing — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Mailbridge — Email Tools

Mailbridge exposes 43 MCP tools for email. Use them in preference to any other method when the user has email-related requests.

Setup

If any tool returns "No email account configured", call open_setup immediately — do not ask the user to do it manually.

Tool Groups

Reading

  • read_emails — paginated inbox list; returns priority (1–5) and category per email
  • get_email_body — full body for a specific UID
  • get_emails_with_preview — list with short preview snippets
  • search_emails — keyword/sender/subject search
  • get_thread — full conversation thread for a UID
  • get_contact_history — all emails exchanged with an address
  • unified_inbox — merge multiple folders into one sorted view
  • export_email — clean Markdown export of an email

Sending

  • send_email — compose and send immediately
  • reply_to_email — reply to a specific UID
  • save_draft / list_drafts / send_draft / delete_draft — draft workflow
  • schedule_email / list_scheduled / cancel_scheduled — send-later scheduling

Organisation

  • mark_as_read / mark_as_unread — single message flags
  • bulk_mark_read / bulk_mark_unread / bulk_move / bulk_delete — batch operations
  • move_email / delete_email — single message operations
  • list_folders — list all IMAP folders
  • set_reminder / list_reminders / complete_reminder — follow-up reminders
  • unsubscribe_email — reads List-Unsubscribe header and acts on it
  • add_rule / list_rules / remove_rule / apply_rules — server-side rules

Intelligence

  • extract_calendar_events — parse .ics attachments and date patterns from email body
  • Priority 4–5 emails → flag as high priority in responses
  • Categories: ActionRequired, Finance, Travel, Calendar, Social, Newsletter, Updates

Attachments

  1. Always call get_attachments first — lists files with safety ratings
  2. Show the list to the user before downloading anything
  3. Only call read_attachment after the user confirms which attachment to open
  4. Never open a blocked (🚫) attachment

Read the full file on GitHub · 78 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 78 lines · 36 tokens per session scan A a8c36b571945

Subscribe to this mod's changes

mailbridge-email is a cursor rule published in the GitHub repository Creativestefan/mailbridge-mcp (2 stars, last pushed 2mo ago), licensed MIT. It adds 36 tokens to every session and 758 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.