Mac Mail MCP

io.github.wagamama由 GitHub 账号 wagamama 发布v0.5.15更新于 Oct 24, 2026

Mac Mail MCP server with full-coverage FTS5 body search for local Apple Mail.

已验证STDIO仅桌面文件与存储沟通与协作

概览

AI 生成的概览

本地 MCP 服务器,让助手以磁盘优先方式访问 Mac 上的 Apple Mail,并通过本地 FTS5 索引对邮件正文做全覆盖搜索。

可以做什么
从磁盘读取本地 Apple Mail 数据,并通过在本机构建的全覆盖 FTS5 索引搜索邮件正文。构建和刷新本地索引,包括在服务器运行时保持索引更新的监视模式。生成可选配置文件,并将索引范围与工具默认范围分开设置,使本地存储的数据与工具默认范围可以不同。在 Codex CLI 或 Claude Code 等 MCP 客户端中注册该服务器。
适用场景
当你想让 Mac 上的助手搜索和阅读本地 Apple Mail 邮件存档时使用,尤其适合需要快速全文正文搜索的大型邮箱,并且你接受为本机邮件建立本地索引。
运行要求
仅限 macOS,作为本地进程运行,从 PyPI 安装(mac-mail-mcp,例如使用 pipx 或 uvx),并以 serve 命令启动。需要先构建本地索引。未声明认证、环境变量或请求头。
安装前请注意
它会读取本地 Apple Mail 数据,并在磁盘上保存邮件内容的索引,因此索引范围设置决定哪些内容会被复制到本地。README 将该包标为 Beta。监视模式会在服务器运行期间持续读取邮件文件。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mac Mail MCP,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Apple App MCP

Workspace for MCP servers that expose local Apple app data to assistants.

Packages

PackageStatusPurpose
mac-mail-mcpBetaMac Mail MCP server with disk-first reads and full-coverage FTS5 body search.
mac-calendar-mcpAlphaRead-only Mac Calendar MCP server with indexed archive search.

Quick Start

Install the package you want:

bash
pipx install mac-mail-mcppipx install mac-calendar-mcp

Build local indexes for fast search:

bash
mac-mail-mcp index --verbosemac-calendar-mcp authorizemac-calendar-mcp index

Calendar authorization installs a small helper app with a stable macOS privacy identity. Approve its Full Calendar Access prompt once so terminal, MCP, and scheduled launchd rebuilds can use EventKit consistently. EventKit runs inside that signed app identity; the Calendar MCP does not execute the helper's script through an anonymous osascript process.

Generate optional config files:

bash
mac-mail-mcp initmac-calendar-mcp init

Index scope is configured separately from tool defaults. Use [index] settings such as Mail accounts or Calendar calendars to control what is stored locally; use [defaults] settings to control what MCP tools use when the caller omits a scope.

Codex CLI

Register one or both servers:

bash
codex mcp add mail -- mac-mail-mcp serve --watchcodex mcp add calendar -- mac-calendar-mcp serve --watch

Confirm the registrations:

bash
codex mcp listcodex mcp get mailcodex mcp get calendar

Claude Code

Create or edit .mcp.json in your project root:

json
{  "mcpServers": {    "mail": {      "command": "mac-mail-mcp",      "args": ["serve", "--watch"]    },    "calendar": {      "command": "mac-calendar-mcp",      "args": ["serve", "--watch"]    }  }}

Watch mode keeps the indexes current while the MCP servers are running. Mail uses file watching; Calendar performs a startup sync and then refreshes when Calendar's local SQLite database files change.

For global Claude Code configuration, put the same mcpServers object in ~/.claude/mcp.json.

Development

This repository is organized as a uv workspace. Each MCP server lives under packages/ with its own package metadata, source, tests, and README.

bash
git clone https://github.com/wagamama/apple-app-mcpcd apple-app-mcpuv sync
# All packagesuv run ruff check packages/mac-mail-mcp/src packages/mac-calendar-mcp/srcuv run pytest
# Individual packagesuv run --package mac-mail-mcp pytest packages/mac-mail-mcp/testsuv run --package mac-calendar-mcp pytest packages/mac-calendar-mcp/tests

Build distributions:

bash
uv build --package mac-mail-mcpuv build --package mac-calendar-mcp

Documentation

Docs are deployed with GitHub Pages from .github/workflows/docs.yml. The repository must have Pages configured once in Settings -> Pages -> Build and deployment -> Source: GitHub Actions. The workflow deploys the built artifact; it does not try to create or enable the Pages site because GitHub rejects that operation from the default workflow token in some repositories.

Acknowledgements

This codebase is derived from imdinu/apple-mail-mcp. Credit and thanks go to the original authors and contributors for the Apple Mail MCP foundation this repository builds on.

License

GPL-3.0-or-later

来源:README.md,提交 a82211a

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.5.15最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分