TickTick MCP Server
Enables task management in TickTick with full CRUD operations, advanced filtering, GTD workflows, reminders, subtasks, and optional V2 API features for tags, completed tasks, and search.
README
TickTick MCP Server (Python)
A robust MCP server for TickTick based on the ticktick-py library.
Features
- Full task management: Create, list, update, complete, and delete tasks
- Advanced filtering: Filter tasks by priority, due date, and status
- Reminders: Set multiple reminders with RFC 5545 trigger format
- Subtasks: Create and complete checklist items within tasks
- Date/time support: Separate start and due dates with optional times
- Timezone support: Specify timezone for time-sensitive tasks
- Recurrence: Full RRULE support for recurring tasks
- Smart matching: Fuzzy, partial, or exact title matching
- Direct ID lookup: Skip title search when task ID is known
- Retry logic: Automatic retry on transient failures
- OAuth2 authentication via
ticktick-py - V2 API features (optional): Completed tasks, Inbox, tags, and search
Available MCP Tools
Task Management
| Tool | Description |
|---|---|
create_task |
Create a new task with optional reminders, subtasks, dates, timezone |
list_tasks |
List tasks with optional filters (project, priority, due, status) |
get_task |
Retrieve a single task by ID |
update_task |
Update task properties (title, dates, reminders, subtasks, etc.) |
complete_task |
Mark a task as complete |
delete_task |
Delete a task |
Subtask Management
| Tool | Description |
|---|---|
add_subtask |
Add a subtask/checklist item to an existing task |
complete_subtask |
Mark a subtask as complete |
Project Management
| Tool | Description |
|---|---|
list_projects |
List all projects/lists |
GTD (Getting Things Done) Tools
Dedicated tools for GTD productivity workflows:
| Tool | Description |
|---|---|
gtd_get_engaged_tasks |
Tasks needing immediate attention (high priority, due today, or overdue) |
gtd_get_next_tasks |
Tasks for your next work session (medium priority or due tomorrow) |
gtd_get_weekly_review |
All tasks grouped by urgency for weekly planning |
gtd_get_someday_tasks |
Tasks without dates or priority (ideas for later) |
GTD Workflow Example:
# Morning: Check what needs attention NOW
gtd_get_engaged_tasks()
# Shows: High priority tasks, tasks due today, overdue tasks
# After clearing engaged items: What's next?
gtd_get_next_tasks()
# Shows: Medium priority tasks, tasks due tomorrow
# Weekly planning session
gtd_get_weekly_review()
# Shows: Overdue (0) / Today (3) / This Week (5) / No Date (12)
# Periodically review ideas
gtd_get_someday_tasks()
# Shows: Tasks without dates, grouped by project
Common Parameters
Dates: Use YYYY-MM-DD for all-day tasks or YYYY-MM-DDTHH:MM:SS for specific times.
Reminders: List of RFC 5545 triggers:
TRIGGER:PT0S- At start timeTRIGGER:P0DT1H0M0S- 1 hour beforeTRIGGER:P1DT0H0M0S- 1 day before
Priority levels: 0 (none), 1 (low), 3 (medium), 5 (high)
Match modes: When searching by title:
exact- Title must match exactly (case-insensitive)partial- Title contains search term (default)fuzzy- Allows typos using Levenshtein distance
V2 API Tools (Optional)
These tools require V2 API credentials (TICKTICK_USERNAME and TICKTICK_PASSWORD):
| Tool | Description |
|---|---|
list_tags |
List all tags in your account |
add_tag |
Add a tag to a task |
remove_tag |
Remove a tag from a task |
search_tasks |
Search tasks by title or content |
sort_completed_tasks |
Sort completed tasks alphabetically by completedTime |
Enhanced list_tasks with V2:
status="completed"- List completed tasks (V2 required)project_name="Inbox"- Access the Inbox project (V2 required)
Filtering Tasks
The list_tasks tool supports advanced filtering with combinable parameters:
Priority filter (priority):
high- Priority 5 tasksmedium- Priority 3 taskslow- Priority 1 tasksnone- Priority 0 tasks (no priority set)
Due date filter (due):
today- Tasks due todaytomorrow- Tasks due tomorrowthis_week- Tasks due within the next 7 daysoverdue- Tasks past their due dateupcoming- Tasks with any future due date
Status filter (status):
active- Active/incomplete tasks (default)completed- Completed tasks onlyall- All tasks regardless of status
Examples:
# High priority tasks due today
list_tasks(priority="high", due="today")
# All overdue tasks
list_tasks(due="overdue")
# Completed tasks in a specific project
list_tasks(project_name="Work", status="completed")
# Medium priority tasks due this week
list_tasks(priority="medium", due="this_week")
V2 API Features
The following features require V2 API credentials (optional):
- ✅ Inbox project access (
list_tasks(project_name="Inbox")) - ✅ Tag management (
list_tags,add_tag,remove_tag) - ✅ Listing completed tasks (
list_tasks(status="completed")) - ✅ Search tasks (
search_tasks) - ✅ Sort completed tasks alphabetically (
sort_completed_tasks)
Without V2 credentials: All V1 features work normally. V2 features return helpful messages explaining how to enable them.
Migrating from cronjob-ticktick: The sort_completed_tasks tool replaces the standalone cronjob-ticktick project for sorting completed tasks alphabetically.
Setup
Option 1: Local Installation
-
Credentials: Create a
.envfile based on.env.example. You need your TickTick API credentials from the TickTick Developer Center. -
Installation:
uv pip install -e . -
First-time OAuth Authentication: Run the server once locally to complete OAuth authentication. This will create a
.token-oauthfile. -
Usage with Claude/Gemini: Add this to your MCP config:
{ "mcpServers": { "ticktick": { "command": "uv", "args": ["run", "--path", "/path/to/this/dir", "ticktick-mcp"] } } }
Option 2: Docker Deployment
Deploy the MCP server on your own infrastructure (VPS, home server) for remote access.
Prerequisites
- Docker and Docker Compose installed
- TickTick API credentials from Developer Center
- Completed OAuth authentication (
.token-oauthfile)
Quick Start
-
Create environment file:
cp .env.example .env # Edit .env with your credentials -
Build and start:
docker-compose up -d -
Verify health:
curl http://localhost:8080/health # Expected: {"status": "ok"}
Environment Variables
| Variable | Required | Description |
|---|---|---|
TICKTICK_CLIENT_ID |
Yes | OAuth2 client ID from TickTick Developer Center |
TICKTICK_CLIENT_SECRET |
Yes | OAuth2 client secret |
TOKEN_CACHE_PATH |
No | Path to OAuth token file (default: /app/data/.token-oauth) |
HEALTH_PORT |
No | Port for health check endpoint (default: 8080) |
TICKTICK_USERNAME |
No | Email for V2 API (enables tags, search, completed tasks, Inbox) |
TICKTICK_PASSWORD |
No | Password for V2 API (required with username) |
OAuth Token Setup
The OAuth token must be generated locally first:
-
Run the server locally once to complete OAuth flow
-
Copy the generated
.token-oauthfile to your Docker volume:docker cp .token-oauth ticktick-mcp:/app/data/.token-oauthOr mount it directly in
docker-compose.yml:volumes: - ./.token-oauth:/app/data/.token-oauth:ro
Docker Compose Configuration
The default docker-compose.yml includes:
- Health checks: Automatic container health monitoring
- Volume persistence: OAuth tokens survive container restarts
- Configurable ports: Change via
HEALTH_PORTenvironment variable - Restart policy: Container auto-restarts unless manually stopped
Custom Port
To use a different health check port:
HEALTH_PORT=9090 docker-compose up -d
Or in your .env file:
HEALTH_PORT=9090
Troubleshooting
"No OAuth token found"
The OAuth token file is missing or invalid:
- Complete OAuth authentication locally first
- Ensure the token file is accessible in the container
- Check
TOKEN_CACHE_PATHenvironment variable
Health check failing
- Verify the container is running:
docker ps - Check container logs:
docker logs ticktick-mcp - Ensure port 8080 is not blocked by firewall
Container not starting
- Check Docker logs:
docker-compose logs - Verify environment variables are set correctly
- Ensure credentials are valid
Development
Running Tests
uv pip install -e ".[dev]"
uv run pytest tests/ -v
Code Coverage
uv run pytest --cov=ticktick_mcp_py --cov-report=html
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。