Skip to main content

MCP server for TickTick — task and notes access via Model Context Protocol.

Project description

tick-mcp

PyPI Python License: MIT

MCP server for TickTick — manage tasks, projects, habits, tags, focus stats, and more through the Model Context Protocol.

71 tools exposed over MCP, covering both the official TickTick Open API (V1) and the unofficial web API (V2) for features not yet available publicly.


Features

Category Tools
Tasks create_task · update_task · complete_task · reopen_task · delete_task · get_task_detail · get_project_tasks · get_inbox · get_all_tasks
Batch batch_create_tasks · batch_update_tasks · batch_delete_tasks · move_tasks
Projects create_project · update_project · delete_project · get_project_detail · list_projects
Query / Search workspace_map · query_projects · query_folders · query_tasks · query_notes · query_agenda · query_task_history · list_query_presets · save_query_preset · run_query_preset · delete_query_preset
Views tasks_of_today · events_of_today · week_agenda · week_overview · upcoming_tasks · overdue_tasks · stale_tasks · priority_dashboard
Verified Actions create_subtask · verified_create_project · verified_set_subtask_parent · verified_move_tasks · verified_batch_move · verified_assign_project_folder
Tags create_tag · update_tag · rename_tag · merge_tags · delete_tag · list_tags
Habits create_habit · update_habit · delete_habit · list_habits · habit_checkin · get_habit_records · list_habit_sections
Kanban list_columns · manage_columns
Folders list_project_folders · manage_project_folders
Focus get_focus_stats
History get_completed_tasks · get_deleted_tasks
Subtasks set_subtask_parent
Sync / Stats full_sync · get_user_status · get_productivity_stats
Utilities ticktick_guide · check_v2_availability · build_recurrence_rule · build_reminder

Query / Search highlights

  • Structured task filtering — folders, projects, tags, parent/subtask shape, reminders, recurrence, checklist presence, and priorities.
  • Time-aware agenda access — query by date range, datetime range, and HH:MM time windows without forcing a full sync first.
  • Grep-like matching — substring search, any / all / phrase keyword modes, regex, and exclusion regex across chosen fields.
  • Targeted note search — notes are fetched only from NOTE projects in scope instead of materializing the whole workspace.
  • Workspace navigation — folder/project map with optional active task counts to inspect the account structure before acting.
  • Ready-made operational views — day view, week window, upcoming due tasks, overdue/stale detection, and priority summaries built on the same filter engine.
  • Saved query presets — persist reusable task/note/agenda/history/week-overview queries and execute them later without rebuilding the filter set.

Verified workflow helpers

  • Subtask-safe creationcreate_subtask creates the child, links it, then verifies parentId and childIds.
  • Move verificationverified_move_tasks re-reads destination projects and confirms every moved task is actually there.
  • Folder assignment verificationverified_assign_project_folder verifies the persisted groupId through V2 sync, not through the misleading V1 response.

Intent-first discovery

ticktick_guide() supports both technical categories and real user goals.

  • Category-oriented:
    • ticktick_guide(category="tasks")
  • Intent-oriented:
    • ticktick_guide(intent="know_what_to_do_today")
    • ticktick_guide(intent="plan_the_week")
    • ticktick_guide(intent="find_a_note")
    • ticktick_guide(intent="reorganize_projects")
    • ticktick_guide(intent="clean_up_tasks")

Package Layout

src/tick_mcp/
├── mcp_api/
│   ├── core.py          # shared FastMCP instance, catalog, helpers
│   ├── utilities.py     # discovery + helper tools
│   ├── projects.py      # project CRUD tools
│   ├── tasks_read.py    # inbox / project / task reads
│   ├── tasks_write.py   # task mutation tools
│   ├── tasks_batch.py   # batch + structural task operations
│   ├── read.py          # high-level query/search, views, and saved presets
│   ├── verified.py      # safe wrappers with read-back verification + rollback hints
│   ├── folders.py       # folders + kanban columns
│   ├── tags.py          # tag tools
│   ├── habits.py        # habit tools
│   ├── history.py       # completed / deleted history
│   └── stats.py         # focus and user/productivity stats
├── services/
│   └── query.py         # reusable filtering, range and grep-like planning
├── client_api/
│   ├── transport.py     # auth, sessions, low-level V1/V2 HTTP helpers
│   ├── projects.py      # projects, folders, columns, tags
│   ├── tasks.py         # tasks, sync, batch, history
│   ├── habits.py        # habits and check-ins
│   └── stats.py         # focus and user/productivity stats
├── client.py            # stable public facade over client_api/*
├── models.py            # pydantic contracts
├── server.py            # stable public import surface for the MCP server
└── main.py              # CLI entrypoint

Installation

# recommended — installs as a standalone tool
uv tool install tick-mcp

# or via pip
pip install tick-mcp

This provides two commands:

Command Description
tick-mcp Start the MCP server (stdio transport)
tick-admin CLI helper — session refresh, diagnostics

Configuration

1. Environment variables

Copy the example file and fill in your tokens:

cp src/tick_mcp/.env.example src/tick_mcp/.env
Variable Required Description
TICKTICK_API_TOKEN Yes V1 Open API bearer token (PAT or OAuth2)
TICKTICK_SESSION_TOKEN No V2 session cookie for extended features

Getting a V1 token (simplest):

  1. Open TickTick → Settings → Integrations → API
  2. Copy the displayed Personal Access Token

Getting a V2 session token:

  1. Log in to ticktick.com in your browser
  2. DevTools → Application → Cookies → copy the t cookie value

Or use the CLI to auto-login:

tick-admin session refresh

2. Server config

Runtime settings live in src/tick_mcp/config.yaml — API endpoints, timeouts, and user-agent are all externalised there.

MCP Client Integration

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or ~/.config/Claude/claude_desktop_config.json (Linux):

{
  "mcpServers": {
    "ticktick": {
      "command": "tick-mcp",
      "env": {
        "TICKTICK_API_TOKEN": "your-v1-token",
        "TICKTICK_SESSION_TOKEN": "your-v2-token"
      }
    }
  }
}

VS Code (GitHub Copilot)

Add to .vscode/mcp.json:

{
  "servers": {
    "ticktick": {
      "command": "tick-mcp",
      "env": {
        "TICKTICK_API_TOKEN": "your-v1-token",
        "TICKTICK_SESSION_TOKEN": "your-v2-token"
      }
    }
  }
}

Other MCP clients

Any client that supports the stdio transport can launch tick-mcp as a subprocess.

Development

# Clone & install dev deps
git clone https://github.com/kpihx/tick-mcp.git
cd tick-mcp
uv sync --group dev

# Unit tests (155 selected unit tests, no network)
uv run pytest

# Live tests against real TickTick API (requires tokens in .env)
uv run pytest -m live

Test suite

  • 155 selected unit tests — pure logic, mocked HTTP, zero network
  • 12 live integration scripts — 508 assertions against the real TickTick API

License

MIT © 2025 Ivann KAMDEM

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tick_mcp-0.1.0.tar.gz (60.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tick_mcp-0.1.0-py3-none-any.whl (77.6 kB view details)

Uploaded Python 3

File details

Details for the file tick_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: tick_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 60.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"25.10","id":"questing","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for tick_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a3103b4c7ff350159055f29957dbbebb87512e2b5ceeb11f50e4285827295997
MD5 5439bbbe193060bea3a2fa9ffccf120b
BLAKE2b-256 4bd670dec01fa63baaee53fdc0bde572e97e04fa17c813a3c93c977fb24bcae3

See more details on using hashes here.

File details

Details for the file tick_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tick_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 77.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"25.10","id":"questing","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for tick_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5d85c41948d9456475e9f5f0417c5afbfdff06c03c209fb42ee65f1578207b80
MD5 75709b8ad178dc6478d9c34980c569ca
BLAKE2b-256 9177ff87096556ccc59c872ee02969647b40cd85646457d562b3231eda04b789

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page