timetree-mcp
TimeTree MCP
Read, update, and monitor your TimeTree calendars from an MCP assistant.
TimeTree MCP is a Model Context Protocol
server for calendar search, events, memos, comments, and change monitoring.
It runs locally over stdio, connects directly to TimeTree over HTTPS, and requires confirm: true for
calendar writes. Keep credentials in macOS Keychain or a local password file.
npx --yes timetree-mcp@0.6.0Python 3.10+ is required even when using npm. The wrapper also requires Node.js 18+. Configure credentials and an MCP client before using calendar tools; the command above starts a stdio server, not an interactive chat interface.
Version 0.6.0 adds a read-only review prompt and static safety resource while keeping 29 tools. See the 0.6.0 release notes.
Version 0.5.0 keeps 29 tools and improves credential selection, HTTPS authentication, synchronization completeness, and monitoring state. Read-only occurrence queries and timezone diagnostics were introduced in 0.4.0. See occurrence queries and timezone diagnostics for the supported rules and validation limits, and the 0.5.0 release notes for compatibility changes.
Quick start · Client setup and validation status · Reproducible demo · Tool reference
Try asking your assistant:
“Summarize this week's family events and identify overlapping appointments.”
“Find next month's events mentioning the dentist.”
“Prepare a family dinner for Saturday at 2 pm; show me the details before creating it.”
“While this session stays open, watch the family calendar for changes.”
These are example prompts, not captured TimeTree responses. See the demo for reproducible steps and the scope of its verification.
What it does
Capability | Details |
Read and search | Calendars, date-range and keyword event queries, memos, comments, labels, members, and virtual members. |
Write with a confirmation flag | Create, update, and delete events, memos, and comments; merge-update label names and colors. |
Event details | Timed/all-day events, notes, locations, URLs, labels, attendees, alerts, checklists, virtual attendees, and existing file UUID references. |
Move one recurring occurrence | Preflight and move a supported DAILY/WEEKLY occurrence in Taipei, Tokyo, Kolkata, New York, or London, with strict timezone checks and a durable operation journal. |
Keep secrets out of tool arguments | Credentials come from the local process environment, a password file, or macOS Keychain. Session cookies and CSRF tokens remain in process memory. |
Monitor event changes | Poll every 30–3600 seconds and emit MCP notifications for added, updated, or removed events. |
Run with few dependencies | Python standard-library runtime; npm is a launcher for the included Python server. |
confirm: true is an enforced API gate. It does not prove that the assistant
asked a human for approval. Configure your client to review writes, and verify
the target calendar, event, time zone, and scope before approving a change.
Credentials are sent to TimeTree for authentication over HTTPS. Calendar content is returned to the MCP client and may be processed by its AI provider; local credential storage does not make calendar queries local-only.
This project is not affiliated with TimeTree. The official Connect App/APIwas discontinued on December 22, 2023. This server uses private TimeTree Web endpoints that may change without notice. Follow TimeTree's terms and policies.
Related MCP server: Apple Calendar MCP
Quick start
1. Check requirements
Python 3.10 or newer and a TimeTree account.
Node.js 18 or newer for the npm launcher.
A client that can launch a local stdio MCP server.
macOS for Keychain support; password files or environment variables are available on other platforms.
An IANA timezone database for occurrence moves. Python uses the system database or the optional
tzdatapackage; missing data causes rejection, not a fixed-offset fallback.
Codex, Claude Desktop, and Cursor setup examples are in the client guide, with verification status stated separately. ChatGPT desktop builds with local MCP settings can use this stdio command, according to OpenAI's documentation; the desktop UI has not been tested here. ChatGPT web custom apps/plugins need a remote MCP endpoint, which this package does not provide. See the guide for the requirements of each client.
2. Configure credentials
Password file (cross-platform): create a local file containing only your TimeTree password using a local editor. On macOS/Linux, restrict access:
chmod 600 /absolute/path/to/timetree-passwordGive the MCP process these environment variables through its client configuration:
TIMETREE_EMAIL=your-email@example.com
TIMETREE_PASSWORD_FILE=/absolute/path/to/timetree-passwordUse the appropriate file permissions on Windows. Do not put passwords in chat,
tool arguments, committed files, or shell command history. TIMETREE_PASSWORD
is also supported, but a password file avoids storing the password in client JSON.
macOS Keychain: the setup helper is available in a source checkout:
git clone https://github.com/ap311036/timetree-mcp.git
cd timetree-mcp
python3 src/timetree_mcp/credentials.py set
python3 src/timetree_mcp/credentials.py statusThe password prompt hides input. Status reports presence only, not values. After setup, the npm launcher can read these Keychain items automatically; omit the credential environment variables in client configuration. To remove the items:
python3 src/timetree_mcp/credentials.py clearConfigure a complete pair: TIMETREE_EMAIL with TIMETREE_PASSWORD or
TIMETREE_PASSWORD_FILE. A configured password takes precedence over the file.
To use Keychain, remove all three credential environment variables.
Since 0.5.0: explicit credentials must form a complete,
nonempty pair; partial settings cannot borrow the missing value from Keychain.
A complete explicit pair does not consult Keychain. timetree_status reports
the selected source and presence only; it does not read password-file contents
or Keychain secrets, and credentials_configured does not prove login will
succeed. These changes are not in npm 0.4.0. See credential resolution.
Version 0.5.0 shares one production authentication and HTTPS
implementation between the ordinary reader and guarded E2E runner: one sign-in
PUT, then one /signin CSRF GET. One exactly validated calendar-route redirect
can permit a single fixed /calendars GET; redirect bodies, cookies, and tokens
are not accepted, and a second redirect fails. Authentication is marked
successful only after a valid 2xx CSRF response. Failure/cancellation clears
local session state. The default
transport now explicitly rejects active/unknown proxies, invalid HTTPS origins,
and other redirects; response/cookie limits also apply. This changes compatibility
with environments that relied on urllib's implicit proxy behavior. npm 0.4.0
is unchanged. See shared authentication and transport.
Offline tests and independent review of shared authentication and the bounded calendar-page bootstrap are complete, with no remaining blocker in the reviewed scope. The owner reported a completed live stdio run with 8/8 planned-record checks passed. At the pre-release check, implementation hashes matched the reviewed code and the approved plan hash was unchanged. The report has no version/source/plan fingerprint, so the files actually loaded cannot be independently tied to the release artifact retroactively. This read-only result does not verify npm installation or its original entry point, GUI clients, alternate credential discovery, live writes, or notification receipt. The six fixtures were subsequently removed and checked absent; the completed test plan must not be rerun. See the reported result and scope.
3. Connect your client
For Codex with a password file:
codex mcp add timetree \
--env TIMETREE_EMAIL=your-email@example.com \
--env TIMETREE_PASSWORD_FILE=/absolute/path/to/timetree-password \
-- npx --yes timetree-mcp@0.6.0For macOS Keychain, omit both --env options. If a timetree entry already exists,
review it before replacing it. See client setup for Claude
Desktop, Cursor, executable paths, and troubleshooting.
Ask your assistant to run timetree_status, then timetree_list_calendars.
Authentication happens through the configured credentials; never paste a password
into the conversation.
Install from source
As an alternative to npm, from the checkout:
python3 -m venv .venv
source .venv/bin/activate
python -m pip install --editable .On Windows, activate with .venv\Scripts\Activate.ps1 in PowerShell.
This installs timetree-mcp and timetree-credentials. You can also run the server
without installation using python3 src/timetree_mcp/server.py.
MCP prompts and resources (0.6.0)
Version 0.6.0 adds one prompt and one resource; the 29 tools are unchanged. These interfaces require a client that supports MCP prompts or resources. See the 0.6.0 release notes for protocol compatibility.
timetree_review_schedulereturns a read-only review template for one selected calendar. Use the numericidreturned bytimetree_list_calendarsascalendar_id, not a Web URL short code.start_dateis inclusive andend_dateis exclusive, both at UTC midnight, for a range of at most 93 days. These are not local-day boundaries. It guides the assistant to check occurrence-query completeness and report uncertainty; incomplete results cannot establish that a time is free. Getting the template does not log in, query TimeTree, or write to a calendar.timetree://guides/safe-usageprovides the static TimeTree safe usage guide for clients to attach as context. It contains no credentials or calendar records, and reading it does not access credentials, calendars, or local files.
The client controls whether to use the template or attach the guide. Review the selected calendar and date range before the assistant calls calendar tools. See prompts and static guidance for arguments, UTC examples, protocol support, and verification limits.
MCP tools
Group | Tools |
Session |
|
Read |
|
Calendar metadata |
|
Events |
|
Memos |
|
Comments |
|
Labels |
|
Occurrence moves |
|
Monitoring |
|
Occurrence queries and diagnostics (0.4.0) |
|
All event, memo, comment, and label writes require confirm: true. General event
time inputs accept ISO-8601 strings or Unix milliseconds; occurrence moves require
whole seconds and an explicit numeric UTC offset matching the series timezone. List calendars and inspect returned
event identifiers before an update or deletion. Omitted labels are preserved by
label merge updates.
Empty attendees or alerts do not guarantee that other calendar members will
not receive TimeTree notifications. Comment creation and occurrence moves send
silent, but its notification effects have not been verified. Event create/update
tools do not provide a supported silent parameter. See notification limits.
Changed in 0.5.0: event create/update reject the previously
ignored silent and content parameters; comment creation rejects non-boolean
silent values such as null or "false". Omit comment silent to keep its
default true, or supply JSON true/false. This validation change is not in
npm 0.4.0; compatibility details.
New in 0.3.0 (not included in 0.2.4): move one timed DAILY/WEEKLY occurrence in
Asia/Taipei, Asia/Tokyo, Asia/Kolkata, America/New_York, or Europe/London, preserving its duration and supported
metadata. Preflight checks the exact original instant and observed parent/child
identity. The move requires confirm: true, the returned revision, and a stable
operation ID. A durable local journal blocks duplicate dispatch after interruption;
the child creation and parent exclusion are still two non-atomic writes.
See the supported scope and recovery limits before use.
Start and end must use the same supported IANA zone, dates must be from 1980
onward, and duration must be at most 24 hours. Missing timezone data, mismatched
offsets, ambiguous/nonexistent local times, and intervals crossing an offset
change are rejected. Safe local wall-clock recurrences can span DST changes;
New York/London validation checks at most 3660 local days from the series anchor
and rejects unsafe intervening occurrences. Preflight and success return the
series timezone. Synthetic tests cover these rules; no live multi-timezone
calendar writes or client UI round trips were performed for this feature.
Occurrence deletion and "this and following" edits are not provided. Do not use
a general event update/delete as a substitute for single-occurrence scope.
timetree_list_events still does not expand recurrence rules, so a date-range
query can miss later occurrences. General event tools accept raw recurrence
arrays without promising support for arbitrary recurrence rules or edit scopes.
There are no file-upload, calendar-management, or member invitation/removal tools.
See the complete tool reference for all 29 tools, every argument group,
optional field, environment setting, and unsupported operation.
Occurrence queries and timezone diagnostics
timetree_list_occurrences expands a supported timed series into dated
occurrences for a window of at most 93 days. It includes single and detached
events, with explicit reporting when unsupported rules or unsafe timezone
cases make the result incomplete. The query accepts a conservative subset of
DAILY, WEEKLY, MONTHLY, and YEARLY rules in the same five supported zones.
Monthly and yearly support is read-only; single-occurrence moves remain
limited to DAILY/WEEKLY. An incomplete or truncated result cannot establish
that a time is free. See query scope and examples.
timetree_timezone_status diagnoses timezone-data availability in the Python
environment running the server, without authentication or calendar access.
It distinguishes supported occurrence zones from other requested zones and
reports missing data with setup guidance. This check does not validate a live
calendar or make unsupported edit scopes safe.
Version 0.4.0 also uses fresh timezone-data lookups for new
occurrence query/edit validation and rejects weekly BYDAY rules that omit the series'
anchor weekday. Replaying an already recorded operation remains offline and
does not require timezone data. These additional guards are not in npm 0.3.0.
Monitoring limitations
The first poll establishes a baseline. Later changes are delivered as MCP
notifications/message; whether they are visible depends on the client. This
is polling, not instant push, and does not send email or phone notifications.
Monitoring stops when the MCP process exits and does not run as a persistent
cloud service. Restarting the process requires starting monitoring again.
Use timetree_monitor_status to inspect the last poll, errors, and notification count.
In npm 0.4.0, partial snapshots can appear as removals; verify them with a fresh read.
Since 0.5.0: only complete, validated snapshots can advance the baseline. Change batches are held in a bounded memory queue; known-unsent batches can be retried, while uncertain transport writes remain blocked without automatic replay. Status distinguishes attempts, complete checks, pending batches, and successful local transport writes. A write count is not proof of client display or user receipt. Stop/start retains state only within the same process; process restart loses it and does not resolve uncertainty. A timed-out stop keeps the existing worker and blocks a second poller. See monitoring state and delivery. These changes are not in npm 0.4.0.
Read completeness
sync_complete reports whether synchronization of the selected calendars finished;
it does not mean a result filtered by limit contains every event. Repeated or
invalid cursors and the 25-page cap are reported in incomplete_calendars, with
already-read events preserved. Upstream -425 errors preserve error_code;
failed calendars with no retrieved events appear in skipped_calendars and make
sync_complete false.
Event date-range boundaries are UTC midnight, with an inclusive start_date
and exclusive end_date; they are not local-day boundaries in the event's zone.
Keyword search covers titles, notes, locations, calendar names/IDs, and returned
label names. Memo reads have a separate updated_after filter. npm 0.4.0 does
not expose memo synchronization completeness; 0.5.0 adds
sync_complete and skipped/incomplete-calendar diagnostics to memo results.
It also treats malformed or duplicate source identities and invalid event
pages as incomplete, preserving previously accepted data instead of claiming
a complete read. Strict occurrence reads reject incomplete sources entirely.
Calendar listing and default event sync include active calendars only:
deactivated_at missing, null, or numeric 0 means active; nonzero numbers mean
inactive. Invalid types produce an error. Explicitly selecting an inactive
calendar is rejected before sync. Both the direct HTTPS and legacy browser readers
follow these rules. Treat incomplete reads as partial evidence when summarizing a
schedule or interpreting apparent removals.
Documentation and development
Client setup: configuration examples and validation status.
Demo: reproducible behavior and verification boundaries.
Usage guide: local development and monitoring.
Monitoring state and delivery: complete-read and pending-batch behavior in 0.5.0.
Local stdio verification: owner-reported 8/8 read-only fixture pass, source-binding limits, and temporary-credential workflow.
Complete tool reference: all 29 tools, supported fields, defaults, and configuration.
Occurrence queries: recurrence expansion and timezone diagnostics added in 0.4.0.
Isolated calendar tests: live-test prerequisites, current blocker, and synthetic cases.
Agent guide: tool workflow and error handling.
Companion skill: operating guidance for agents that support skills.
Publishing: npm, version checks, MCP Registry metadata, and GitHub Actions.
Discoverability: accurate project metadata and search-appearance limits.
server.json: manifest forio.github.ap311036/timetree-mcp.
npm test
npm run pack:checknpm test runs the Node wrapper/metadata tests and the Python unittest suite.
Python tests can also run independently:
env PYTHONPATH=src python3 -m unittest discover -s tests -vThe Python server lives in src/timetree_mcp/, the npm launcher in bin/, and
tests in tests/ and test/. The legacy ego-browser transport remains in
src/timetree_mcp/browser.py for compatibility; the server defaults to direct HTTPS.
License
MIT.
Available Tools
29 toolstimetree_add_event_commentA
Add a comment to a TimeTree event. Requires confirm=true. Passes TimeTree's silent flag, whose notification effects are unverified; it does not guarantee notification suppression.
Inputs: confirm (required), content (required), event_uuid (required), calendar_id (required), +1 more.
timetree_create_eventB
Create a TimeTree event. Requires confirm=true and writes to the real calendar. The silent argument is unsupported; upstream notifications may occur.
Inputs: title (required), end_at (required), confirm (required), start_at (required), +15 more.
timetree_create_memoC
Create a TimeTree memo. Requires confirm=true.
Inputs: title (required), confirm (required), calendar_id (required), url, +6 more.
timetree_delete_eventADestructiveIdempotent
Delete a TimeTree event. This cannot be undone and requires confirm=true.
Inputs: confirm (required), event_uuid (required), calendar_id (required).
timetree_delete_event_commentCDestructiveIdempotent
Delete a TimeTree event comment. Requires confirm=true.
Inputs: confirm (required), comment_id (required), event_uuid (required), calendar_id (required).
timetree_delete_memoBDestructiveIdempotent
Delete a TimeTree memo. This cannot be undone and requires confirm=true.
Inputs: confirm (required), memo_uuid (required), calendar_id (required).
timetree_get_calendar_labelsCRead-onlyIdempotent
Read all labels for a TimeTree calendar.
Inputs: calendar_id (required).
timetree_get_calendar_membersBRead-onlyIdempotent
Read active members of a TimeTree calendar, optionally including deactivated members.
Inputs: calendar_id (required), include_deactivated.
timetree_get_calendar_virtual_membersBRead-onlyIdempotent
Read virtual members of a TimeTree calendar, optionally including deactivated members.
Inputs: calendar_id (required), include_deactivated.
timetree_get_occurrence_for_editARead-onlyIdempotent
Read and validate one timed DAILY/WEEKLY occurrence in Asia/Taipei, Asia/Tokyo, Asia/Kolkata, America/New_York or Europe/London. Start/end timezones must match. Returns a calendar revision and timezone; unsafe DST/metadata is rejected and unverified parent links mark it uneditable. No calendar writes.
Inputs: event_uuid (required), calendar_id (required), occurrence_start_at (required).
timetree_keychain_statusARead-onlyIdempotent
Report whether the macOS Keychain contains TimeTree email/password items; never returns their values.
Inputs: no named parameters.
timetree_list_calendarsARead-onlyIdempotent
Read the calendars available in the authenticated TimeTree account.
Inputs: no named parameters.
timetree_list_event_commentsCRead-onlyIdempotent
Read comments attached to a TimeTree event.
Inputs: event_uuid (required), calendar_id (required).
timetree_list_eventsCRead-onlyIdempotent
Read TimeTree events overlapping a date range. This tool is read-only.
Inputs: limit, query, end_date, start_date, +1 more.
timetree_list_memosCRead-onlyIdempotent
Read category-2 TimeTree memos from a calendar.
Inputs: calendar_id (required), limit, updated_after.
timetree_list_occurrencesARead-onlyIdempotent
Read dated occurrences overlapping an explicit window of at most 93 days, including a narrow DAILY/WEEKLY/MONTHLY/YEARLY rule subset. Requires a complete selected-calendar snapshot; unsupported rules, unsafe DST, or truncation mark complete=false. Does not establish edit eligibility or prove a time is free.
Inputs: end_at (required), start_at (required), calendar_id (required), limit, +1 more.
timetree_loginA
Login to TimeTree over direct HTTPS using one complete configured credential source: explicit integration settings, environment/password file, or macOS Keychain. Partial explicit settings fail without mixing sources. Do not pass credentials as tool arguments; browser sessions are not imported.
Inputs: no named parameters.
timetree_logoutADestructiveIdempotent
Clear the in-memory TimeTree session cookie and CSRF token.
Inputs: no named parameters.
timetree_monitor_statusARead-onlyIdempotent
Read monitor activity, last successful baseline, incomplete-check errors, and pending notification states. Unknown delivery blocks automatic sending; notifications_sent counts completed transport writes, not client receipts. State is memory-only.
Inputs: no named parameters.
timetree_move_occurrenceADestructive
Move ONLY one preflighted occurrence, preserving duration/metadata. Requires confirm=true, revision and operation_id. TWO NON-ATOMIC writes: create child then exclude original. Partial/uncertain operations remain durably blocked; never retry with a new ID or delete/rollback automatically.
Inputs: confirm (required), event_uuid (required), calendar_id (required), new_start_at (required), +3 more.
timetree_occurrence_operation_statusARead-onlyIdempotent
Read the local occurrence journal by operation_id, including the last dispatch phase and known child UUID. Does not query TimeTree, resume, retry, or unlock an uncertain operation.
Inputs: operation_id (required).
timetree_start_monitorBIdempotent
Start process-local polling of complete calendar snapshots. Changes use MCP notifications/message; transport writes do not prove client receipt. Uncertain notifications remain pending without automatic retry. Baselines and pending state are memory-only.
Inputs: calendar_id, interval_seconds.
timetree_statusARead-onlyIdempotent
Read the current direct HTTPS TimeTree authentication status.
Inputs: no named parameters.
timetree_stop_monitorADestructiveIdempotent
Request stopping the monitor without clearing baselines or pending notifications. Inspect stopping and poll_in_flight: an in-progress read may still be finishing, and restart is refused until it stops.
Inputs: no named parameters.
timetree_timezone_statusARead-onlyIdempotent
Diagnose installed IANA timezone data locally without credentials, calendar reads, or writes. Checks the five supported occurrence zones by default, or one requested IANA zone. Availability does not imply that occurrence tools support the requested zone.
Inputs: timezone.
timetree_update_calendar_labelsADestructive
Merge-update TimeTree label names/colors. Requires confirm=true; omitted labels are preserved.
Inputs: labels (required), confirm (required), calendar_id (required).
timetree_update_eventCDestructive
Update selected fields of a TimeTree event. Requires confirm=true. The silent argument is unsupported; upstream notifications may occur.
Inputs: confirm (required), event_uuid (required), calendar_id (required), url, +16 more.
timetree_update_event_commentBDestructive
Update a TimeTree event comment. Requires confirm=true.
Inputs: confirm (required), content (required), comment_id (required), event_uuid (required), +1 more.
timetree_update_memoCDestructive
Update a TimeTree memo. Requires confirm=true.
Inputs: confirm (required), memo_uuid (required), calendar_id (required), url, +6 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 29 tools
Most families are distinct (events, comments, memos, labels, members, monitors, auth), but the event/occurrence split is ambiguous: timetree_list_events, timetree_list_occurrences, and timetree_get_occurrence_for_edit all read event data over a date window and an agent could easily misselect. The cluster of status tools (status, keychain_status, timezone_status, monitor_status, occurrence_operation_status) is differentiated only by long descriptions, which helps but does not fully disambiguate.
Nearly all tools use a timetree_ prefix plus snake_case verb_noun form (list_calendars, create_event, update_memo, delete_event_comment), which is predictable. The deviation is the noun-only status tools (timetree_status, timetree_keychain_status, timetree_timezone_status, timetree_occurrence_operation_status) that drop the verb, but the pattern remains readable.
At 29 tools the surface is heavy and sits at the upper end of the rubric, though the breadth is largely earned by a wide domain (events, occurrences, comments, memos, labels, members, monitoring, auth). Some thinning is possible—several status/diagnostic tools could be consolidated—but nothing is obviously redundant padding.
Core lifecycle coverage is strong: full CRUD for events, comments, and memos, plus labels update, member reads, occurrence moves, and operation recovery. However, calendar-level create/delete is absent and members are read-only (no invite/remove), leaving notable gaps in calendar administration.
Maintenance
Related MCP Connectors
Read and search Teamup Calendar events and sub-calendars; create, update, delete and undo events.
Read AddEvent calendars, events, RSVPs and subscribers; create and update calendars and events.
Calendar sync management on every plan; calendar events on Plus, Pro and Team. OAuth 2.0 + PKCE.
Read Talkspirit circles, roles and meetings; write tasks, goals and proposals, with your own rights.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables calendar management via Infomaniak's API, allowing users to list calendars, search events, and create events.68MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI clients to remotely read and edit a single iCloud Calendar account, including events, availability, and invitations, without requiring an Apple device to stay online.MIT
- AlicenseNot gradedqualityCmaintenanceEnables reading and managing Google Calendar data, including listing calendars, viewing and creating events, checking free/busy schedules, and adding events from natural language.MIT
- AlicenseBqualityBmaintenanceEnables MCP clients to access Dooray account, calendar, project, post, attachment, and messenger APIs, with read-only mode and confirmation-gated write tools.1510 npmMIT