macos-native-app
Provides tools for searching Apple Mail and Photos locally, including Mail conversation and SQL queries, Mail state changes via AppleScript, Photos library fetching and media search, and Photos asset export via PhotoKit.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
macos-native-app
Search Apple Mail and Photos locally from a Bun CLI or an MCP client. Mail reads the Envelope Index and message files. Mail state changes use AppleScript. Photos searches the active library and can export selected assets through PhotoKit.
Install
On macOS, install Bun and the Xcode command line tools, then run these commands from the repository root.
bun install
bun run build:helpers
bun apps/cli/src/cli.ts helpThe executable is apps/cli/src/cli.ts. To expose it as macos-native-app on your PATH, run bun link in apps/cli. Grant the invoking application the macOS permissions required for the operations you use.
Related MCP server: Cupertino
CLI
macos-native-app help mail search_conversations
macos-native-app mail search_conversations "is:unread" --limit 5 --json
macos-native-app photos fetch_library --json
macos-native-app photos search-media "ramen in tokyo" --limit 3Use MACOS_MAIL_ROOT or MACOS_PHOTOS_ROOT to select an alternative store. A Photos export requires an output destination outside the library and an explicit byte budget. CLI preview files remain available at the printed path.
MCP
Configure your client's stdio command as the absolute path to the executable and pass mcp plus one or both app flags.
{
"command": "/absolute/path/to/macos-native-app-plugin/apps/cli/src/cli.ts",
"args": ["mcp", "--mail", "--photos"]
}Each tool name starts with its app name, including when only one app is enabled. For example, mail_execute_sql queries Mail, and photos_execute_sql queries the normalized active Photos library.
Development
Run bun run verify for formatting, lint, Swift and AppleScript checks, type checking, and fixture tests. Rebuild the helper after editing Swift with bun run build:helpers.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Read, search and manage iCloud Mail, Calendar and Contacts from Claude and other MCP clients.
MCP connector for iMessage & Contacts via a local Mac agent + Vercel relay
Email infrastructure for AI agents — send, receive, search, and reply to email over MCP.
Search, read, and write your Apple Notes from ChatGPT/Claude via a local Mac agent + MCP relay.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables MCP clients to search, read, and inspect Apple Mail on macOS, including conversations and attachments. It can create new, reply, reply-all, or forward drafts, but cannot send or modify existing messages.MIT
- AlicenseNot gradedqualityBmaintenanceProvides MCP servers to interact with Apple's Mail, Notes, Reminders, and Calendar apps on macOS, enabling search, read, and write operations with configurable permissions and a single Full Disk Access grant.6MIT
- AlicenseBqualityBmaintenanceEnables local MCP clients to search, read, triage, and send email through Apple Mail, with fast indexed search and scheduled sending.2174 PyPI37MIT
- AlicenseAqualityBmaintenanceEnables local AI agents to search and read iCloud Mail, draft and send reviewed replies, and manage calendar events via a local MCP connection.191MIT