Enables task and project management through natural language or programmatic access, supporting task creation with priorities, due dates, reminders, recurring tasks with RRULE syntax, and project organization.
TickTick API Client & MCP Server
A Python client library for TickTick with two ways to use it:
MCP Server - Use TickTick with Claude Desktop through natural conversation
Python CLI/Library - Programmatic access for automation and scripting
Choose Your Adventure
π€ Want to use TickTick with Claude Desktop?
β
Manage tasks through conversation:
π» Want CLI tools or Python automation?
β Continue reading below
Use command-line tools or build custom scripts:
Overview
This project provides three approaches to interact with TickTick:
MCP Server (
ticktick_mcp_server.py) - Model Context Protocol server for Claude DesktopREST API Client (
ticktick_rest_api.py) - Direct REST API implementation for automationOAuth Client (
ticktick_setup.py) - Uses theticktick-pylibrary (currently broken)
Features
MCP Server:
Natural language task creation and management
Conversational interface through Claude Desktop
Real-time task status and project overview
Fuzzy search for tasks and projects
Python Client:
Create and manage TickTick projects (lists)
Create recurring tasks with RRULE syntax
Set task priorities, due dates, and reminders
OAuth2 authentication with token caching
REST API implementation for advanced use cases
Command-line tools for quick task addition
Quick Start (5 Minutes)
1. Install Dependencies
2. Configure Credentials
Copy .env.example to .env and add your credentials:
Edit .env:
For REST API usage, also add:
Get API credentials:
Click "+ App Name" and create an app
Set redirect URI to:
http://127.0.0.1:8080Copy your Client ID and Client Secret
3. Test Authentication
Usage Examples
Quick Start: Add Individual Tasks (Recommended)
The easiest way to add tasks is using the add_task.py script:
Adding long descriptions:
Priority levels:
5= High (red)3= Medium (yellow)1= Low (blue)0= None (no color)
REST API Client (For Full System Setup)
β οΈ Important: Use ticktick_rest_api.py instead of ticktick_setup.py. The OAuth client (ticktick-py library) is currently broken and re-authenticates on every run.
Programmatic Usage (Advanced)
Project Structure
Documentation
MCP Server (Claude Desktop)
MCP_README.md - π€ MCP Server Setup - Use TickTick with Claude Desktop
EXAMPLES.md - π¬ Usage Examples - Real conversations with Claude
Python CLI/Library
GETTING-STARTED.md - β START HERE - Complete setup guide for new users
ADDING-TASKS-CLI.md - β Quick Reference - Add tasks using
~/bin/ttcommandTICKTICK-QUICKSTART.md - Get started in 5 minutes
TICKTICK-SETUP.md - Complete setup guide with examples
CLAUDE.md - Technical architecture and development guide
API Reference
Task Creation
Priority Levels
5= High (red)3= Medium (yellow)1= Low (blue)0= None (no color)
Troubleshooting
Authentication Failed
Fix: Add credentials to .env file
Tasks Not Appearing
Check TickTick web/app to verify projects were created
Run authentication test:
python test_ticktick_auth.pyDelete projects in TickTick and re-run setup
Token Expired
Tokens are cached in .ticktick-token.json and .token-oauth. If authentication fails:
Use Cases
This library can be used for:
Personal task management automation
Habit tracking systems
Project management integrations
Team workflow automation
Custom productivity tools
Health and wellness tracking
Recurring reminder systems
Security
Never commit
.envfile to version controlToken files (
.ticktick-token.json,.token-oauth) are auto-ignoredOAuth tokens are cached locally for security
Credentials are only used for initial authentication
Dependencies
ticktick-py- Official TickTick Python SDKrequests- HTTP library for REST APIpython-dotenv- Environment variable management
Contributing
This is a reference implementation. Feel free to:
Fork and customize for your needs
Add new features
Improve error handling
Extend REST API coverage
License
MIT License - Use freely in your projects
Links
Built for automation enthusiasts who want programmatic control over their TickTick workflows.
This server cannot be installed