Timetree MCP README

The full upstream README, mirrored for reference. Install config, tool schemas, adoption signals and our own overview live on the Timetree MCP listing page.

TimeTree MCP

Read, update, and monitor your TimeTree calendars from an MCP assistant.

English · 繁體中文 · 日本語

npm CI License: MIT Node.js >=18 Python >=3.10 MCP Badge

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.

Terminal
npx --yes timetree-mcp@0.6.0

Python 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

CapabilityDetails
Read and searchCalendars, date-range and keyword event queries, memos, comments, labels, members, and virtual members.
Write with a confirmation flagCreate, update, and delete events, memos, and comments; merge-update label names and colors.
Event detailsTimed/all-day events, notes, locations, URLs, labels, attendees, alerts, checklists, virtual attendees, and existing file UUID references.
Move one recurring occurrencePreflight 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 argumentsCredentials come from the local process environment, a password file, or macOS Keychain. Session cookies and CSRF tokens remain in process memory.
Monitor event changesPoll every 30–3600 seconds and emit MCP notifications for added, updated, or removed events.
Run with few dependenciesPython 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.

[!IMPORTANT] This project is not affiliated with TimeTree. The official Connect App/API was discontinued on December 22, 2023. This server uses private TimeTree Web endpoints that may change without notice. Follow TimeTree's terms and policies.

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 tzdata package; 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:

bash
chmod 600 /absolute/path/to/timetree-password

Give the MCP process these environment variables through its client configuration:

text
TIMETREE_EMAIL=your-email@example.com
TIMETREE_PASSWORD_FILE=/absolute/path/to/timetree-password

Use 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:

bash
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 status

The 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:

bash
python3 src/timetree_mcp/credentials.py clear

Configure 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:

bash
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.0

For 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:

bash
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_schedule returns a read-only review template for one selected calendar. Use the numeric id returned by timetree_list_calendars as calendar_id, not a Web URL short code. start_date is inclusive and end_date is 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-usage provides 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

GroupTools
Sessiontimetree_login, timetree_logout, timetree_status, timetree_keychain_status
Readtimetree_list_calendars, timetree_list_events, timetree_list_memos, timetree_list_event_comments
Calendar metadatatimetree_get_calendar_labels, timetree_get_calendar_members, timetree_get_calendar_virtual_members
Eventstimetree_create_event, timetree_update_event, timetree_delete_event
Memostimetree_create_memo, timetree_update_memo, timetree_delete_memo
Commentstimetree_add_event_comment, timetree_update_event_comment, timetree_delete_event_comment
Labelstimetree_update_calendar_labels
Occurrence movestimetree_get_occurrence_for_edit, timetree_move_occurrence, timetree_occurrence_operation_status
Monitoringtimetree_start_monitor, timetree_monitor_status, timetree_stop_monitor
Occurrence queries and diagnostics (0.4.0)timetree_list_occurrences, timetree_timezone_status

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

Terminal
npm test
npm run pack:check

npm test runs the Node wrapper/metadata tests and the Python unittest suite. Python tests can also run independently:

bash
env PYTHONPATH=src python3 -m unittest discover -s tests -v

The 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.