Mailbridge for Apple Mail

Mailbridge for Apple Mail

Enables using Apple Mail accounts to search, read, manage, draft, and send messages from Codex or Claude Code locally.

Category
访问服务器

README

Mailbridge for Apple Mail

CI CodeQL Latest release License: MIT

Use every account already configured in Apple Mail from Codex or Claude Code—locally, without giving another service your email password.

Mailbridge can search and read mail, manage message state, create drafts, and send attachment-free messages and replies. Direct MCP registrations are read-only by default. The bundled Codex and Claude Code plugins use prompted mode, which requires exact-content client confirmation and fails closed when the client cannot render it.

Install

Mailbridge requires macOS, a working account in Mail.app, and Node.js 22 or 24. The marketplace payload is prebuilt, so npm and a source checkout are not required.

Codex

codex plugin marketplace add pooyanmajd/pmtechdev-mcp-plugins --ref v0.4.2
codex plugin add mailbridge-mcp@pmtechdev

Claude Code

claude plugin marketplace add pooyanmajd/pmtechdev-mcp-plugins@v0.4.2
claude plugin install mailbridge-mcp@pmtechdev

Start a new Codex task after installation. In Claude Code, run /reload-plugins, then use /mcp to confirm the bundled mailbridge server is connected.

Try:

Read my latest three Inbox messages across configured accounts.

Reply to the latest message from Alex and say thanks.

Why Mailbridge

Capability Mailbridge for Apple Mail Direct IMAP integration
Uses accounts already configured in Mail.app Yes Usually requires separate account setup
Gives the connector provider passwords or OAuth tokens No Usually
Works across Mail.app providers through one local connection Yes Depends on configuration
Read-only default for direct MCP registration Yes Varies
Exact outbound content confirmed before successful sends in bundled plugins Yes; unsupported prompts fail closed Varies
Platform support macOS Varies

Mailbridge uses local STDIO and Apple Events. It does not read Mail's private database, request Full Disk Access, run a hosted relay, or include telemetry. Selected mail and tool results may still be sent to the model provider configured in the host you choose, so only connect it to a trusted Codex, Claude Code, or MCP host. Read the security model before connecting sensitive accounts.

PMTechDev MCP & Plugins

This repository is also an expandable monorepo, reusable development kit, and Codex and Claude Code marketplace for local-first Model Context Protocol servers and plugins maintained by PMTechDev.

Each integration remains independently buildable under plugins/, while shared safety primitives live under packages/. New integrations start from a tested scaffold instead of rebuilding packaging, policy, CI, and MCP boilerplate from scratch.

Available plugins

Plugin Purpose Platforms Status
Mailbridge for Apple Mail Search, read, manage state, create drafts, and explicitly send through accounts configured in macOS Mail. macOS 0.4.2

Mailbridge remains read-only for direct registrations by default. The bundled Codex and Claude Code plugins use client-prompted sending for attachment-free new messages and replies; existing full configurations do not gain send authority.

Repository layout

pmtechdev-mcp-plugins/
├── .agents/plugins/marketplace.json  # Codex marketplace catalog
├── .claude-plugin/marketplace.json   # Claude Code marketplace catalog
├── packages/
│   └── mcp-kit/                      # Reusable safety and queue primitives
├── plugins/
│   └── mailbridge-mcp/               # Independent MCP + Codex/Claude plugin payload
├── templates/
│   └── mcp-plugin/                   # Starter copied by the scaffolder
└── scripts/
    ├── create-plugin.mjs             # Generates and registers a plugin
    └── validate-workspace.mjs        # Validates catalog/package invariants

Install from a moving marketplace snapshot

The pinned release commands above are recommended. To track the current marketplace snapshot instead, use the following commands.

Codex

Install the current marketplace snapshot:

codex plugin marketplace add pooyanmajd/pmtechdev-mcp-plugins --ref main
codex plugin add mailbridge-mcp@pmtechdev

For the reviewed, immutable release, pin the marketplace to Mailbridge 0.4.2 instead:

codex plugin marketplace add pooyanmajd/pmtechdev-mcp-plugins --ref v0.4.2
codex plugin add mailbridge-mcp@pmtechdev

These commands target Codex CLI. Plugins can also be installed for Codex in the ChatGPT desktop app; they are not currently available in the Codex IDE extension. See the official Codex plugin documentation for supported surfaces. Start a new Codex task or CLI session after installing or updating a plugin so its skills and MCP tools are loaded.

Claude Code

Install the immutable release through the native Claude Code marketplace and plugin manifests:

claude plugin marketplace add pooyanmajd/pmtechdev-mcp-plugins@v0.4.2
claude plugin install mailbridge-mcp@pmtechdev

Run /reload-plugins, then use /mcp to confirm the bundled mailbridge server is connected. The Claude registration resolves dist/cli.js through CLAUDE_PLUGIN_ROOT and starts in prompted mode, which fails closed unless Claude Code can display and the user accepts the exact-content send form.

The immutable 0.4.2 release includes the plugin tarball, SHA-256 checksums, a CycloneDX SBOM, and signed GitHub provenance attestations.

Only install Mailbridge in a trusted Codex, Claude Code, or MCP host: the launching host receives macOS Automation authority for Mail. The marketplace configuration uses prompted mode and direct registrations remain read-only by default; selected mail and tool results may still be sent to the model provider configured in that host. Review the Mailbridge security model before connecting sensitive accounts.

Develop the workspace

Requirements are Node.js 22 or 24 and npm. These are the supported LTS lines tested on macOS.

git clone https://github.com/pooyanmajd/pmtechdev-mcp-plugins.git
cd pmtechdev-mcp-plugins
npm ci
npm run check

The root check enforces coverage thresholds, builds every workspace, validates all plugin and skill metadata, installs the real Mailbridge tarball in a temporary directory, performs MCP initialization plus tools/list without invoking Mail, validates committed plugin bundles, and checks marketplace consistency.

Create the next plugin

npm run create:plugin -- example-mcp
npm install
npm run check -w example-mcp
npm run validate:workspace

The scaffolder normalizes the name, copies the starter, creates valid Codex, Claude Code, and MCP manifests, adds a safe status tool and skill, and appends complete entries to both marketplace catalogs. Replace the generated placeholder scope with the real integration design before publication.

Reusable primitives are exported by @pmtechdev/mcp-kit:

  • minimal subprocess environments that avoid inheriting unrelated secrets;
  • UTF-8 JSON request byte bounds;
  • bounded FIFO serialization for non-idempotent operations.

Add only broadly reusable, well-tested infrastructure to the kit. Integration-specific policy stays inside its plugin.

Design rules

  • Local STDIO is the default transport. Remote services must be explicit and documented.
  • Read-only or least-privilege behavior is the default.
  • Connected content is untrusted data, not agent instructions.
  • Secrets never belong in process arguments, logs, committed fixtures, or generated artifacts.
  • Every search, body, attachment, subprocess, queue, and response is bounded.
  • Mutations require explicit tools, clear annotations, deterministic tests, and safe retry semantics.
  • Each plugin remains independently packageable and owns its runtime-specific documentation.

See Contributing, Releasing, Support, Security, Privacy, and Terms. The workspace and bundled plugins are available under the MIT License.

Copyright © 2026 PMTechDev / Pooyan Majd.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选