← MCP server and skill grades

iMCP

mattt/iMCP

A
Type
Repo
Scanned
Nov 12, 2026
Version
c30e84cef24e
Files read
112

iMCP is a macOS menu bar app and local MCP server that lets AI clients access personal Mac data and controls—such as Mail, Messages, Notes, Calendar, Contacts, Reminders, Shortcuts, HomeKit, and the camera, microphone, and screen—for whichever services you turn on. Because enabled services grant connected AI clients broad access to private messages, files, and actions like running Shortcuts or controlling smart-home devices, prompt injection in untrusted text read by the AI could expose sensitive personal data or trigger unwanted actions across any service you have enabled.

What it can reach

Files
Reads local databases and media files for Mail, Messages (including attachments), Notes, Call History, Voicemail, and Voice Memos after you grant folder access, and reads or updates Claude Desktop's configuration file when requested.
Network
Queries Apple Maps, Geocoding, Apple Music catalog, and Apple Weather over the internet, communicates with iMCP Helper over local loopback TLS, and checks downloads.imcp.app for signed Sparkle app updates.
Shell commands
Executes /usr/bin/shortcuts to list and run macOS Shortcuts (which can perform arbitrary actions configured in your Shortcuts app) when the Shortcuts service is turned on.
Secrets
Stores SHA-256 hashes of client credentials and HomeKit helper pairing keys in the macOS Keychain, and writes generated client credentials into Claude Desktop's config file.
System
Accesses Calendar, Contacts, Reminders, Location, Apple Music playback (via AppleScript), Phone call dialing (with system confirmation), Mail draft windows, HomeKit accessories (via iMCP Helper), and the camera, microphone, and screen when those services are enabled.

Findings

2 low
  1. LowHomeKit helper pairing key lookup falls back to the shared login keychain in Release builds

    Shared/Home/HomeHelperPairing.swift:200

    When reading the HomeKit helper pairing key, Keychain.read() checks the app-isolated Data Protection Keychain first, but on errSecItemNotFound it falls back to the legacy file-based login keychain even in signed Release builds. Unlike the Data Protection Keychain, any unprivileged program running under your macOS user account can pre-plant an item in the login keychain with a permissive access list under "iMCP Helper pairing key" (before you pair) or "iMCP pending pairing key for iMCP Helper" (which is normally empty on every connection). This allows a local process without HomeKit permissions to silently pair with iMCP Helper and control smart-home devices, or cause iMCP to adopt a rogue key.

    Fix: Restrict the file-based login keychain fallback (dataProtection = false) to #if DEBUG builds, matching KeychainClientRecordStorage.usesDataProtectionKeychain in App/Controllers/ClientCredentials.swift.

  2. LowCalendar event tools can schedule external email alarms while advertising openWorldHint as false

    App/Services/Calendar.swift:710

    Both events_create and events_update allow setting an emailAddress on event alarms (EKAlarm.emailAddress), which instructs macOS Calendar to send an email notification containing the event's title and details to that recipient when the alarm triggers. However, both tools declare openWorldHint: false in their MCP annotations—indicating they do not communicate externally—and bypass the safeguard in mail_compose, which intentionally opens unsent drafts rather than sending email automatically. If Calendar is enabled, prompt injection in content read by the AI agent could schedule an immediate event alarm to email sensitive data to an external address.

    Fix: Set openWorldHint: true on events_create and events_update (or remove support for setting EKAlarm.emailAddress if automated external email notifications are unintended).