T
TickTick
community
other
A Model Context Protocol (MCP) server designed to integrate with the TickTick task management platform, enabling intelligent context-aware task operations and automation.
TickTick MCP Server
MCP Server for the TickTick API, enabling task management, project organization, habit tracking, and more.
Features
- ✅ Task Management: Create, read, update, and delete tasks with all available properties
- 📊 Project Management: Create, read, update, and delete projects with customizable views
- 📋 Subtask Support: Full support for managing subtasks within parent tasks
- 🔄 Complete Task Control: Set priorities, due dates, reminders, and recurring rules
- 🔐 OAuth Authentication: Full OAuth2 implementation for secure API access
- ⚠️ Comprehensive Error Handling: Clear error messages for common issues
Tools
-
get_task_by_ids
- Get a specific task by project ID and task ID
- Inputs:
(string): Project identifierprojectId
(string): Task identifiertaskId
- Returns: Task object matching
TickTickTaskSchema
-
create_task
- Create a new task in a project
- Inputs:
(string): Task titletitle
(string): Project idprojectId
(optional string): Task contentcontent
(optional string): Task descriptiondesc
(optional boolean): Is all day taskisAllDay
(optional string): Task start date in "yyyy-MM-dd'T'HH:mm:ssZ" formatstartDate
(optional string): Task due date in "yyyy-MM-dd'T'HH:mm:ssZ" formatdueDate
(optional string): Task time zone (e.g., "America/Los_Angeles")timeZone
(optional string[]): List of reminder triggers in iCalendar formatreminders
(optional string): Task repeat flag in iCalendar formatrepeatFlag
(optional number): Task priority (None: 0, Low: 1, Medium: 3, High: 5)priority
(optional string): Task sort ordersortOrder
(optional array): List of subtasks with:items
(string): Subtask item titletitle
(optional string): Subtask date in "yyyy-MM-dd'T'HH:mm:ssZ" formatstartDate
(optional boolean): Is all day subtask itemisAllDay
(optional number): Subtask item sort ordersortOrder
(optional string): Subtask timezonetimeZone
(optional number): Completion status (Normal: 0, Completed: 1)status
(optional string): Completion time in "yyyy-MM-dd'T'HH:mm:ssZ" formatcompletedTime
- Returns: Created task object matching
TickTickTaskSchema
-
update_task
- Update an existing task
- Inputs:
(string): Task identifier - PathtaskId
(string): Task identifier - Bodyid
(string): Project idprojectId
- All optional fields from
create_task
- Returns: Updated task object matching
TickTickTaskSchema
-
complete_task
- Mark a task as completed
- Inputs:
(string): Task identifiertaskId
(string): Project identifierprojectId
- Returns: void
-
delete_task
- Delete a task from a project
- Inputs:
(string): Task identifiertaskId
(string): Project identifierprojectId
- Returns: void
-
get_user_projects
- Get all projects for the authenticated user
- Inputs: None
- Returns: Array of project objects matching
TickTickProjectSchema
-
get_project_by_id
- Get a specific project by ID
- Inputs:
(string): Project identifierprojectId
- Returns: Project object matching
TickTickProjectSchema
-
get_project_with_data
- Get project details along with tasks and columns
- Inputs:
(string): Project identifierprojectId
- Returns: Object containing:
: Project object matchingproject
TickTickProjectSchema
: Array of task objects matchingtasks
TickTickTaskSchema
: Optional array of column objects with:columns
(optional string)id
(optional string)projectId
(optional string)name
(optional number)sortOrder
-
create_project
- Create a new project
- Inputs:
(string): Project namename
(optional string): Project color (default: '#4772FA')color
(optional string): View mode ('list', 'kanban', 'timeline') (default: 'list')viewMode
(optional string): Project kind ('TASK', 'NOTE') (default: 'TASK')kind
- Returns: Created project object matching
TickTickProjectSchema
-
update_project
- Update an existing project
- Inputs:
(string): Project identifierprojectId
(optional string): Project namename
(optional string): Project colorcolor
(optional number): Project sort ordersortOrder
(optional string): View mode ('list', 'kanban', 'timeline')viewMode
(optional string): Project kind ('TASK', 'NOTE')kind
- Returns: Updated project object matching
TickTickProjectSchema
-
delete_project
- Delete a project
- Inputs:
(string): Project identifierprojectId
- Returns: void
Schema References
-
: Defines the structure for task objects including:TickTickTaskSchema
- Basic task properties (id, title, description)
- Dates and time settings
- Priority and status
- Checklist items and subtasks
-
: Defines the structure for project objects including:TickTickProjectSchema
- Project identification and naming
- Display settings (color, view mode)
- Permissions and organization
Tasks Properties
When creating or updating tasks, you can include these properties:
- Priority Levels:
: None0
: Low1
: Medium3
: High5
- Status Values:
: Normal (not completed)0
: Completed2
- Reminder Format:
- Example:
["TRIGGER:P0DT9H0M0S", "TRIGGER:PT0S"]
- Follows iCalendar TRIGGER format
- Example:
- Recurring Rules (repeatFlag):
- Example:
"RRULE:FREQ=DAILY;INTERVAL=1"
- Uses RFC 5545 recurrence rules
- Example:
- Date Format:
- ISO 8601 format:
"yyyy-MM-dd'T'HH:mm:ssZ"
- Example:
"2019-11-13T03:00:00+0000"
- ISO 8601 format:
Projects Properties
When creating or updating projects, you can use these properties:
- View Modes:
: Standard list view"list"
: Kanban board view"kanban"
: Timeline view"timeline"
- Project Kinds:
: Task-oriented project"TASK"
: Note-oriented project"NOTE"
Setup
OAuth Authentication
To enable OAuth authentication with TickTick, you'll need to register your app and obtain API credentials:
- Create an account on the TickTick Developer Portal
- Register a new application
- Set the OAuth redirect URL to: http://localhost:8000/callback
- Copy the generated Client ID (TICKTICK_CLIENT_ID) and Client Secret (TICKTICK_CLIENT_SECRET)
First-Time Authorization Flow
When using the TickTick MCP server for the first time:
- You'll be prompted to authorize the application
- A browser window will open with the TickTick login page
- After login, you'll be asked to grant permissions
- The access token will be displayed in the page
- Copy this token and set it as the TICKTICK_ACCESS_TOKEN environment variable
Generate Access Token
When you need to generate a new access token (either for first-time setup or when the token expires), follow these steps:
-
Configure your credentials using one of these methods:
Option 1: .env file (Recommended)
Create a
file in your project root:.env
TICKTICK_CLIENT_ID="<YOUR_CLIENT_ID>" TICKTICK_CLIENT_SECRET="<YOUR_CLIENT_SECRET>"
Then load it:source .env
This method is recommended because:- Credentials persist between terminal sessions
- Easier to manage multiple configurations
- Less prone to shell history leaks
- Can be easily backed up (remember to exclude from version control)
Option 2: Terminal Environment Variables
Use single quotes if your credentials contain special characters. Note that these variables will only persist in your current terminal session:export TICKTICK_CLIENT_ID='<YOUR_CLIENT_ID>' export TICKTICK_CLIENT_SECRET='<YOUR_CLIENT_SECRET>'
-
Run the authentication command:If using the published package:
npx @alexarevalo.ia/mcp-server-ticktick ticktick-auth
If running the MCP server locally:npm run start:auth
The process will:- Launch your default browser
- Direct you to TickTick's login page
- Request necessary permissions
- Generate and display your access token
-
Save the access token:
echo "TICKTICK_ACCESS_TOKEN=\"<GENERATED_TOKEN>\"" >> .env source .env
Security Tips:
- Add
to your.env
file.gitignore
- Never commit credentials to version control
- Access tokens expire after 180 days - you'll need to regenerate them
Usage with Claude Desktop
To use this with Claude Desktop, add the following to your
claude_desktop_config.json
:NPX
{ "mcpServers": { "ticktick": { "command": "npx", "args": ["-y", "@alexarevalo.ai/mcp-server-ticktick"], "env": { "TICKTICK_CLIENT_ID": "<YOUR_CLIENT_ID>", "TICKTICK_CLIENT_SECRET": "<YOUR_CLIENT_SECRET>", "TICKTICK_ACCESS_TOKEN": "<YOUR_ACCESS_TOKEN>" } } } }
Docker
{ "mcpServers": { "ticktick": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "TICKTICK_CLIENT_ID", "-e", "TICKTICK_CLIENT_SECRET", "-e", "TICKTICK_ACCESS_TOKEN", "mcp/ticktick" ], "env": { "TICKTICK_CLIENT_ID": "<YOUR_CLIENT_ID>", "TICKTICK_CLIENT_SECRET": "<YOUR_CLIENT_SECRET>", "TICKTICK_ACCESS_TOKEN": "<YOUR_ACCESS_TOKEN>" } } } }
Installing via Smithery
To install ticktick-mcp-server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @alexarevalo9/ticktick-mcp-server --client claude
Build
Docker build:
docker build -t mcp/ticktick -f src/ticktick/Dockerfile .
License
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.
Related Servers
S
Sequential Thinking
reference
Dynamic and reflective problem-solving through thought sequences
View Details