How supermemoryai/apple-mcp works
1. This repository is a Bun/TypeScript implementation of an MCP server for macOS. Its purpose is to expose Apple-app actions to AI clients like Claude Desktop or Cursor, so the model can search, create, and modify content across Apple apps.
2. The top-level runtime entrypoint is index.ts. That file is the server bootstrap: it wires the MCP server lifecycle together and connects the exposed tools to the underlying app-specific logic.
3. tools.ts is the central capability registry. It is the layer that defines which MCP tools exist, how they are named, and how requests are routed into the domain modules. For an architecture diagram, this is the main “API surface” box between the MCP client and the rest of the codebase.
4. The utils/ directory contains the domain boundaries for Apple functionality:
- utils/messages.ts for Messages
- utils/mail.ts for Mail
- utils/notes.ts for Notes
- utils/reminders.ts for Reminders
- utils/calendar.ts for Calendar
- utils/contacts.ts for Contacts
- utils/maps.ts for Maps
- utils/web-search.ts for search-related helper behavior
These modules are where the app-specific behavior lives, and they are the main internal subsystems to show separately in a diagram.
5. The repository is structured as a thin orchestration layer over these utilities. The flow is: MCP client request -> index.ts server runtime -> tools.ts tool dispatch -> one of the utils/* domain modules -> result returned back through MCP. That makes the architecture highly modular, with each Apple domain isolated behind its own module.
6. The README shows the server is intended to support chained, multi-step assistant workflows, not just single commands. That means the system is designed for composability: one tool can read or search data, and the output can feed another tool such as sending a message, creating a reminder, or composing an email.
7. The manifest.json and apple-mcp.dxt files indicate packaging for desktop/MCP distribution. These are deployment-facing artifacts rather than business logic, and they matter because they define how the server is installed and launched inside client environments.
8. Testing is split into a small integration-focused suite under tests/. The test layout suggests the repo verifies end-to-end behavior per domain rather than unit-testing each helper in isolation:
- tests/integration/*.test.ts covers calendar, contacts, mail, maps, messages, notes, and reminders
- tests/fixtures/ and tests/helpers/ provide shared test data and utilities
- test-runner.ts is the orchestration entrypoint for executing the test suite
9. The architecture likely depends on macOS-native automation capabilities indirectly through the utility layer, since the project’s goal is to drive Apple apps. The exact mechanism is abstracted away from the entrypoint and tool registry, which keeps the MCP surface stable even if the app-control implementation changes.
10. README.md emphasizes local use through Bun and bunx, so the runtime boundary is simple: install dependencies, start the TypeScript server, and connect it to an MCP client. That makes this repo a single-process local service rather than a distributed system.
11. The main architectural boundary to diagram is therefore:
- external MCP client / desktop host
- MCP server bootstrap and tool routing
- per-domain Apple app adapters in utils/
- test harness and fixtures validating each domain
- packaging artifacts for distribution
12. In short, this is a modular MCP adapter server for macOS productivity apps, with one central dispatcher and a set of narrow domain modules. The clean separation is by Apple app domain, and the primary data flow is request/response through the MCP tool layer.
Main entry points: tools.ts Tool registry · index.ts Server bootstrap · apple-mcp.dxt DXT package · message.ts Messages
Components 17
Runtime
MCP server bootstrap and tool dispatch
- MCP client · Claude Desktop, Cursor, or another MCP consumer sending requests
- Server bootstrap · Starts the MCP server and wires lifecycle to tool handlers
index.ts - Tool registry · Defines MCP tools and routes calls into domain modules
tools.ts - Chained workflows · Read/search then compose follow-up actions across apps
Apple domains
App-specific capability modules
- Messages · Apple Messages actions and lookups
utils/message.ts - Mail · Apple Mail actions and lookups
utils/mail.ts - Notes · Apple Notes actions and lookups
utils/notes.ts - Reminders · Apple Reminders actions and lookups
utils/reminders.ts - Calendar · Apple Calendar actions and lookups
utils/calendar.ts - Contacts · Apple Contacts actions and lookups
utils/contacts.ts - Maps · Apple Maps actions and location workflows
utils/maps.ts - Web search · Search-oriented helper behavior used by tools
utils/web-search.ts
Testing
Integration test harness and shared test assets
- Test runner · Runs the integration-focused test suite
test-runner.ts - Integration tests · Domain coverage for calendar, contacts, mail, maps, messages, notes, and reminders
tests/integration - Test helpers · Shared fixtures, data, and utilities for integration tests
tests/helpers
Packaging
Distribution and launch artifacts
- DXT package · Desktop distribution package for MCP installation
apple-mcp.dxt - Manifest · Package metadata and launch configuration
manifest.json
Connections 22
- MCP client → Server bootstrap: MCP requests · Client connects to the server entrypoint
- Server bootstrap → Tool registry: registers tools · Bootstrap wires server lifecycle to the tool registry
- Tool registry → Messages: dispatches · Routes Messages-related tool calls
- Tool registry → Mail: dispatches · Routes Mail-related tool calls
- Tool registry → Notes: dispatches · Routes Notes-related tool calls
- Tool registry → Reminders: dispatches · Routes Reminders-related tool calls
- Tool registry → Calendar: dispatches · Routes Calendar-related tool calls
- Tool registry → Contacts: dispatches · Routes Contacts-related tool calls
- Tool registry → Maps: dispatches · Routes Maps-related tool calls
- Tool registry → Web search: dispatches · Routes search-oriented helper behavior
- Messages → Chained workflows: supports · Message actions can be part of longer assistant workflows
- Mail → Chained workflows: supports · Mail actions can be chained with search or read steps
- Notes → Chained workflows: supports · Notes actions can feed follow-up actions
- Reminders → Chained workflows: supports · Reminder creation often follows read/search steps
- Calendar → Chained workflows: supports · Calendar lookups can feed scheduling actions
- Contacts → Chained workflows: supports · Contacts lookups can feed message or mail actions
- Maps → Chained workflows: supports · Maps results can feed downstream assistant decisions
- Test runner → Integration tests: executes · Runs the integration suite
- Integration tests → Test helpers: uses · Shared fixtures and utilities support tests
- DXT package → Manifest: described by · Package distribution is defined by the manifest
- Manifest → Server bootstrap: launches · Manifest points the package at the server entrypoint
- DXT package → Server bootstrap: bundles · Desktop package contains the MCP server runtime