Todoist MCP Server
Enables interaction with Todoist through the MCP interface, providing full CRUD operations for tasks and projects including creating, updating, completing, and filtering tasks with natural language commands.
README
Todoist MCP Server (TypeScript)
A Model Context Protocol (MCP) server for interacting with the Todoist API. This server provides CRUD operations for both Tasks and Projects through a standardized MCP interface, built with TypeScript and the official MCP SDK.
Features
Project Operations
- ✅ Create new projects
- ✅ Get project details
- ✅ List all projects
- ✅ Update project properties
- ✅ Delete projects
Task Operations
- ✅ Create new tasks
- ✅ Get task details
- ✅ List tasks with filtering
- ✅ Update task properties
- ✅ Complete tasks
- ✅ Reopen completed tasks
- ✅ Delete tasks
Setup
Prerequisites
- Node.js 18+
- npm or yarn
- Todoist API token
Installation
-
Clone or download the server code
-
Install dependencies:
npm install -
Get your Todoist API token:
- Go to Todoist Integrations
- Copy your API token
-
Set the environment variable:
export TODOIST_API_TOKEN=your_token_here
Building and Running
# Build the TypeScript code
npm run build
# Run the server
npm start
# Or build and run in one command
npm run dev
# For development with auto-rebuild
npm run watch
Configuration for Claude Desktop
Add the following to your Claude Desktop configuration file:
For macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
For Windows: %APPDATA%\\Claude\\claude_desktop_config.json
{
"mcpServers": {
"todoist": {
"command": "npx",
"args": ["-y", "@angdrew/todoist-mcp-server"],
"env": {
"TODOIST_API_TOKEN": "your_token_here"
}
}
}
}
Available Tools
Project Tools
create_project
Create a new project in Todoist
- name (required): Project name
- color (optional): Project color
- viewStyle (optional): View style ("list" or "board")
- parentId (optional): Parent project ID for sub-projects
- isFavorite (optional): Mark as favorite
get_project
Get project details by ID
- projectId (required): Project ID
list_projects
List all projects (no parameters)
update_project
Update project properties
- projectId (required): Project ID
- name (optional): New name
- color (optional): New color
- viewStyle (optional): New view style
- isFavorite (optional): Favorite status
delete_project
Delete a project
- projectId (required): Project ID
Task Tools
create_task
Create a new task
- content (required): Task content
- description (optional): Task description
- projectId (optional): Project ID
- dueString (optional): Due date in natural language
- dueDate (optional): Due date (YYYY-MM-DD)
- dueDatetime (optional): Due datetime (RFC3339)
- priority (optional): Priority 1-4 (4 is highest)
- labels (optional): Array of labels
get_task
Get task details by ID
- taskId (required): Task ID
list_tasks
List tasks with optional filters
- projectId (optional): Filter by project ID
- filter (optional): Filter expression (e.g., 'today', 'overdue')
- label (optional): Filter by label
update_task
Update task properties
- taskId (required): Task ID
- content (optional): New content
- description (optional): New description
- dueString (optional): New due date
- dueDate (optional): New due date (YYYY-MM-DD)
- dueDatetime (optional): New due datetime
- priority (optional): New priority
- labels (optional): New labels array
complete_task
Mark a task as completed
- taskId (required): Task ID
reopen_task
Reopen a completed task
- taskId (required): Task ID
delete_task
Delete a task
- taskId (required): Task ID
Usage Examples
Once configured with Claude Desktop, you can use natural language commands:
- "Create a new project called 'Website Redesign'"
- "List all my projects"
- "Add a task 'Review mockups' to the Website Redesign project"
- "Show me all tasks due today"
- "Mark task 12345 as completed"
- "Update the task content to 'Review and approve mockups'"
Error Handling
The server includes comprehensive error handling for:
- Invalid API tokens
- Missing required parameters
- API rate limits
- Network errors
- Invalid project/task IDs
Development
Building
npm run build
Watch Mode
npm run watch
Project Structure
src/
├── index.ts # Main server implementation
├── types.ts # TypeScript type definitions (optional)
build/ # Compiled JavaScript output
├── index.js
├── index.d.ts
package.json # Project dependencies and scripts
tsconfig.json # TypeScript configuration
Dependencies
- @modelcontextprotocol/sdk: Official MCP SDK for TypeScript
- @doist/todoist-api-typescript: Official Todoist API TypeScript client
- zod: Schema validation library
License
This project is provided as-is for educational and personal use.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。