A Model Context Protocol (MCP) server for TickTick that enables interacting with your TickTick task management system directly through Claude and other MCP clients.
Note: This is a fork of jacepark12/ticktick-mcp with enhancements for multi-user support (LibreChat), npx installation, input validation, connection pooling, and comprehensive error handling.
Original work by Jaesung Park.
- 📋 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
This MCP server works with multiple platforms. Choose the setup guide for your use case:
- Claude Desktop - Personal use on macOS/Windows
- Claude Code - AI-powered IDE with MCP support
- LibreChat - Multi-user chat platform (Unraid/Docker)
All platforms require the same initial setup steps below.
- Python 3.10 or higher (automatically checked during npx installation)
- uv - Fast Python package installer (only needed for manual installation)
- TickTick account with API access
- TickTick API credentials (Client ID, Client Secret, Access Token)
Install and set up in one command - works with all platforms:
npx @varming/ticktick-mcpThis will:
- ✅ Automatically check for Python 3.10+
- ✅ Install all Python dependencies
- ✅ Make the server ready for Claude Desktop, Claude Code, and LibreChat
Or install globally:
npm install -g @varming/ticktick-mcp-
Clone this repository:
git clone https://github.com/Varming73/ticktick-mcp.git cd ticktick-mcp -
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 .
Authenticate with TickTick (required for all installation methods):
# If installed with npx globally:
ticktick-mcp auth
# If installed with uv:
uv run -m ticktick_mcp.cli authThis 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
.envfile
- Test your configuration:
This will verify that your TickTick credentials are working correctly.
uv run test_server.py
This server uses OAuth2 to authenticate with TickTick. The setup process is straightforward:
-
Register your application at the TickTick Developer Center
- Set the redirect URI to
http://localhost:8000/callback - Note your Client ID and Client Secret
- Set the redirect URI to
-
Run the authentication command:
uv run -m ticktick_mcp.cli auth
-
Follow the prompts to enter your Client ID and Client Secret
-
A browser window will open for you to authorize the application with your TickTick account
-
After authorizing, you'll be redirected back to the application, and your access tokens will be automatically saved to the
.envfile
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:
-
Register your application at the Dida365 Developer Center
- Set the redirect URI to
http://localhost:8000/callback - Note your Client ID and Client Secret
- Set the redirect URI to
-
Add environment variables to your
.envfile: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'
-
Follow the same authentication steps as for TickTick
-
Install Claude for Desktop
-
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
-
Add the TickTick MCP server configuration:
Option A: If you installed with npx:
{ "mcpServers": { "ticktick": { "command": "npx", "args": ["@varming/ticktick-mcp"] } } }Option B: If you installed manually with uv:
{ "mcpServers": { "ticktick": { "command": "<absolute path to uv>", "args": ["run", "--directory", "<absolute path to ticktick-mcp directory>", "-m", "ticktick_mcp.cli", "run"] } } } -
Restart Claude for Desktop
Once connected, you'll see the TickTick MCP server tools available in Claude, indicated by the 🔨 (tools) icon.
Claude Code is Anthropic's AI-powered IDE with built-in MCP support.
Authenticate with TickTick first:
# If installed with npx globally:
ticktick-mcp auth
# If installed with uv:
cd /path/to/ticktick-mcp
uv run -m ticktick_mcp.cli authThis creates a .env file with your tokens.
Add the TickTick MCP server to Claude Code:
Option A: If you installed with npx (simplest):
claude mcp add --transport stdio ticktick --scope user \
-- npx @varming/ticktick-mcpOption B: If you installed manually with uv:
# Basic setup (user scope - available across all projects)
claude mcp add --transport stdio ticktick --scope user \
-- /path/to/uv run --directory /path/to/ticktick-mcp -m ticktick_mcp.cli run
# Example with actual paths (macOS):
claude mcp add --transport stdio ticktick --scope user \
-- /Users/yourname/.local/bin/uv run --directory /Users/yourname/projects/ticktick-mcp -m ticktick_mcp.cli runScope Options:
--scope user(recommended): Available across all your projects--scope local: Only available in current project--scope project: Shared with team via.mcp.json(requires authentication setup for each team member)
# List all configured servers
claude mcp list
# Get details for ticktick server
claude mcp get ticktick
# Remove the server
claude mcp remove ticktick
# Check server status in Claude Code
/mcpOnce configured, you can use natural language in Claude Code:
- "Show me all my TickTick projects"
- "Create a task to review the PR in my Work project"
- "What tasks are due today?"
The 🔨 icon indicates MCP tools are available.
LibreChat is a multi-user chat platform that supports MCP servers with OAuth2 authentication. This TickTick MCP server has been designed to work seamlessly with LibreChat's multi-user environment.
- Per-User Authentication: Each user authenticates with their own TickTick account via OAuth2
- Process Isolation: LibreChat spawns separate MCP processes per user with isolated tokens
- Automatic Token Management: LibreChat handles token storage and injection into process environment
- Docker Compatible: Designed to run in containerized environments (Docker, Unraid, etc.)
Install directly from npm:
npx @varming/ticktick-mcpOr install globally:
npm install -g @varming/ticktick-mcpThe npx installation will:
- ✅ Automatically check for Python 3.10+
- ✅ Install all Python dependencies
- ✅ Set up the MCP server executable
- ✅ Work seamlessly with LibreChat's configuration
Clone and install from source:
git clone https://github.com/Varming73/ticktick-mcp.git
cd ticktick-mcp
uv venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
uv pip install -e .-
Register OAuth Application at TickTick Developer Center:
- Set redirect URI to:
http://your-librechat-domain:3080/oauth/callback - Note your Client ID and Client Secret
- For local testing:
http://localhost:3080/oauth/callback
- Set redirect URI to:
-
Configure LibreChat Environment:
Add to your LibreChat
.envfile or Docker environment:TICKTICK_CLIENT_ID=your_client_id_here TICKTICK_CLIENT_SECRET=your_client_secret_here
-
Add MCP Server to LibreChat Configuration:
If you installed via npx:
version: 1.0.0 mcpServers: ticktick: type: stdio command: npx args: - "@varming/ticktick-mcp" env: TICKTICK_CLIENT_ID: ${TICKTICK_CLIENT_ID} TICKTICK_CLIENT_SECRET: ${TICKTICK_CLIENT_SECRET} # User tokens will be injected automatically by LibreChat
If you installed manually with uv:
version: 1.0.0 mcpServers: ticktick: type: stdio command: uv args: - "run" - "--directory" - "/app/ticktick-mcp" # Update path for your setup - "-m" - "ticktick_mcp.cli" - "run" env: TICKTICK_CLIENT_ID: ${TICKTICK_CLIENT_ID} TICKTICK_CLIENT_SECRET: ${TICKTICK_CLIENT_SECRET} oauth: authorization_url: https://ticktick.com/oauth/authorize token_url: https://ticktick.com/oauth/token client_id: ${TICKTICK_CLIENT_ID} client_secret: ${TICKTICK_CLIENT_SECRET} scope: "tasks:read tasks:write" redirect_uri: http://localhost:3080/oauth/callback startup: false timeout: 30000 initTimeout: 10000
-
Docker Setup (if using Docker):
Ensure the ticktick-mcp directory is mounted and accessible:
volumes: - /path/to/ticktick-mcp:/app/ticktick-mcp
-
Restart LibreChat to load the new MCP server configuration.
-
Authentication:
- When first using TickTick commands in LibreChat, you'll be prompted to authenticate
- Click the "Authenticate" button in the LibreChat UI
- You'll be redirected to TickTick to authorize access
- After authorization, return to LibreChat - you're ready to use TickTick!
-
Using TickTick in Chat:
Once authenticated, you can use natural language commands:
- "Show me all my TickTick projects"
- "Create a task called 'Review PR' in my Work project with high priority"
- "What tasks are due today?"
- "Show me my high priority tasks"
- "Mark task X as complete"
- Isolated Data: Each user's TickTick data is completely isolated - users can only access their own tasks and projects
- Token Lifetime: Access tokens have a limited lifetime. Users may need to re-authenticate periodically
- Token Refresh: The server automatically attempts to refresh tokens, but refresh tokens also expire
- Process Per User: LibreChat spawns a new MCP process for each user session with their specific tokens
"TICKTICK_ACCESS_TOKEN not found in environment"
- User needs to authenticate via LibreChat UI
- Click the authenticate button when prompted
- Verify OAuth2 redirect URI matches your LibreChat deployment
"TickTick API connection failed"
- Verify TICKTICK_CLIENT_ID and TICKTICK_CLIENT_SECRET are set in LibreChat's server environment
- Check that the OAuth application is properly configured in TickTick Developer Center
- Ensure redirect URI in TickTick app matches LibreChat's callback URL
Token Refresh Issues
- Refresh tokens expire after a period of inactivity
- Users will need to re-authenticate when refresh tokens expire
- This is a TickTick API limitation, not a bug in the MCP server
Docker/Container Issues
- Ensure the ticktick-mcp directory path in the config matches the container's mount path
- Verify
uvis available in the container's PATH - Check container logs for Python/dependency errors
If LibreChat's OAuth2 integration has issues, you can use manual token entry instead. See librechat_config.yaml for the alternative configuration using customUserVars. Users will need to:
- Get their tokens from TickTick Developer Portal
- Enter tokens in LibreChat's MCP settings
- Tokens will be stored per-user by LibreChat
For Dida365 users, update the OAuth URLs in your LibreChat configuration:
oauth:
authorization_url: https://dida365.com/oauth/authorize
token_url: https://dida365.com/oauth/token
# ... rest of config
env:
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"| 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) |
update_project |
Update an existing project | project_id, name (optional), color (optional), view_mode (optional) |
delete_project |
Delete a project | project_id |
| 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 |
| 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 |
| 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) |
Here are some example prompts to use with Claude after connecting the TickTick MCP server:
- "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"
- "Update my 'Work' project to use kanban view and change the color to green"
- "When is my next deadline in TickTick?"
- "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"
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"
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
The project implements a complete OAuth 2.0 flow for TickTick:
- Initial Setup: User provides their TickTick API Client ID and Secret
- Browser Authorization: User is redirected to TickTick to grant access
- Token Reception: A local server receives the OAuth callback with the authorization code
- Token Exchange: The code is exchanged for access and refresh tokens
- Token Storage: Tokens are securely stored in the local
.envfile - Token Refresh: The client automatically refreshes the access token when it expires
This simplifies the user experience by handling the entire OAuth flow programmatically.
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is a fork of jacepark12/ticktick-mcp created by Jaesung Park.
- 🔐 Multi-User Support: Full LibreChat integration with per-user OAuth tokens
- 📦 npx Installation: Universal installation via npm for all platforms
- ✅ Input Validation: Comprehensive validation with TaskValidator class
- 🔄 Connection Pooling: HTTP connection pooling with automatic retry
- 🛡️ Error Handling: Master-level error handling with HTTP status code parsing
- 🔧 Missing Tools: Added
update_projecttool for project management - 📚 Documentation: Enhanced docs for Claude Desktop, Claude Code, and LibreChat
Special thanks to the original contributors:
This project is licensed under the MIT License - see the LICENSE file for details.
Original work Copyright (c) 2024 Jaesung Park
Fork enhancements Copyright (c) 2025 Lars Varming
This project is licensed under the MIT License - see the LICENSE file for details.