SuperAPIAI Directory

ticktick-mcp

github.com · AI developer platforms

TickTick integration built on the ticktick-py library, with improved filtering capabilities.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

Purpose

TickTick MCP Server exposes TickTick task management features to AI assistants and MCP-compatible applications (such as Claude Desktop, VS Code Agent Mode, mcp-use, etc.) through MCP (Model Context Protocol) tools. It is built on top of the ticktick-py library and provides a relatively complete filtering interface, enabling AI assistants to interact more precisely with tasks in TickTick.

Main Capabilities

This service provides access to TickTick features through MCP tools, categorized as follows:

  • Task management: create, update (including conversion to TickTick date format), delete, complete, and move tasks.
  • Subtask management: create subtasks by associating existing tasks.
  • Task retrieval: get all uncompleted tasks; get tasks by ID or specific fields; get tasks completed within a specified date range; get tasks in a specified project; filter tasks by various conditions such as priority, project, tags, etc.
  • Project/tag management: get all projects, tags, and project folders.
  • Helper tools: convert datetime strings into the format required by TickTick.

For detailed tool specifications, refer to the tool definitions in the repository's src/ticktick_mcp/tools/ directory.

Tool Overview

Task management:

  • ticktick_create_task: create a new task. Inputs include title (required), projectId, content, desc, allDay, startDate, dueDate, timeZone, reminders, repeat, priority (0=None, 1=Low, 3=Medium, 5=High), sortOrder, items (list of subtask dictionaries), etc.
  • ticktick_update_task: update an existing task, with input as a task_object containing the properties to update and the task id.
  • ticktick_delete_tasks: delete one or more tasks, with input as a single task ID or a list of task IDs.
  • ticktick_complete_task: mark a task as completed, with input as task_id.
  • ticktick_move_task: move a task to another project, with input as task_id and new_project_id.
  • ticktick_make_subtask: set a task as a subtask of another task, with input as parent_task_id and child_task_id.

Task retrieval:

  • ticktick_get_by_id: get a specific object (task, project, etc.) by ID.
  • ticktick_get_all: get all objects of a specified type (such as tasks, projects, tags).
  • ticktick_get_tasks_from_project: get all uncompleted tasks in a project, with input as project_id.
  • ticktick_filter_tasks: filter tasks by various conditions. Filter parameters include status (uncompleted or completed), project_id, tag_label, priority, due_start_date, due_end_date, completion_start_date, completion_end_date, sort_by_priority, tz, etc.

Usage

Prerequisites

This server uses the unofficial ticktick-py library to interact with the TickTick API, and requires TickTick access permissions and API credentials.

Register a TickTick application to obtain API credentials:

  1. Go to the TickTick OpenAPI documentation and log in with your TickTick account.
  2. Click Manage Apps in the upper right corner.
  3. Click the +App Name button to register a new application, and name the application (for example, "MCP Server").
  4. After creation, edit the application details and note down the generated Client ID and Client Secret.
  5. In OAuth Redirect URL, fill in the URL you want to be redirected to after authorization. It does not need to be an accessible online address; for local development, commonly http://localhost:8080/redirect or http://127.0.0.1:8080/。请确保该确切 The URL has been saved in an environment variable.

Environment Variables

The server requires the above TickTick API credentials as well as TickTick login information. By default, it reads the .env file located at ~/.config/ticktick-mcp/.env. The server may create ~/.config/ticktick-mcp/ if the directory does not exist, but it is safer to create it manually. The .env file must be created manually within it. Alternatively, when running the server directly through Python, a different directory can be specified using the --dotenv-dir command-line argument. The .env file should contain the required content (the specific field names were not fully provided in the materials).

Authentication (First Run)

On the first run (whether run directly or through an MCP client), the underlying ticktick-py library initiates the OAuth2 authentication flow:

  • It may automatically open a browser window, or print a URL in the console/log output.
  • You need to visit that URL, log in to TickTick if necessary, and authorize the application (granting read and write permissions).
  • After authorization, you will be redirected to the previously specified TICKTICK_REDIRECT_URI. The console will prompt you to paste the full redirect URL containing the code= parameter back into the terminal.
  • After successful verification, a .token-oauth file will be generated in the directory where the .env file is located. This file caches the authorization token, and typically manual authorization only needs to be performed once every approximately 6 months or when the token becomes invalid.

Running the Server

There are two main ways to run it:

  1. Through an MCP client (recommended for AI assistant integration): configure an MCP client (such as Claude Desktop, VS Code Agent Mode, etc.) to use this server.
  2. Run directly through Python (you can use --dotenv-dir to specify the environment variable directory).

Use Cases

  • Directly manage TickTick tasks through natural language or tool calls in an MCP-compatible AI assistant or editor.
  • Scenarios that require precise filtering of TickTick tasks by priority, project, tag, date range, and other conditions.
  • Scenarios that require creating, updating, completing, moving tasks, and establishing subtask relationships within an AI workflow.

Limitations

  • This server uses the unofficial ticktick-py library to interact with the TickTick API, and the materials do not state its stability or official support status.
  • Before use, you must register a TickTick application yourself, obtain API credentials, and complete OAuth2 authorization.
  • Authentication tokens typically require manual reauthorization approximately every 6 months or when they become invalid.
  • The materials do not provide pricing, fees, platform compatibility scope, or performance data.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools