TickTick

by jacepark12

147 stars
491 downloads
Not rated
GitHub

About

Integrates with TickTick task management API for creating, reading, updating, and deleting tasks and projects with OAuth2 authentication and secure credential storage.

Details

Author
jacepark12
Repository
jacepark12/ticktick-mcp
GitHub stars
147
Downloads
491
Categories
Productivity, Developer Tools, Design, File Management, AI, API, Security, Frontend, Infrastructure

- 📋 View all your TickTick projects and tasks
- ✏️ Create new projects and tasks through natural language
- 🔄 Update existing task details (title, content, dates, priority)
- ✅ Mark tasks as complete
- 🗑️ Delete tasks and projects
- 🔄 Full integration with TickTick's open API
- 🔌 Seamless integration with Claude and other MCP clients

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name TickTick
    Command (node, npx, python, etc.) <absolute path to uv>
    Arguments
    • Argument 1 run
    • Argument 2 --directory
    • Argument 3 <absolute path to ticktick-mcp directory>
    • Argument 4 -m
    • Argument 5 ticktick_mcp.cli
    • Argument 6 run

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

1. Clone this repository:

   git clone https://github.com/jacepark12/ticktick-mcp.git
cd ticktick-mcp

2. Install with uv:


curl -LsSf https://astral.sh/uv/install.sh | sh

uv venv

uv pip install -e .

3. Authenticate with TickTick:


uv run -m ticktick_mcp.cli auth

This will:
- Ask for your TickTick Client ID and Client Secret
- Open a browser window for you to log in to TickTick
- Automatically save your access tokens to a .env file

4. Test your configuration:

   uv run test_server.py

This will verify that your TickTick credentials are working correctly.

This server uses OAuth2 to authenticate with TickTick. The setup process is straightforward:

1. Register your application at the TickTick Developer Center
- Set the redirect URI to http://localhost:8000/callback
- Note your Client ID and Client Secret

2. Run the authentication command:

   uv run -m ticktick_mcp.cli auth

3. Follow the prompts to enter your Client ID and Client Secret

4. A browser window will open for you to authorize the application with your TickTick account

5. After authorizing, you'll be redirected back to the application, and your access tokens will be automatically saved to the .env file

The server handles token refresh automatically, so you won't need to reauthenticate unless you revoke access or delete your .env file.

滴答清单 - Dida365 is China version of TickTick, and the authentication process is similar to TickTick. Follow these steps to set up Dida365 authentication:

1. Register your application at the Dida365 Developer Center
- Set the redirect URI to http://localhost:8000/callback
- Note your Client ID and Client Secret

2. Add environment variables to your .env file:

   TICKTICK_BASE_URL='https://api.dida365.com/open/v1'
TICKTICK_AUTH_URL='https://dida365.com/oauth/authorize'
TICKTICK_TOKEN_URL='https://dida365.com/oauth/token'

3. Follow the same authentication steps as for TickTick

1. Install Claude for Desktop
2. Edit your Claude for Desktop configuration file:

macOS:

   nano ~/Library/Application\ Support/Claude/claude_desktop_config.json

Windows:

   notepad %APPDATA%\Claude\claude_desktop_config.json

3. Add the TickTick MCP server configuration, using absolute paths:

   {
"mcpServers": {
"ticktick": {
"command": "<absolute path to uv>",
"args": ["run", "--directory", "<absolute path to ticktick-mcp directory>", "-m", "ticktick_mcp.cli", "run"]
}
}
}

4. Restart Claude for Desktop

Once connected, you'll see the TickTick MCP server tools available in Claude, indicated by the 🔨 (tools) icon.

| Tool | Description | Parameters |
|------|-------------|------------|
| get_engaged_tasks | Get "engaged" tasks (high priority or overdue) | None |
| get_next_tasks | Get "next" tasks (medium priority or due tomorrow) | None |
| batch_create_tasks | Create multiple tasks at once | tasks (list of task dictionaries) |

The project implements a complete OAuth 2.0 flow for TickTick:

1. Initial Setup: User provides their TickTick API Client ID and Secret
2. Browser Authorization: User is redirected to TickTick to grant access
3. Token Reception: A local server receives the OAuth callback with the authorization code
4. Token Exchange: The code is exchanged for access and refresh tokens
5. Token Storage: Tokens are securely stored in the local .env file
6. Token Refresh: The client automatically refreshes the access token when it expires

This simplifies the user experience by handling the entire OAuth flow programmatically.

get_projects

List all your TickTick projects. Parameters: None

get_project

Get details about a specific project. Parameters: project_id

get_project_tasks

List all tasks in a project. Parameters: project_id

get_task

Get details about a specific task. Parameters: project_id, task_id

create_task

Create a new task. Parameters: title, project_id, content (optional), start_date (optional), due_date (optional), priority (optional)

update_task

Update an existing task. Parameters: task_id, project_id, title (optional), content (optional), start_date (optional), due_date (optional), priority (optional)

complete_task

Mark a task as complete. Parameters: project_id, task_id

delete_task

Delete a task. Parameters: project_id, task_id

create_project

Create a new project. Parameters: name, color (optional), view_mode (optional)

delete_project

Delete a project. Parameters: project_id

get_all_tasks

Get all tasks from all projects. Parameters: None

get_tasks_by_priority

Get tasks filtered by priority level. Parameters: priority_id (0: None, 1: Low, 3: Medium, 5: High)

search_tasks

Search tasks by title, content, or subtasks. Parameters: search_term

get_tasks_due_today

Get all tasks due today. Parameters: None

get_tasks_due_tomorrow

Get all tasks due tomorrow. Parameters: None

get_tasks_due_in_days

Get tasks due in exactly X days. Parameters: days (0 = today, 1 = tomorrow, etc.)

get_tasks_due_this_week

Get tasks due within the next 7 days. Parameters: None

get_overdue_tasks

Get all overdue tasks. Parameters: None

get_engaged_tasks

Get 'engaged' tasks (high priority or overdue). Parameters: None

get_next_tasks

Get 'next' tasks (medium priority or due tomorrow). Parameters: None

batch_create_tasks

Create multiple tasks at once. Parameters: tasks (list of task dictionaries)

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "ticktick": {
            "env": {},
            "args": [
                "run",
                "--directory",
                "<absolute path to ticktick-mcp directory>",
                "-m",
                "ticktick_mcp.cli",
                "run"
            ],
            "shell": false,
            "command": "<absolute path to uv>"
        }
    }
}

Linux

{
    "env": [],
    "args": [
        "run",
        "--directory",
        "<absolute path to ticktick-mcp directory>",
        "-m",
        "ticktick_mcp.cli",
        "run"
    ],
    "shell": false,
    "command": "<absolute path to uv>"
}

Macos

{
    "env": [],
    "args": [
        "run",
        "--directory",
        "<absolute path to ticktick-mcp directory>",
        "-m",
        "ticktick_mcp.cli",
        "run"
    ],
    "shell": false,
    "command": "<absolute path to uv>"
}

Windows

{
    "env": [],
    "args": [
        "run",
        "--directory",
        "<absolute path to ticktick-mcp directory>",
        "-m",
        "ticktick_mcp.cli",
        "run"
    ],
    "shell": false,
    "command": "<absolute path to uv>"
}

TickTick MCP Server

A Model Context Protocol (MCP) server for TickTick that enables interacting with your TickTick task management system directly through Claude and other MCP clients.

Features

- 📋 View all your TickTick projects and tasks
- ✏️ Create new projects and tasks through natural language
- 🔄 Update existing task details (title, content, dates, priority)
- ✅ Mark tasks as complete
- 🗑️ Delete tasks and projects
- 🔄 Full integration with TickTick's open API
- 🔌 Seamless integration with Claude and other MCP clients

Prerequisites

- Python 3.10 or higher
- uv - Fast Python package installer and resolver
- TickTick account with API access
- TickTick API credentials (Client ID, Client Secret, Access Token)

Installation

1. Clone this repository:

   git clone https://github.com/jacepark12/ticktick-mcp.git
cd ticktick-mcp

2. Install with uv:

   # Install uv if you don't have it already
curl -LsSf https://astral.sh/uv/install.sh | sh

# Create a virtual environment
uv venv

# Activate the virtual environment
# On macOS/Linux:
source .venv/bin/activate
# On Windows:
.venv\Scripts\activate

# Install the package
uv pip install -e .

3. Authenticate with TickTick:

   # Run the authentication flow
uv run -m ticktick_mcp.cli auth

This will:
- Ask for your TickTick Client ID and Client Secret
- Open a browser window for you to log in to TickTick
- Automatically save your access tokens to a .env file

4. Test your configuration:

   uv run test_server.py

This will verify that your TickTick credentials are working correctly.

Authentication with TickTick

This server uses OAuth2 to authenticate with TickTick. The setup process is straightforward:

1. Register your application at the TickTick Developer Center
- Set the redirect URI to http://localhost:8000/callback
- Note your Client ID and Client Secret

2. Run the authentication command:

   uv run -m ticktick_mcp.cli auth

3. Follow the prompts to enter your Client ID and Client Secret

4. A browser window will open for you to authorize the application with your TickTick account

5. After authorizing, you'll be redirected back to the application, and your access tokens will be automatically saved to the .env file

The server handles token refresh automatically, so you won't need to reauthenticate unless you revoke access or delete your .env file.

Authentication with Dida365

滴答清单 - Dida365 is China version of TickTick, and the authentication process is similar to TickTick. Follow these steps to set up Dida365 authentication:

1. Register your application at the Dida365 Developer Center
- Set the redirect URI to http://localhost:8000/callback
- Note your Client ID and Client Secret

2. Add environment variables to your .env file:

   TICKTICK_BASE_URL='https://api.dida365.com/open/v1'
TICKTICK_AUTH_URL='https://dida365.com/oauth/authorize'
TICKTICK_TOKEN_URL='https://dida365.com/oauth/token'

3. Follow the same authentication steps as for TickTick

Usage with Claude for Desktop

1. Install Claude for Desktop
2. Edit your Claude for Desktop configuration file:

