A Model Context Protocol (MCP) server for interacting with TickTick/Dida365 task management service. This server provides tools to manage tasks, projects, and tags through the TickTick API.
Dida MCP Server is built on the Model Context Protocol framework, enabling AI assistants to interact with your TickTick/Dida365 account. It provides a comprehensive set of tools for task and project management, allowing AI assistants to help organize your tasks according to GTD (Getting Things Done) principles.
# Install globally
npm install -g dida-mcp-server
# Or install locally in your project
npm install dida-mcp-server
# Clone the repository
git clone https://github.com/zhongwencool/dida-mcp-server.git
cd dida-mcp-server
# Install dependencies
npm install
# Build the project
npm run build
Before using the server, you need to authenticate with TickTick/Dida365. The server supports two authentication methods:
The get-access-token
script handles the authentication process for both API versions. To use it:
# If installed globally
dida-get-token
# If installed locally or from source
npm run get-token
The script will:
~/.dida-mcp-config.json
To use OAuth authentication, you need to:
http://localhost:3000/oauth/callback
The authentication process creates a configuration file at ~/.dida-mcp-config.json
with the following structure:
{
"access_token": "your-v1-oauth-token",
"refresh_token": "your-refresh-token",
"expires_at": 1234567890000,
"token_type": "bearer",
"v2_access_token": "your-v2-session-token",
"inboxId": "your-inbox-project-id"
}
This file is automatically detected and used by the server when it starts.
# If installed globally
dida-mcp-server
# If installed locally or from source
npm start
The server will automatically attempt to authenticate using stored tokens and display the authentication status.
You can connect to the server using any MCP-compatible client. The server provides a configuration that can be added to your MCP client configuration:
{
"mcpServers": {
"dida": {
"command": "dida-mcp-server"
}
}
}
Or if you installed it locally:
{
"mcpServers": {
"dida": {
"command": "node",
"args": [
"/path/to/node_modules/dida-mcp-server/dist/index.js"
]
}
}
}
check-auth-status
: Check the current authentication statuslist-projects
: Get all projectscreate-project
: Create a new projectupdate-project
: Update an existing projectdelete-project
: Delete a projectrefresh-project-cache
: Manually refresh the project cachelist-tasks
: Get tasks from a project (defaults to inbox)create-task
: Create a new taskget-task
: Get a specific task by IDupdate-task
: Update a taskbatch-update-tasks
: Update multiple tasks at oncecomplete-task
: Mark a task as completeddelete-task
: Delete a taskbatch-delete-tasks
: Delete multiple tasks at oncemove-task
: Move a task to a different projectbatch-move-tasks
: Move multiple tasks to different projectslist-cached-data
: View cached projects and tags dataThe server includes two built-in prompts:
npm run dev
This will start the server in watch mode, automatically recompiling and restarting when changes are made.
npm test
Or to run tests in watch mode:
npm run test:watch
├── dist/ # Compiled JavaScript files
├── src/
│ ├── auth/ # Authentication-related code
│ ├── projects/ # Project management tools
│ ├── resources/ # Resource definitions (cached data)
│ ├── tasks/ # Task management tools
│ ├── types/ # TypeScript type definitions
│ ├── utils/ # Utility functions
│ ├── config.ts # Configuration management
│ ├── get-access-token.ts # Token acquisition script
│ ├── index.ts # Main server entry point
│ └── systemPrompt.ts # GTD assistant system prompt
├── tests/ # Test files
├── package.json # Project metadata and dependencies
├── LICENSE # ISC License file
└── tsconfig.json # TypeScript configuration
This project uses the Dida365 Open API. For more information, see the Dida365 Open API Documentation.
ISC
To publish the package to NPM, follow these steps:
# Login to npm (if not already logged in)
npm login
# Build the project
npm run build
# Test the package
npm test
# Publish to npm
npm publish
To update the package:
package.json
npm publish
Contributions are welcome! Please feel free to submit a Pull Request.
{
"mcpServers": {
"dida": {
"env": {},
"args": [],
"command": "npx"
}
}
}
Seamless access to top MCP servers powering the future of AI integration.