mcp-server-ticktick

mcp-server-ticktick

Enables interacting with TickTick tasks and projects through natural language via Claude and other MCP clients.

Category
访问服务器

README

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 and Client Secret from TickTick Developer Center)

Installation

  1. Register your application at the TickTick Developer Center

    • Set the redirect URI to http://localhost:19280/callback
    • Note your Client ID and Client Secret
  2. Add the MCP server configuration with your credentials:

    {
      "mcpServers": {
        "ticktick": {
          "command": "uvx",
          "args": ["mcp-server-ticktick"],
          "env": {
            "TICKTICK_CLIENT_ID": "your_client_id",
            "TICKTICK_CLIENT_SECRET": "your_client_secret"
          }
        }
      }
    }
    
  3. Run authentication to obtain access tokens:

    uvx mcp-server-ticktick auth
    

    This will open a browser for OAuth authorization. Credentials and tokens are saved to ~/.ticktick/config.json.

Note: If you don't configure TICKTICK_CLIENT_ID / TICKTICK_CLIENT_SECRET in the MCP config, the auth command will prompt you to enter them interactively, and they will be saved to ~/.ticktick/config.json.

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:19280/callback
    • Note your Client ID and Client Secret
  2. Add the following MCP server configuration with Dida365 environment variables:

    {
      "mcpServers": {
        "ticktick": {
          "command": "uvx",
          "args": ["mcp-server-ticktick"],
          "env": {
            "TICKTICK_CLIENT_ID": "your_client_id",
            "TICKTICK_CLIENT_SECRET": "your_client_secret",
            "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

Environment Variables

All environment variables are optional and can be set in your MCP server config's env block. Credentials and tokens are primarily stored in ~/.ticktick/config.json.

Variable Description Default
TICKTICK_CLIENT_ID OAuth client ID ~/.ticktick/config.json
TICKTICK_CLIENT_SECRET OAuth client secret ~/.ticktick/config.json
TICKTICK_ACCESS_TOKEN OAuth access token (fallback) ~/.ticktick/config.json
TICKTICK_REFRESH_TOKEN OAuth refresh token (fallback) ~/.ticktick/config.json
TICKTICK_BASE_URL API base URL https://api.ticktick.com/open/v1
TICKTICK_AUTH_URL OAuth authorization URL https://ticktick.com/oauth/authorize
TICKTICK_TOKEN_URL OAuth token URL https://ticktick.com/oauth/token

Available MCP Tools

Tool Description Parameters
get_projects List all your TickTick projects size (optional, default: 50)
get_project Get details about a specific project project_id
get_project_tasks List all tasks in a project project_id, size (optional, default: 50)
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 size (optional, default: 50)
get_tasks_by_priority Get tasks filtered by priority level priority_id (0: None, 1: Low, 3: Medium, 5: High), size (optional, default: 50)
search_tasks Search tasks by title, content, or subtasks search_term, size (optional, default: 50)

Date-Based Task Retrieval

Tool Description Parameters
get_tasks_due_today Get all tasks due today size (optional, default: 50)
get_tasks_due_tomorrow Get all tasks due tomorrow size (optional, default: 50)
get_tasks_due_in_days Get tasks due in exactly X days days (0 = today, 1 = tomorrow, etc.), size (optional, default: 50)
get_tasks_due_this_week Get tasks due within the next 7 days size (optional, default: 50)
get_overdue_tasks Get all overdue tasks size (optional, default: 50)

Getting Things Done (GTD) Framework

Tool Description Parameters
get_engaged_tasks Get "engaged" tasks (high priority or overdue) size (optional, default: 50)
get_next_tasks Get "next" tasks (medium priority or due tomorrow) size (optional, default: 50)
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

mcp-server-ticktick/
├── 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. Credential Loading: Client ID and Secret are loaded from env vars (MCP config) or ~/.ticktick/config.json
  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. Config Storage: All credentials and tokens are securely stored in ~/.ticktick/config.json (mode 0600)
  6. Token Refresh: The client automatically refreshes the access token when it expires

Config loading priority:

  • Credentials (client_id, client_secret): MCP env vars → ~/.ticktick/config.json
  • Tokens (access_token, refresh_token): ~/.ticktick/config.json → env vars (fallback)

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.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选