macOS:

   nano ~/Library/Application\ Support/Claude/claude_desktop_config.json

Windows:

   notepad %APPDATA%\Claude\claude_desktop_config.json

3. Add the TickTick MCP server configuration, using absolute paths:

   {
"mcpServers": {
"ticktick": {
"command": "<absolute path to uv>",
"args": ["run", "--directory", "<absolute path to ticktick-mcp directory>", "-m", "ticktick_mcp.cli", "run"]
}
}
}

4. Restart Claude for Desktop

Once connected, you'll see the TickTick MCP server tools available in Claude, indicated by the 🔨 (tools) icon.

Available MCP Tools

| Tool | Description | Parameters |
|------|-------------|------------|
| get_projects | List all your TickTick projects | None |
| get_project | Get details about a specific project | project_id |
| get_project_tasks | List all tasks in a project | project_id |
| get_task | Get details about a specific task | project_id, task_id |
| create_task | Create a new task | title, project_id, content (optional), start_date (optional), due_date (optional), priority (optional) |
| update_task | Update an existing task | task_id, project_id, title (optional), content (optional), start_date (optional), due_date (optional), priority (optional) |
| complete_task | Mark a task as complete | project_id, task_id |
| delete_task | Delete a task | project_id, task_id |
| create_project | Create a new project | name, color (optional), view_mode (optional) |
| delete_project | Delete a project | project_id |

Task-specific MCP Tools

Task Retrieval & Search

| Tool | Description | Parameters | |------|-------------|------------| | get_all_tasks | Get all tasks from all projects | None | | get_tasks_by_priority | Get tasks filtered by priority level | priority_id (0: None, 1: Low, 3: Medium, 5: High) | | search_tasks | Search tasks by title, content, or subtasks | search_term |

Date-Based Task Retrieval

| Tool | Description | Parameters | |------|-------------|------------| | get_tasks_due_today | Get all tasks due today | None | | get_tasks_due_tomorrow | Get all tasks due tomorrow | None | | get_tasks_due_in_days | Get tasks due in exactly X days | days (0 = today, 1 = tomorrow, etc.) | | get_tasks_due_this_week | Get tasks due within the next 7 days | None | | get_overdue_tasks | Get all overdue tasks | None |

Getting Things Done (GTD) Framework

| Tool | Description | Parameters | |------|-------------|------------| | get_engaged_tasks | Get "engaged" tasks (high priority or overdue) | None | | get_next_tasks | Get "next" tasks (medium priority or due tomorrow) | None | | batch_create_tasks | Create multiple tasks at once | tasks (list of task dictionaries) |

Example Prompts for Claude

Here are some example prompts to use with Claude after connecting the TickTick MCP server:

General

- "Show me all my TickTick projects"
- "Create a new task called 'Finish MCP server documentation' in my work project with high priority"
- "List all tasks in my personal project"
- "Mark the task 'Buy groceries' as complete"
- "Create a new project called 'Vacation Planning' with a blue color"
- "When is my next deadline in TickTick?"

Task Filtering Queries

- "What tasks do I have due today?"
- "Show me everything that's overdue"
- "Show me all tasks due this week"
- "Search for tasks about 'project alpha'"
- "Show me all tasks with 'client' in the title or description"
- "Show me all my high priority tasks"

GTD Workflow

Following David Allen's "Getting Things Done" framework, manage an Engaged and Next actions.

- Engaged will retrieve tasks of high priority, due today or overdue.
- Next will retrieve medium priority or due tomorrow.
- Break down complex actions into smaller actions with batch_creation

For example:

- "Time block the rest of my day from 2-8pm with items from my engaged list"
- "Walk me through my next actions and help my identify what I should focus on tomorrow?"
- "Break down this project into 5 smaller actionable tasks"

Development

Project Structure

ticktick-mcp/
├── .env.template          # Template for environment variables
├── README.md              # Project documentation
├── requirements.txt       # Project dependencies
├── setup.py               # Package setup file
├── test_server.py         # Test script for server configuration
└── ticktick_mcp/          # Main package
    ├── __init__.py        # Package initialization
    ├── authenticate.py    # OAuth authentication utility
    ├── cli.py             # Command-line interface
    └── src/               # Source code
        ├── __init__.py    # Module initialization
        ├── auth.py        # OAuth authentication implementation
        ├── server.py      # MCP server implementation
        └── ticktick_client.py  # TickTick API client

Authentication Flow

The project implements a complete OAuth 2.0 flow for TickTick:

1. Initial Setup: User provides their TickTick API Client ID and Secret
2. Browser Authorization: User is redirected to TickTick to grant access
3. Token Reception: A local server receives the OAuth callback with the authorization code
4. Token Exchange: The code is exchanged for access and refresh tokens
5. Token Storage: Tokens are securely stored in the local .env file
6. Token Refresh: The client automatically refreshes the access token when it expires

This simplifies the user experience by handling the entire OAuth flow programmatically.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

1. Fork the repository
2. Create your feature branch (git checkout -b feature/amazing-feature)
3. Commit your changes (git commit -m 'Add some amazing feature')
4. Push to the branch (git push origin feature/amazing-feature)
5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.