Context7
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Search and read Apple Mail on macOS, read-only: mailboxes, messages and threads.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
ลิงก์ไปที่ไฟล์ของผู้ทำเอง เราไม่ได้เก็บหรือแพ็กใหม่ เปิดไฟล์แล้ว Claude Desktop จะติดตั้งให้
พิมพ์คำสั่งนี้ใน Terminal
claude mcp add apple-mail -- npx -y @redpop/apple-mail-mcpวางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"apple-mail": {
"command": "npx",
"args": [
"-y",
"@redpop/apple-mail-mcp"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"apple-mail": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@redpop/apple-mail-mcp"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub redpop ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.3.0) เข้า registry 4 วันที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js, MCPB ในเครื่องด้วย
ในหมวดเดียวกันมี Context7, Codebase Memory, Exa
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
A read-only MCP server that lets an AI assistant search and read the mail in Apple Mail.
macOS only. It reads the local index that Mail.app keeps on your Mac.
claude mcp add apple-mail -- npx -y @redpop/apple-mail-mcp
Then grant Full Disk Access once with npx -y @redpop/apple-mail-mcp setup. For Claude Desktop there is a one-click bundle: see Install.
The main use is "find the mail about X":
"Find the mail from the landlord about the heating bill"
"What did Anna send me last week with an attachment?" "Show the whole thread about the contract renewal"
Four tools: list_mailboxes, search_messages, get_message, get_thread. Search covers sender, recipient, subject, free text, mailbox, date range, unread, flagged and attachments, and can also look inside message bodies. Results carry a message:// link that opens the mail in Mail.app, where Mail stores the Message-ID (not on macOS 15). Details: docs/tools.md.
docs/architecture.md for the measurements and their limits.get_thread returns a conversation; messages carry a message:// link (not on macOS 15).isError result with one plain-English sentence per error code.message:// link. Support depends on the layout of Mail's database, not on the version number: doctor checks it. Reports from other versions are welcome, see Reporting problems.get_message reports file_not_found. See docs/exchange.md.A mailbox holds secrets: codes, reset links, contracts. Read this before connecting it to a model that can also reach the internet.
The full threat model and both residual risks: SECURITY.md.
Claude Code and Cowork, as a plugin (settings in a dialog, updates with each release):
/plugin install apple-mail-mcp --marketplace redpop/apple-mail-mcp
The plugin runs the npm package below at the plugin's version. Grant Full Disk Access once with npx -y @redpop/apple-mail-mcp setup.
Claude Code without the plugin (or any client that starts a command):
claude mcp add apple-mail -- npx -y @redpop/apple-mail-mcp
npx -y @redpop/apple-mail-mcp setup
setup walks you through the Full Disk Access grant. Settings are environment variables, see Configuration.
Claude Desktop: download apple-mail-mcp- .mcpb from the latest release and open it. Claude Desktop installs the extension and shows its settings page; the settings there are the same as the environment variables. The first tool call without access opens System Settings and the Finder window for the grant.
Each release lists SHA256SUMS and carries build provenance attestations for the bundle and the helper zip.
For development, or to run unreleased changes. You need the Xcode Command Line Tools (for Swift) and an Apple Development certificate in your keychain for a build that keeps its permission across rebuilds; without one the build is ad hoc and gets its own, weaker identity.
git clone https://github.com/redpop/apple-mail-mcp.git
cd apple-mail-mcp npm ci npm run build # TypeScript -> dist/ npm run build:helper # Swift helper -> bin/Mail MCP Helper (Dev).app
Then give the helper Full Disk Access (next section) and register the server:
claude mcp add apple-mail \
-e APPLE_MAIL_HELPER_PATH="$PWD/bin/Mail MCP Helper (Dev).app" \ -- node "$PWD/dist/index.js"
APPLE_MAIL_HELPER_PATH points the server at your local build. Without it the server looks for the release bundle Mail MCP Helper.app inside the package, which only the release pipeline produces. A local build is named "Mail MCP Helper (Dev)" (Apple Development signature) or "Mail MCP Helper (Ad hoc)" (no certificate). Both use their own bundle id, so they never disturb the permission of the release app.
The build script never signs with a Developer ID certificate outside CI.
macOS protects ~/Library/Mail and offers no dialog to ask for access. You grant it once, to the helper app:
setup (from source: APPLE_MAIL_HELPER_PATH="$PWD/bin/Mail MCP Helper (Dev).app" node dist/index.js setup; from npm: npx -y @redpop/apple-mail-mcp setup). It opens System Settings at Privacy & Security > Full Disk Access, shows the helper in Finder, and waits until access works.setup prints.setup reports success and prints the command to add the server to Claude Code.Without a terminal (for example with the MCPB bundle) the first tool call that is denied opens System Settings and the Finder window by itself, once per server process, and the error message lists the same steps.
Notes:
More cases: docs/troubleshooting.md.
Set these in the environment of the server, for example with claude mcp add -e NAME=value. They cannot be changed through tool parameters. Booleans accept true, false, 1, 0. An empty value counts as not set. An invalid value does not stop the server; every tool call then fails with CONFIG_INVALID naming the setting, and nothing falls back to "allow all".
The server reads these settings once, at startup. After changing them, restart the client. In Claude Desktop, quit the app (Cmd-Q) and open it again: switching the extension off and on, or saving its settings, keeps the running server and its old settings.
| Variable | Default | Meaning |
|---|---|---|
APPLE_MAIL_ACCOUNTS | empty (all accounts) | Comma-separated allowlist. An entry matches an account's UUID, address or name, ignoring case. A name shared by two accounts matches both; use the address or UUID to pick one. |
APPLE_MAIL_INCLUDE_JUNK | false | Include mailboxes with the junk role and their subfolders. |
APPLE_MAIL_INCLUDE_TRASH | false | Include mailboxes with the trash role and their subfolders. |
APPLE_MAIL_EXCLUDE_MAILBOXES | empty | Comma-separated mailboxes to hide. An entry matches a mailbox name (exact, ignoring case) or a path with /. |
APPLE_MAIL_SHOW_SECURITY_MAILS | false | Show messages detected as security mails without withholding the body or masking the subject. |
APPLE_MAIL_BODY_SEARCH | true | Allow bodyContains in search_messages. When false, using it is an INVALID_INPUT error. |
APPLE_MAIL_BODY_INDEX | false | Build a full-text index of message bodies on disk, so bodyContains can search every message. Takes effect only with APPLE_MAIL_BODY_SEARCH. Turning it off deletes the index at the next start. |
APPLE_MAIL_MAX_RESULTS | 50 | Upper bound for the limit of a search (1 to 100). |
APPLE_MAIL_MAX_BODY_CHARS | 20000 | Upper bound for maxChars in get_message (1000 to 100000). |
APPLE_MAIL_HELPER_PATH | not set | Development only: path to a helper bundle (Dev or Ad hoc). A bundle with the release bundle id is refused. |
APPLE_MAIL_MCP_DEBUG | false | Write one line per helper request to stderr: command, duration and result code, for example apple-mail-mcp: search 42 ms ok. Never payloads or results. |
Example: only the work account, no mailbox called Archive.
claude mcp add apple-mail \
-e APPLE_MAIL_ACCOUNTS=work@example.com \ -e APPLE_MAIL_EXCLUDE_MAILBOXES=Archive \ -- npx -y @redpop/apple-mail-mcp
Without an index, bodyContains decodes messages while it searches, so one call looks at no more than the 2,000 newest candidates or 3 seconds of work. A mail from years ago can take many pages to reach. With APPLE_MAIL_BODY_INDEX=true the server keeps a full-text index of the message bodies and searches all of them in one call, with the same matches, order and matchContext as the scan.
bodyContains scans as before, and the note says how far the build is. Terms shorter than 3 characters are always scanned.ตัดมาแค่ช่วงต้น อ่านต่อใน repo