Sponsored by Deepsite.site

Dida MCP Server

Created By
zhongwencool8 months ago
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.
Content

Dida MCP Server

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.

License: ISC

Overview

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.

Features

  • Authentication: OAuth-based authentication with TickTick/Dida365 API
  • Task Management: Create, read, update, delete, and move tasks
  • Project Management: Create, read, update, and delete projects
  • Batch Operations: Efficiently manage multiple tasks at once
  • GTD Assistant: Built-in system prompt for GTD-based task organization
  • Cached Data: Efficient caching of projects and tags data

Prerequisites

  • Node.js (v16 or higher)
  • npm (v7 or higher)
  • TickTick/Dida365 account
  • Client ID and Client Secret from Dida365 Developer Center (for OAuth authentication)

Installation

# Clone the repository
git clone https://github.com/yourusername/dida-mcp-server.git
cd dida-mcp-server

# Install dependencies
npm install

# Build the project
npm run build

Authentication

Before using the server, you need to authenticate with TickTick/Dida365. The server supports two authentication methods:

  1. OAuth Authentication (V1 API): Uses the Dida365 Open API with OAuth tokens
  2. Username/Password Authentication (V2 API): Uses the internal API with session tokens

Using get-access-token

The get-access-token.ts script handles the authentication process for both API versions. To use it:

npm run get-token

The script will:

  1. Prompt you for your TickTick/Dida365 username and password (for V2 API)
  2. Prompt you for your Client ID and Client Secret ([for V1 API OAuth])
  3. Start a local server on port 3000 to handle the OAuth callback
  4. Open your browser to authorize the application
  5. Exchange the authorization code for an access token
  6. Store both tokens in the configuration file at ~/.dida-mcp-config.json
  7. Display a success page with token information and MCP server configuration

Prerequisites for OAuth Authentication

To use OAuth authentication, you need to:

  1. Register your application in the Dida365 Developer Center
  2. Set your redirect URI to http://localhost:3000/oauth/callback
  3. Obtain a Client ID and Client Secret

Configuration File

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.

Usage

Starting the Server

npm start

The server will automatically attempt to authenticate using stored tokens and display the authentication status.

Connecting with an MCP Client

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": "node",
      "args": [
        "/path/to/dida-mcp-server/dist/index.js"
      ]
    }
  }
}

Available Tools

Authentication Tools

  • check-auth-status: Check the current authentication status

Project Management Tools

  • list-projects: Get all projects
  • create-project: Create a new project
  • update-project: Update an existing project
  • delete-project: Delete a project
  • refresh-project-cache: Manually refresh the project cache

Task Management Tools

  • list-tasks: Get tasks from a project (defaults to inbox)
  • create-task: Create a new task
  • get-task: Get a specific task by ID
  • update-task: Update a task
  • batch-update-tasks: Update multiple tasks at once
  • complete-task: Mark a task as completed
  • delete-task: Delete a task
  • batch-delete-tasks: Delete multiple tasks at once
  • move-task: Move a task to a different project
  • batch-move-tasks: Move multiple tasks to different projects

Data Query Tools

  • list-cached-data: View cached projects and tags data

System Prompts

The server includes two built-in prompts:

  1. GTD Assistant Prompt: A system prompt that provides guidance on using the tools to implement GTD methodology
  2. Process Inbox Prompt: A user-level prompt that helps organize tasks in the inbox according to GTD principles

Development

Running in Development Mode

npm run dev

This will start the server in watch mode, automatically recompiling and restarting when changes are made.

Running Tests

npm test

Or to run tests in watch mode:

npm run test:watch

Project Structure

├── 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
└── tsconfig.json      # TypeScript configuration

API Documentation

This project uses the Dida365 Open API. For more information, see the Dida365 Open API Documentation.

License

ISC

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Acknowledgements

Server Config

{
  "mcpServers": {
    "dida": {
      "command": "node",
      "args": [
        "/path/to/dida-mcp-server/build/index.js"
      ]
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
ChatWiseThe second fastest AI chatbot™
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Serper MCP ServerA Serper MCP Server
Amap Maps高德地图官方 MCP Server
Playwright McpPlaywright MCP server
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
WindsurfThe new purpose-built IDE to harness magic
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
DeepChatYour AI Partner on Desktop
CursorThe AI Code Editor
Tavily Mcp