Skip to main content
Glama
ap311036
by ap311036

TimeTree MCP

TimeTree MCP 是一個非官方的 Model Context Protocol server,可透過 HTTPS 存取 TimeTree 行事曆。預設使用 Python direct client,不會啟動瀏覽器;browser transport 僅保留作為相容備援。session cookie 與 CSRF token 只存在 MCP process 記憶體中。

重要: TimeTree 官方 Connect App/API 已終止。本專案使用 TimeTree Web 的非公開 endpoint,服務改版時可能失效。請自行評估風險並遵守 TimeTree 的條款與政策。

功能

  • 讀取 calendars、events、memos、comments、labels 與 members。

  • 建立、更新、刪除 events 與 memos。

  • 新增、更新、刪除 event comments。

  • 以 merge 方式更新 calendar labels。

  • 背景監控 calendar 變更並發送 MCP notifications。

  • 所有寫入操作都要求明確傳入 confirm: true

  • 不把 credentials 放進 MCP tool arguments,authenticated session 只保存在記憶體。

Related MCP server: TimeTree MCP Server

需求

  • Python 3.10 或更新版本。

  • TimeTree 帳號。

  • macOS 才能使用 Keychain helper;其他平台可使用環境變數或 password file。

安裝

git clone <repository-url>
cd timetree-mcp
python3 -m venv .venv
source .venv/bin/activate
python -m pip install --editable .

Runtime 只使用 Python standard library。安裝後會提供 timetree-mcptimetree-credentials 指令。

使用 NPM wrapper

NPM wrapper 需要 Node.js 18+ 與 Python 3.10+;它會啟動 package 內附的 Python MCP server,並轉發 MCP 的 stdin/stdout:

npx --yes timetree-mcp

也可以全域安裝:

npm install --global timetree-mcp
timetree-mcp

設定 credentials

macOS 建議使用 Keychain。設定時密碼只會在終端隱藏輸入,不會進入 shell history、MCP arguments 或 source code:

./scripts/setup_timetree_keychain.sh
timetree-credentials status

MCP 會自動讀取 Keychain 中的 email/password。status 只回報是否存在,不會 回傳值;清除兩個 Keychain item:

timetree-credentials clear

若不使用 Keychain,也可使用環境變數:

export TIMETREE_EMAIL='your-email@example.com'
export TIMETREE_PASSWORD='your-password'

更建議使用權限為 600 的 password file:

chmod 600 /absolute/path/to/timetree-password
export TIMETREE_EMAIL='your-email@example.com'
export TIMETREE_PASSWORD_FILE='/absolute/path/to/timetree-password'

註冊到 Codex

/absolute/path/to/timetree-mcp 替換成 checkout 位置。若已存在同名 timetree server,請先移除再重新加入:

codex mcp remove timetree
codex mcp add timetree \
  --env TIMETREE_EMAIL=your-email@example.com \
  --env TIMETREE_PASSWORD_FILE=/absolute/path/to/timetree-password \
  -- python3 /absolute/path/to/timetree-mcp/src/timetree_mcp/server.py

不要把實際 password 放在 shell history、MCP tool arguments、README 或 source code。

使用 NPM wrapper 註冊時,把 server command 改成:

codex mcp add timetree \
  --env TIMETREE_EMAIL=your-email@example.com \
  --env TIMETREE_PASSWORD_FILE=/absolute/path/to/timetree-password \
  -- npx --yes timetree-mcp

MCP tools

登入與讀取

  • timetree_logintimetree_logouttimetree_status

  • timetree_keychain_status

  • timetree_list_calendarstimetree_list_eventstimetree_list_memos

  • timetree_list_event_comments

  • timetree_get_calendar_labelstimetree_get_calendar_memberstimetree_get_calendar_virtual_members

寫入

  • timetree_create_eventtimetree_update_eventtimetree_delete_event

  • timetree_create_memotimetree_update_memotimetree_delete_memo

  • timetree_add_event_commenttimetree_update_event_commenttimetree_delete_event_comment

  • timetree_update_calendar_labels

時間可傳 ISO-8601 字串或 Unix milliseconds;所有寫入工具都必須明確傳 confirm: true。成員邀請/移除 endpoint 尚未驗證,因此刻意未加入。

若某些舊 calendar 的 TimeTree sync endpoint 回傳 -425,events 查詢會跳過 該 calendar,並在 skipped_calendars 欄位回報,不會讓其他可讀 calendars 整批失敗。

背景監控

  • timetree_start_monitor:啟動背景 polling,間隔 30–3600 秒。

  • timetree_monitor_status:查看監控狀態、上次 polling、錯誤與通知數。

  • timetree_stop_monitor:停止監控。

首次 polling 只建立 baseline;之後偵測到新增、修改、移除時,server 會送出 MCP notifications/message。監控依附於 MCP process,client 結束後也會停止。

專案結構

src/timetree_mcp/          Python package 與 MCP server
bin/                       NPM wrapper launcher
scripts/                   本機設定輔助腳本
tests/                     standard-library unittest 測試
test/                      NPM wrapper 測試
.github/workflows/ci.yml   Continuous integration

測試

python3 -m unittest discover -s tests -v
npm test

舊的 ego-browser transport 保留在 src/timetree_mcp/browser.py 作為相容備援, 但 server 預設不會載入它。

License

本專案採用 MIT License

Install Server
A
license - permissive license
B
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Calendar API for AI agents: events, availability, Google/Microsoft setup, scheduling, and iCal.

  • Publish public calendars and events others subscribe to: RSVPs, feeds and add-to-calendar links.

  • Connect your Oura Ring account securely in minutes. Enable authorized access to your sleep, activi…

View all MCP Connectors

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/ap311036/timetree-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server