Skip to main content
Glama
iCloud MCP Hub

iCloud MCP Hub

by lemilleur

iCloud MCP Hub

English · Русский

Self-hosted access to iCloud Calendar, Contacts and Mail from AI agents through the Model Context Protocol. Run locally over stdio or provide an HTTPS endpoint with a separate token and permissions for each user.

Author of this fork: WebCreww. License: MIT. Based on Michal Sevcik's original project. Original attribution and Git history are preserved.

Development version. The MCP backend and CLI administration work. Web registration, a personal dashboard and PostgreSQL are planned, not implemented. Real Apple accounts and the production deployment still need acceptance testing. This is an independent project, not an Apple product.

Features

Service

Read

Write, when enabled

Calendar / CalDAV

Calendars, events, recurrences, invitations

Create/update events and calendars, RSVP, delete events

Contacts / CardDAV

Contacts and groups

Create/update contacts and groups, delete contacts

Mail / IMAP + SMTP

Folders, search, messages

Send/reply/forward, drafts, flags, moves, trash, permanent deletion

Notes, modern Reminders, iMessage, Safari, Photos, Drive and Keychain are outside this project's supported app-password interfaces.

Related MCP server: icloud-mcp

Requirements

  • Node.js 22.13+; Docker uses Node.js 24.

  • Apple Account with two-factor authentication and a dedicated app-specific password.

  • For remote access: persistent storage, a domain and HTTPS.

Quick start with Docker

git clone https://github.com/lemilleur/icloud-mcp-hub.git
cd icloud-mcp-hub
cp .env.example .env
node -e "console.log(require('node:crypto').randomBytes(32).toString('hex'))"

Paste the generated key into ICLOUD_MCP_ENCRYPTION_KEY in .env, then:

docker compose up -d --build
curl http://127.0.0.1:8788/healthz

Compose publishes localhost only. Place an HTTPS proxy in front for remote access. The icloud-data named volume keeps encrypted user records; back it up separately from the encryption key. Losing the key makes stored Apple passwords unreadable.

Create users using the hosted guide. All writes are off by default for new hosted users. Enable only the required operations.

Connect an agent

For a client supporting Streamable HTTP and custom headers:

{
  "mcpServers": {
    "icloud": {
      "url": "https://icloud.example.com/mcp",
      "headers": { "Authorization": "Bearer YOUR_PERSONAL_TOKEN" }
    }
  }
}

The JSON wrapper depends on the agent. Never put tokens in URLs or chat messages. Clients requiring OAuth instead of a configurable Bearer header need an additional authorization integration; OAuth is not implemented here.

Documentation

Topic

English

Русский

Hosted setup, users, permissions, tokens

Guide

Инструкция

EasyPanel

Guide

Инструкция

Local stdio

Guide

Инструкция

Security

Policy

Безопасность

Contributing

Guide

Участие

Development

npm ci
npm run typecheck
npm run lint
npm test
npm run build
npm audit

Tests use mocked Apple services and local HTTP servers; no Apple credentials are needed. The build supports Windows, Linux and macOS. No npm package or prebuilt container has been published by this fork; build from source.

Roadmap

  • Registration, email verification, login and account recovery.

  • Dashboard for Apple connections, service permissions and tokens.

  • PostgreSQL-backed users, browser sessions and indexed token lookup.

  • Independent security review before public onboarding.

Authors and license

WebCreww maintains this fork and its security hardening. Michal Sevcik / eruveo created the original integration. Both are credited in LICENSE. Distributed under MIT, without warranty. Apple and iCloud names belong to their respective owners.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides AI assistants with read-only access to iCloud mail and calendar via IMAP and CalDAV, with opt-in write support for sending mail, managing events, and contacts.
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables an AI assistant to read and search iCloud mail, draft messages (never sent), manage calendar events with a preview/commit gate, and look up contacts via IMAP, CalDAV, and CardDAV.
      2
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables local AI agents to search and read iCloud Mail, draft and send reviewed replies, and manage calendar events via a local MCP connection.
      19
      1
      MIT