macos-mcp
Provides tools to interact with macOS native apps: Mail, Calendar, Reminders, Notes, Messages, and Contacts, allowing AI agents to read, search, create, update, and delete data in these apps via AppleScript/JXA.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@macos-mcpShow my upcoming events for today"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
macos-mcp
Local MCP server for macOS native apps: Mail, Calendar, Reminders, Notes, Messages, and Contacts. One stdio process, zero npm dependencies, Node 20+.
Windows and Linux are not supported. All tools talk to local apps via AppleScript/JXA. No Gmail API, no OAuth, no cloud credentials.
What it is
One MCP server = one mental model: read and organize your Mac life.
Module | App | Prefix |
Mail.app |
| |
Calendar | Calendar.app |
|
Reminders | Reminders.app |
|
Notes | Notes.app |
|
Messages | Messages.app ( |
|
Contacts | Contacts.app |
|
Email is draft-only. mail_draft_email opens a visible draft in Mail.app; it never sends. You review and send manually.
Related MCP server: iMCP
Requirements
macOS with Mail, Calendar, Reminders, Notes, Messages configured
Node.js ≥ 20
Cursor (or any MCP client that supports stdio)
Install
git clone <your-repo-url> macos-mcp
cd macos-mcp
node scripts/install-mcp.jsRestart Cursor. The installer registers macos-local in ~/.cursor/mcp.json (backs up existing config to .bak).
Manual registration:
{
"mcpServers": {
"macos-local": {
"command": "node",
"args": ["/absolute/path/to/macos-mcp/bin/macos-mcp.js"]
}
}
}Signatures (mail drafts)
bash scripts/install-mail-signatures.shEdit signatures/manifest.json and signatures/*.txt locally. Real signatures are gitignored.
macOS permissions
Grant in System Settings → Privacy & Security:
Permission | Needed for |
Automation — allow Cursor to control Mail, Calendar, Reminders, Notes, Contacts | JXA/AppleScript modules |
Full Disk Access — Cursor (or Terminal during testing) | Messages module ( |
On first tool call, macOS may prompt for Automation approval per app.
Tool index
Mail (mail_*)
Tool | Description |
| List Mail accounts |
| List mailboxes (optional account filter) |
| List messages in mailbox |
| Search subject/sender |
| Full message by id |
| Save message attachments to a local directory |
| Open new compose draft (never sends) |
| Open reply draft in thread (never sends) |
| Move to All Mail |
| Move to Trash |
| Mark read/unread |
| Move to mailbox |
Calendar (calendar_*)
Tool | Description |
| List calendars |
| Events in date range |
| Search title/location |
| Full event |
| Create event (optional |
| Update event |
| Delete event |
Reminders (reminders_*)
Tool | Description |
| List reminder lists |
| List reminders in a list |
| Search name/notes |
| Create reminder |
| Mark complete |
| Delete reminder |
Notes (notes_*)
Tool | Description |
| List folders |
| List notes |
| Search title/body |
| Get note body |
| Create note |
| Append to note |
On newer macOS, note body extraction may fail; notes_get returns body_unavailable: true when scripting is restricted.
Calendar queries can be slow (several seconds per calendar) on accounts with large histories. Pass calendar to narrow the search.
Messages (messages_*)
Tool | Description |
| Thread by phone/email substring |
| Recent chats |
Requires Full Disk Access. Reads iMessage/SMS locally; no network.
Contacts (contacts_*)
Tool | Description |
| List contacts (optional: missing email only) |
| Search by name/email/phone |
| Full contact card |
| Create contact |
| Update contact |
| Delete contact |
| Import Google Contacts CSV (upsert by email) |
Architecture
bin/macos-mcp.js → entrypoint
src/mcp/server.js → JSON-RPC MCP (protocol 2024-11-05)
src/mcp/transport.js → stdio NDJSON
src/mcp/tools.js → aggregates all module tools
src/runtime/jxa.js → generic JXA runner (Application per app)
src/runtime/applescript.js → AppleScript runner + draft email
src/mail/ → Mail module
src/calendar/ → Calendar module
...JXA vs AppleScript
JXA (
osascript -l JavaScript): read/list/search most app data; genericrunJxa(appName, body, args).AppleScript:
mail_draft_email, calendar create/update/delete, and contacts create/update (JXAmakeis unreliable on modern Calendar.app and Contacts.app).
Response shapes: lists include count; domain keys vary (items, events, reminders, notes, chats, contacts). Errors throw and return MCP isError: true.
Mail.app quirks
Saved drafts may retain a leading newline Mail adds on save; the compose window is usually correct.
AppleScript does not auto-attach Mail.app signature prefs; this server appends from
signatures/files instead.
What it is NOT
No Gmail API, Microsoft Graph, or OAuth
No auto-send email
No npm publish (
private: true)No telemetry or network calls in server code
Development
npm start # runs stdio server (stderr: [macos-mcp] ready; N tools; macOS only)Test a tool via MCP client or send JSON-RPC to stdin.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/theHaruspex/macos-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server