Oreo Pudding
Allows interaction with Apple Calendar via CalDAV, enabling management of calendar events such as creating, updating, moving, listing, and retrieving events across calendars.
Provides tools to access and manage iCloud calendars, including event creation, retrieval, updates, and listing of calendars through the CalDAV protocol.
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., "@Oreo Puddingshow my next 3 events"
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.
๐ฎ Oreo Pudding: Apple Calendar CalDAV MCP Server
An enterprise-grade Model Context Protocol (MCP) server built with Bun that connects LLM clients (such as Claude Desktop and Poke at poke.com) to Apple Calendar (iCloud) via CalDAV. Designed with strict Domain-Driven Design (DDD), CQRS, and Gang of Four (GoF) design patterns.
๐ Key Features
โก Native CalDAV Protocol Sync: Full support for listing calendars, retrieving events, creating, moving/rescheduling, and updating events directly on Apple iCloud servers.
๐ Auto-Discovery & Intelligent Routing: Automatically resolves iCloud user principals, calendar-home-sets, and lists calendars under the hood. For commands missing a calendar path, it employs an intelligent scoring heuristic to automatically pick the most suitable default calendar (e.g., scoring
HomeorPersonalhighest).โฐ Timezone-Aware Parser: Native handling of timezone normalizations. Defaults to
America/Chicago(configurable). Correctly parses floating/local ISO-8601 datetimes without timezone indicators inside the context of the target IANA timezone using TimeZoneHelper, preventing incorrect offset shifts.๐จ Stale-While-Revalidate (SWR) Cache: Low-latency responses utilizing in-memory SWR caching for both calendar lists (48h TTL) and events (5m TTL) inside CalDavRepository. Spawns asynchronous background fetches on cache hits to guarantee fresh data without blocking execution.
๐ Dual Transport Mode: Supports both standard I/O streams (
stdio) for local integration and Web Standard HTTP SSE (text/event-stream) for remote/network hosting.๐ฅ๏ธ Embedded Interactive Testing Dashboard: Built-in modern glassmorphic Vue 3 testing dashboard served on
/dashboard(when running in SSE mode). Includes a live JSON-RPC logger to inspect commands and events in real time.๐ก๏ธ Bearer Token Authorization: Option to secure the SSE server using static Bearer token authorization headers.
๐ ๏ธ Architecture Overview
The codebase is built on clean architectural principles, enforcing a strict inward dependency flow:
Interface โ Application โ Infrastructure โ Domain
For a deep dive into the patterns used, check out the Architecture Documentation.
Design Patterns Utilized
DDD (Domain-Driven Design): Pure domain entity layers with strict invariants (
Tool,ToolId,ToolName,ToolDescription,ToolSchema).CQRS: Isolation of state-mutating commands (e.g.,
CreateCalendarEventCommand,MoveCalendarEventCommand) from read-only queries (e.g.,RetrieveCalendarEventsQuery,ListCalendarsQuery).Mediator: Dispatching of CQRS messages via a decoupled Mediator bus using Mediator.
Strategy: Abstract tool strategy executors allowing customizable behavior per registered tool.
Observer (Domain Events): Broadcast of domain lifecycle occurrences (e.g., event saved, event moved) through an asynchronous event dispatcher.
Decorator: Logging, performance timing, and schema validation cleanly wrapped around use-case handlers.
โ๏ธ Environment Configuration
Create a .env file in the root directory (Bun loads this automatically):
# iCloud credentials
APP_ID="your-apple-id@icloud.com"
APP_PASS="xxxx-xxxx-xxxx-xxxx" # iCloud App-Specific Password
# Optional: Server configuration for SSE mode
PORT=3000
BEARER_TOKEN="your-secure-bearer-token"iCloud Credentials: For security reasons, you must not use your primary iCloud password. You must generate an App-Specific Password from your Apple ID account page:
Go to appleid.apple.com and sign in.
In the Sign-In and Security section, select App-Specific Passwords.
Click Generate an app-specific password and follow the instructions.
Copy the generated password (formatted as
xxxx-xxxx-xxxx-xxxx) and paste it asAPP_PASS.
๐ฆ Installation & Running
Ensure you have Bun installed.
1. Install Dependencies
bun install2. Run in Standard I/O (stdio) Mode (Default)
This mode is ideal for local integrations (e.g., Claude Desktop):
bun run index.ts3. Run in SSE (Server-Sent Events) Mode
Starts an HTTP server on the designated PORT:
PORT=3000 bun run index.ts๐ฅ๏ธ Interactive Testing Dashboard
When running in SSE Mode, you can access the visual testing dashboard.
Start the server:
PORT=3000 bun run index.tsOpen your browser and navigate to
http://localhost:3000/dashboard(orhttp://localhost:3000/dashboard.html).Set your Authorization Header using your
BEARER_TOKEN(if configured) or connect directly.Interact with the server: list calendars, view event timelines, create new events, and view live JSON-RPC request/response payload logs in the terminal console.
๐ ๏ธ Available MCP Tools
The server exposes the following tools to MCP-compatible client applications (configured in index.ts):
1. list_calendars
Lists all available calendars for the authenticated iCloud account.
Arguments: None
2. retrieve_calendar_events
Retrieves events from the primary/default calendar within a specified date range.
Arguments:
startDate(string, optional): Start datetime in ISO 8601 format. If omitted, defaults to the start of the current day.endDate(string, optional): End datetime in ISO 8601 format. If omitted, defaults to 24 hours fromstartDate.timezone(string, optional): IANA timezone identifier (e.g.,America/Chicago). Output datetimes will be formatted in this timezone.
3. retrieve_all_calendar_events
Retrieves events across all calendars for the account in a single query.
Arguments:
startDate(string, optional): ISO 8601 start date.endDate(string, optional): ISO 8601 end date.omit(array of strings, optional): Calendar names or paths to exclude from retrieval.timezone(string, optional): IANA timezone identifier.
4. create_calendar_event
Creates a new event on your calendar.
Arguments:
title(string, required): Title of the event.startDate(string, required): ISO 8601 start date/time (e.g.,2026-06-07T15:00:00).endDate(string, required): ISO 8601 end date/time.description(string, optional): Description or notes.location(string, optional): Location name.url(string, optional): URL linked to the event.timezone(string, optional): IANA timezone identifier. Defaults toAmerica/Chicago. Used to parse inputs if they lack offsets.
5. update_calendar_event
Updates fields on an existing event.
Arguments:
eventId(string, required): The unique event ID (UID).title(string, optional): New title.description(string, optional): New description.location(string, optional): New location.url(string, optional): New URL.startDate(string, optional): New ISO 8601 start date/time.endDate(string, optional): New ISO 8601 end date/time.timezone(string, optional): Target timezone.
6. move_calendar_event
Quickly reschedules an existing event to a new start date/time (optionally keeping the same duration).
Arguments:
eventId(string, required): The unique event ID (UID).startDate(string, required): New ISO 8601 start date/time.endDate(string, optional): New ISO 8601 end date/time. If omitted, the event's original duration is preserved.calendarPath(string, optional): The calendar path where the event is located. If omitted, the server will auto-discover the correct calendar.timezone(string, optional): Target timezone.
๐ค Claude Desktop Integration
To add this server to the Claude Desktop App, edit your configuration file:
Mac:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Add the following configuration block under mcpServers:
{
"mcpServers": {
"apple-calendar": {
"command": "bun",
"args": [
"run",
"/absolute/path/to/oreo-pudding/src/index.ts"
],
"env": {
"APP_ID": "your-apple-id@icloud.com",
"APP_PASS": "xxxx-xxxx-xxxx-xxxx"
}
}
}
}Make sure to replace /absolute/path/to/oreo-pudding with the actual path to this repository on your machine.
๐ Poke Integration (poke.com)
This server is designed to work seamlessly with Poke (available at poke.com).
To integrate with Poke:
Run the server in SSE mode on a publicly accessible URL or expose it using a port forwarding/tunneling service (e.g., ngrok):
PORT=3000 bun run index.tsEnsure you have set the
BEARER_TOKENin your.envfile to secure the endpoint.In Poke's MCP configuration, add a new SSE connection and supply your server's
/sseendpoint URL (e.g.,https://your-deployed-domain.com/sseorhttp://localhost:3000/sse).Provide the
BEARER_TOKENas aBearer <token>inside Poke's connection Authorization headers.
๐งช Development & Quality Assurance
Linting
We enforce clean styling rules using ESLint with strict JSDoc/TSDoc validation:
# Run lint check
bun run lint
# Auto-fix linting issues
bun run lint:fixTesting
We use Bun's native test runner. Tests are written under tests/ and cover event serialization, timezone parsing, CalDAV operations, and Mediator routing:
bun testExtending the Server
When adding new features or tools, please follow the guidelines specified in the Developer & Agent Guidelines to maintain the integrity of our DDD and CQRS architecture.
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
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/div0ky/oreo-pudding'
If you have feedback or need assistance with the MCP directory API, please join our Discord server