IA

imdinu/apple-mail-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

77 stars 35 forks 质量 84 趋势 15GPL-3.0

imdinu/apple-mail-mcp 是从 https://github.com/imdinu/apple-mail-mcp. 导入的 MCP 服务器候选。

概览

imdinu/apple-mail-mcp 是从 https://github.com/imdinu/apple-mail-mcp. 导入的 MCP 服务器候选。

概述(AI 翻译)

唯一支持全覆盖正文搜索的苹果邮件MCP服务器——在大型邮箱上可靠,AppleScript服务器会超时。8个用于阅读、搜索和提取邮件内容的工具。

请阅读文档获取完整指南。

快速启动

Claude Code(插件)

Claude桌面(一键套装)

从 最新发行 然后双击。

插件和捆绑包都通过一个薄的 启动器(UVX → PIPX → Private VenV,以可用者为准)—— 供应商代码,行为与手动安装完全相同。他们开始 服务器 --watch;授予启动应用全盘访问权 (Claude Code / Claude Desktop)这样索引就能保持新鲜。

任何MCP客户端

添加到你的MCP客户端:

构建搜索索引(推荐)

配置(可选)

它会写一个带注释的配置文件,你可以编辑设置默认值,比如你的 主账户或邮箱。每个密钥都有匹配的APPLE_MAIL_*环境 如果你更喜欢基于环境的配置,可以用 var 配置。参见 配置 完整的模式和优先规则。

工具

工具 目的
list_accounts() 列出邮箱账户

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Apple Mail MCP

The only Apple Mail MCP server with full-coverage body search — reliable on large mailboxes where AppleScript-based servers timeout. 8 tools for reading, searching, and extracting email content.

Read the docs for the full guide.

Quick Start

Claude Code (plugin)

claude plugin marketplace add imdinu/apple-mail-mcp
claude plugin install apple-mail@imdinu

Claude Desktop (one-click bundle)

Download apple-mail-mcp-.mcpb from the latest release and double-click it.

Both the plugin and the bundle run the released PyPI package via a thin launcher (uvx → pipx → private venv, whichever is available) — no vendored code, identical behavior to a manual install. They start the server with --watch; grant Full Disk Access to the launching app (Claude Code / Claude Desktop) so the index stays fresh.

Any MCP client

pipx install apple-mail-mcp

Add to your MCP client:

{
  "mcpServers": {
    "mail": {
      "command": "apple-mail-mcp"
    }
  }
}
# Requires Full Disk Access for Terminal
# System Settings → Privacy & Security → Full Disk Access → Add Terminal

apple-mail-mcp index --verbose

Configure (Optional)

apple-mail-mcp init   # writes ~/.apple-mail-mcp/config.toml

Writes a commented config file you can edit to set defaults like your primary account or mailbox. Every key has a matching APPLE_MAIL_* env var if you prefer environment-based config. See Configuration for the full schema and precedence rules.

Tools

Tool Purpose
list_accounts() List email accounts
list_mailboxes(account?) List mailboxes
get_emails(filter?, limit?) Get emails — all, unread, flagged, today, last_7_days
get_email(message_id) Get single email with full content + attachments
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "mail": { "command": "apple-mail-mcp" } } }