ticktick-mcp
by: jacepark12
MCP server that interacts with TickTick via the TickTick Open API
πOverview
Purpose: The TickTick MCP Server facilitates direct interaction with the TickTick task management system through natural language processing clients like Claude.
Overview: This server implements the Model Context Protocol (MCP) to allow users to manage their TickTick tasks and projects effectively. It leverages Python and integrates seamlessly with TickTick's API for robust task management.
Key Features:
-
Task and Project Management: View, create, update, complete, and delete tasks and projects through natural language commands, enhancing user experience and productivity.
-
API Integration: Full integration with TickTick's open API allows for a comprehensive set of actions on tasks and projects, ensuring real-time updates and functionality.
TickTick MCP Server
A Model Context Protocol (MCP) server for TickTick that enables interaction 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 (GitHub)
- TickTick account with API access
- TickTick API credentials (Client ID, Client Secret, Access Token)
Installation
-
Clone this repository:
git clone https://github.com/parkjs814/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:
uv run -m ticktick_mcp.cli auth
This will prompt for your TickTick Client ID and Client Secret, open a browser for login, and save your access tokens to a
.env
file. -
Test your configuration:
uv run test_server.py
This verifies that your TickTick credentials are working correctly.
Authentication with TickTick
The server uses OAuth2 for authentication. Steps:
-
Register your application at the TickTick Developer Center: https://developer.ticktick.com/manage
- Set redirect URI to
http://localhost:8000/callback
- Note your Client ID and Client Secret
- Set redirect URI to
-
Run the authentication command:
uv run -m ticktick_mcp.cli auth
-
Enter your Client ID and Client Secret when prompted.
-
Authorize the application in the browser.
-
Access tokens will be saved to
.env
.
Tokens refresh automatically; reauthentication is only required if access is revoked or .env
deleted.
Usage with Claude for Desktop
-
Install Claude for Desktop from https://claude.ai/download
-
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 with absolute paths:
{ "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.
After connecting, youβll see the TickTick MCP tools available in Claude, indicated by the π¨ icon.
Available MCP Tools
Tool | Description | Parameters |
---|---|---|
get_projects | List all TickTick projects | None |
get_project | Get details of a project | project_id |
get_project_tasks | List tasks in a project | project_id |
get_task | Get details of a task | project_id , task_id |
create_task | Create a new task | title , project_id , optional: content , start_date , due_date , priority |
update_task | Update a task | task_id , project_id , optional: title , content , start_date , due_date , priority |
complete_task | Mark a task complete | project_id , task_id |
delete_task | Delete a task | project_id , task_id |
create_project | Create a new project | name , optional: color , view_mode |
delete_project | Delete a project | project_id |
Example Prompts for Claude
- 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?
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 # Server test script
βββ ticktick_mcp/ # Main package
βββ __init__.py
βββ authenticate.py # OAuth authentication utility
βββ cli.py # Command-line interface
βββ src/
βββ __init__.py
βββ auth.py # OAuth implementation
βββ server.py # MCP server implementation
βββ ticktick_client.py # TickTick API client
Authentication Flow
The OAuth 2.0 flow includes:
- User inputs TickTick API Client ID and Secret
- Redirect to TickTick for authorization
- Local server captures OAuth callback with code
- Code exchanged for access and refresh tokens
- Tokens stored securely in
.env
- Automatic token refresh on expiration
This provides a smooth authentication experience.
Contributing
Contributions are welcome! To contribute:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push your branch (
git push origin feature/amazing-feature
) - Open a Pull Request
License
This project is licensed under the MIT License.