Skip to main content
Glama

mcp-ticktick

Your entire TickTick — available to any AI.

PyPI Python License CI

A Model Context Protocol server that gives LLMs full access to TickTick. Tasks, projects, habits, focus timers, tags, filters, calendar — all of it.

48 tools · 4 resources · Every TickTick feature

IMPORTANT

This server is superseded by ticktick-cli mcp. 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

pip install mcp-ticktick

Then add it to your AI client of choice:

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "ticktick": {
      "command": "mcp-ticktick",
      "env": {
        "TICKTICK_ACCESS_TOKEN": "your-access-token",
        "TICKTICK_V2_SESSION_TOKEN": "your-session-cookie"
      }
    }
  }
}
claude mcp add mcp-ticktick -- mcp-ticktick

Then set the environment variables in your shell.

Add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "ticktick": {
      "command": "mcp-ticktick",
      "env": {
        "TICKTICK_ACCESS_TOKEN": "your-access-token",
        "TICKTICK_V2_SESSION_TOKEN": "your-session-cookie"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "ticktick": {
      "command": "mcp-ticktick",
      "env": {
        "TICKTICK_ACCESS_TOKEN": "your-access-token",
        "TICKTICK_V2_SESSION_TOKEN": "your-session-cookie"
      }
    }
  }
}

Add to your VS Code settings.json:

{
  "mcp": {
    "servers": {
      "ticktick": {
        "command": "mcp-ticktick",
        "env": {
          "TICKTICK_ACCESS_TOKEN": "your-access-token",
          "TICKTICK_V2_SESSION_TOKEN": "your-session-cookie"
        }
      }
    }
  }
}

Related MCP server: TickTick MCP

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

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)

Shared HTTP server

By default every client starts its own stdio process. To run one long-lived server that many clients share:

TICKTICK_MCP_TRANSPORT=http TICKTICK_MCP_PORT=8502 mcp-ticktick
{
  "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 (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

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers