mcp-ticktick
by karbassi
README.md
<div align="center">
# mcp-ticktick
**Your entire TickTick — available to any AI.**
[](https://pypi.org/project/mcp-ticktick/)
[](https://pypi.org/project/mcp-ticktick/)
[](LICENSE)
[](https://github.com/karbassi/mcp-ticktick/actions)
A [Model Context Protocol](https://modelcontextprotocol.io/) server that gives LLMs full access to [TickTick](https://ticktick.com).<br>
Tasks, projects, habits, focus timers, tags, filters, calendar — all of it.
**48 tools** · **4 resources** · **Every TickTick feature**
</div>
> [!IMPORTANT]
> **This server is superseded by [`ticktick-cli mcp`](https://github.com/karbassi/ticktick-cli).** It's a drop-in replacement, a single Rust binary with the same tool names and parameters, and it adds no Python runtime. Install it with `brew install karbassi/tap/ticktick-cli`, then run `ticktick-cli mcp` (stdio) or `ticktick-cli mcp --http` (streamable HTTP on `127.0.0.1:8502/mcp`). It reads the same `TICKTICK_*` environment variables.
>
> Known bug here, fixed there: `edit_habit`, `archive_habits` and `edit_filter` send a partial record, and TickTick's v2 batch update replaces the whole record, so the fields you didn't pass (a habit's name, color or goal, a filter's rule) get wiped.
---
## Quick Start
```bash
pip install mcp-ticktick
```
Then add it to your AI client of choice:
<details>
<summary><strong>Claude Desktop</strong></summary>
Add to `~/Library/Application Support/Claude/claude_desktop_config.json`:
```json
{
"mcpServers": {
"ticktick": {
"command": "mcp-ticktick",
"env": {
"TICKTICK_ACCESS_TOKEN": "your-access-token",
"TICKTICK_V2_SESSION_TOKEN": "your-session-cookie"
}
}
}
}
```
</details>
<details>
<summary><strong>Claude Code</strong></summary>
```bash
claude mcp add mcp-ticktick -- mcp-ticktick
```
Then set the environment variables in your shell.
</details>
<details>
<summary><strong>Cursor</strong></summary>
Add to `~/.cursor/mcp.json`:
```json
{
"mcpServers": {
"ticktick": {
"command": "mcp-ticktick",
"env": {
"TICKTICK_ACCESS_TOKEN": "your-access-token",
"TICKTICK_V2_SESSION_TOKEN": "your-session-cookie"
}
}
}
}
```
</details>
<details>
<summary><strong>Windsurf</strong></summary>
Add to `~/.codeium/windsurf/mcp_config.json`:
```json
{
"mcpServers": {
"ticktick": {
"command": "mcp-ticktick",
"env": {
"TICKTICK_ACCESS_TOKEN": "your-access-token",
"TICKTICK_V2_SESSION_TOKEN": "your-session-cookie"
}
}
}
}
```
</details>
<details>
<summary><strong>VS Code / GitHub Copilot</strong></summary>
Add to your VS Code `settings.json`:
```json
{
"mcp": {
"servers": {
"ticktick": {
"command": "mcp-ticktick",
"env": {
"TICKTICK_ACCESS_TOKEN": "your-access-token",
"TICKTICK_V2_SESSION_TOKEN": "your-session-cookie"
}
}
}
}
}
```
</details>
## What Can It Do?
> *"Add a task to my Shopping list due tomorrow"*
> *"Check in my meditation habit for today"*
> *"Show me what I focused on this week"*
> *"Move all tasks tagged #backlog to the Archive project"*
| Domain | Tools | Highlights |
|---|---|---|
| **Tasks** | 12 | Create, edit, complete, delete, move, subtasks, trash, search, filter |
| **Tasks** | 12 | Create, edit, complete, delete, move, subtasks, trash |
| **Projects** | 6 | CRUD with fuzzy name matching, members |
| **Tasks** | 10 | Create, edit, complete, delete, move, subtasks, trash |
| **Comments** | 3 | List, add, and delete task comments |
| **Projects** | 5 | CRUD with fuzzy name matching |
| **Tags** | 6 | Create, rename, merge, hierarchies |
| **Folders** | 4 | Group projects into folders |
| **Columns** | 3 | Kanban columns, and put tasks in them |
| **Habits** | 8 | Track, check in, streaks, sections |
| **Filters** | 4 | Saved custom filters |
| **Focus** | 5 | Pomodoro records, stats, session history |
| **Calendar** | 3 | Connected calendars and events |
Plus 4 read-only **resources**: `ticktick://profile` · `ticktick://settings` · `ticktick://projects` · `ticktick://tags`
<details>
<summary><strong>Full tool reference</strong></summary>
### Tasks
| Tool | Description |
|---|---|
| `list_tasks` | List tasks from a project or all projects |
| `get_task` | Get a single task by ID |
| `add_task` | Create a task with due date, priority, tags, checklist, kanban column |
| `edit_task` | Update task fields, or move it to a kanban column |
| `add_task` | Create a task with due date, priority, tags, checklist |
| `edit_task` | Update task fields |
| `complete_task` | Mark one task (`task_id`) or several (`task_ids`, batched 50 per request) complete |
| `add_task` | Create a task with due date, priority, tags, checklist, reminders (defaults to a reminder when dated) |
| `edit_task` | Update task fields, including reminders |
| `complete_task` | Mark a task complete |
| `delete_task` | Delete a task |
| `move_task` | Move a task between projects |
| `assign_task` | Assign a task to a member of a shared project |
| `unassign_task` | Remove a task's assignee |
| `set_subtask` | Make a task a subtask of another |
| `unparent_task` | Remove a task from its parent |
| `list_trash` | List deleted tasks |
| `search_tasks` | Keyword search across all projects, server-side |
| `filter_tasks` | Filter by project, dates, priority, tags, status, kind |
### Comments
| Tool | Description |
|---|---|
| `list_comments` | List the comments on a task |
| `add_comment` | Add a comment to a task |
| `delete_comment` | Delete a comment from a task |
### Projects
| Tool | Description |
|---|---|
| `list_projects` | List all projects |
| `get_project` | Get a project by name or ID (fuzzy match) |
| `add_project` | Create a new project |
| `edit_project` | Update project properties |
| `delete_project` | Delete a project and its tasks |
| `list_project_members` | List a project's members (usernames for `assign_task`) |
### Tags
| Tool | Description |
|---|---|
| `list_tags` | List all tags |
| `add_tags` | Create one or more tags |
| `delete_tags` | Delete tags |
| `rename_tag` | Rename a tag (updates all tasks) |
| `edit_tag` | Update tag color, parent, sort |
| `merge_tags` | Merge one tag into another |
### Folders
| Tool | Description |
|---|---|
| `list_folders` | List all project folders |
| `add_folder` | Create a folder |
| `delete_folders` | Delete folders |
| `rename_folder` | Rename a folder |
### Columns
| Tool | Description |
|---|---|
| `list_columns` | List a project's kanban columns |
| `add_column` | Create a kanban column |
| `edit_column` | Rename, reorder, or recolor a column (the official API has no delete) |
### Habits
| Tool | Description |
|---|---|
| `list_habits` | List all habits |
| `add_habit` | Create a boolean or numeric habit |
| `edit_habit` | Update habit properties |
| `delete_habits` | Delete habits |
| `checkin_habit` | Record a habit check-in |
| `habit_log` | Query check-in history |
| `archive_habits` | Archive habits (hide, keep data) |
| `manage_habit_sections` | List, add, delete, rename sections |
### Filters
| Tool | Description |
|---|---|
| `list_filters` | List saved filters |
| `add_filter` | Create a filter |
| `edit_filter` | Update a filter |
| `delete_filters` | Delete filters |
### Focus
| Tool | Description |
|---|---|
| `focus_status` | Current timer status |
| `focus_stats` | Daily and total focus statistics |
| `focus_log` | Focus sessions for a date range |
| `focus_timeline` | Full session history |
| `focus_save` | Save a completed pomodoro record |
### Calendar
| Tool | Description |
|---|---|
| `list_calendars` | List connected calendar accounts |
| `list_events` | Query events for a date range |
| `sync_account` | Full account sync |
### Countdowns
| Tool | Description |
|---|---|
| `list_countdowns` | List countdowns (read-only; the official API has no writes) |
</details>
## Shared HTTP server
By default every client starts its own stdio process. To run one long-lived server that many clients share:
```bash
TICKTICK_MCP_TRANSPORT=http TICKTICK_MCP_PORT=8502 mcp-ticktick
```
```json
{
"mcpServers": {
"ticktick": { "type": "http", "url": "http://127.0.0.1:8502/mcp" }
}
}
```
The endpoint has **no authentication**: anything that can connect to it can use every tool with your TickTick credentials, including deleting projects. So:
- The server only binds to loopback (`TICKTICK_MCP_HOST` must be `127.0.0.1`, `localhost`, or `::1`). Any local process can still connect, so only use HTTP mode on a machine where every local user and process is trusted with your TickTick account.
- It always turns on FastMCP's Host/Origin protection, which FastMCP leaves off by default. That check **only** stops DNS-rebinding attacks from web pages. It does not authenticate anyone.
- To reach it from another machine, put it behind a reverse proxy that **controls who can connect**: a bearer token, mTLS, an IP allowlist on a private network, or similar. Then add the proxy's hostname to `FASTMCP_HTTP_ALLOWED_HOSTS`, e.g. `FASTMCP_HTTP_ALLOWED_HOSTS='["mcp.example.com"]'`. If a browser-based client will call it, also add that client's origin to `FASTMCP_HTTP_ALLOWED_ORIGINS`, e.g. `'["https://mcp.example.com"]'`. Never expose the port or the proxy publicly without access control.
## Authentication
You need a TickTick [OAuth app](https://developer.ticktick.com/manage) (free to create).
| Variable | Required | Description |
|---|---|---|
| `TICKTICK_ACCESS_TOKEN` | **Yes** | OAuth access token |
| `TICKTICK_CLIENT_ID` | No | OAuth client ID (for token refresh) |
| `TICKTICK_CLIENT_SECRET` | No | OAuth client secret (for token refresh) |
| `TICKTICK_REFRESH_TOKEN` | No | OAuth refresh token |
| `TICKTICK_V2_SESSION_TOKEN` | No | Browser `t` cookie for v2 features |
> **v1 vs v2:** The access token (official API) covers tasks (including moving them and their comments), projects, tags, folders, habit section listing, and focus logging/saving. Everything else needs a v2 session token: tag merge, filters, habits, focus stats/timeline/timer, calendar, trash, subtasks, and completed tasks. Grab the `t` cookie from your browser while logged into ticktick.com.
## Development
```bash
git clone https://github.com/karbassi/mcp-ticktick.git
cd ticktick-mcp
uv sync --all-extras
uv run ruff check src/ tests/
uv run pytest
```
## License
[MIT](LICENSE)
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessLimited data