@doist/todoist-mcp

中文文档
14.0.5发布于 2026/11/11MITTypeScriptES Module构建来源已验证近 30 天下载 2.8万

The official Todoist MCP server

此软件包已被标记为弃用

Moved to @todoist/mcp. Update dependencies and MCP client configs, e.g. npx -p @todoist/mcp todoist-mcp

原始使用文档
文档目录16 节
  1. Using tools
  2. 1. Add this repository as a dependency
  3. 2. Import the tools and plug them to an AI
  4. Using as an MCP server
  5. Quick Start
  6. Setup Guide
  7. Features
  8. Available Tools
  9. Dependencies
  10. MCP Server Setup
  11. Local Development Setup
  12. MCP Apps
  13. Quick Start
  14. Contributing
  15. Releasing
  16. How it works

Todoist MCP Server

Library for connecting AI agents to Todoist. Includes tools that can be integrated into LLMs, enabling them to access and modify a Todoist account on the user's behalf.

These tools can be used both through an MCP server, or imported directly in other projects to integrate them to your own AI conversational interfaces.

Using tools

1. Add this repository as a dependency

npm install @doist/todoist-mcp

2. Import the tools and plug them to an AI

Here's an example using Vercel's AI SDK.

import { findTasksByDate, addTasks } from '@doist/todoist-mcp'
import { TodoistApi } from '@doist/todoist-sdk'
import { streamText } from 'ai'

// Create Todoist API client
const client = new TodoistApi(process.env.TODOIST_API_KEY)

// Helper to wrap tools with the client
function wrapTool(tool, todoistClient) {
    return {
        ...tool,
        execute(args) {
            return tool.execute(args, todoistClient)
        },
    }
}

const result = streamText({
    model: yourModel,
    system: 'You are a helpful Todoist assistant',
    tools: {
        findTasksByDate: wrapTool(findTasksByDate, client),
        addTasks: wrapTool(addTasks, client),
    },
})

Using as an MCP server

Quick Start

You can run the MCP server directly with npx:

npx @doist/todoist-mcp

Setup Guide

The Todoist MCP server is available as a streamable HTTP service for easy integration with various AI clients:

Primary URL (Streamable HTTP): https://ai.todoist.net/mcp

Claude Desktop

  1. Open Settings → Connectors → Add custom connector
  2. Enter https://ai.todoist.net/mcp and complete OAuth authentication

Cursor

Create a configuration file:

  • Global: ~/.cursor/mcp.json
  • Project-specific: .cursor/mcp.json
{
    "mcpServers": {
        "todoist": {
            "command": "npx",
            "args": ["-y", "mcp-remote", "https://ai.todoist.net/mcp"]
        }
    }
}

Then enable the server in Cursor settings if prompted.

Claude Code (CLI)

The fastest setup is the official Todoist plugin, which wires up the MCP server for you:

/plugin marketplace add todoist/todoist-mcp
/plugin install todoist@doist

OAuth runs in your browser the first time you use a Todoist tool. See Anthropic's plugin docs for more.

If you'd rather configure the MCP server manually, run:

claude mcp add --transport http todoist https://ai.todoist.net/mcp

Then launch claude, execute /mcp, and select the todoist MCP server to authenticate.

Gemini CLI

Install the official Todoist extension with Gemini CLI 0.67.0 or later:

gemini extensions install https://github.com/todoist/todoist-mcp

Start or restart Gemini CLI, then run /mcp auth todoist and sign in with your Todoist account. Todoist hosts the server; no API key or local server is needed.

The assistant can read and change your Todoist tasks and projects. Revoke access at any time in Todoist under Settings → Integrations.

Visual Studio Code

  1. Open Command Palette → MCP: Add Server
  2. Select HTTP transport and use:
{
    "servers": {
        "todoist": {
            "type": "http",
            "url": "https://ai.todoist.net/mcp"
        }
    }
}

Other MCP Clients

npx -y mcp-remote https://ai.todoist.net/mcp

For more details on setting up and using the MCP server, including creating custom servers, see docs/mcp-server.md.

Features

A key feature of this project is that tools can be reused, and are not written specifically for use in an MCP server. They can be hooked up as tools to other conversational AI interfaces (e.g. Vercel's AI SDK).

This project is in its early stages. Expect more and/or better tools soon.

Nevertheless, our goal is to provide a small set of tools that enable complete workflows, rather than just atomic actions, striking a balance between flexibility and efficiency for LLMs.

For our design philosophy, guidelines, and development patterns, see docs/tool-design.md.

Available Tools

For a complete list of available tools, see the src/tools directory.

OpenAI MCP Compatibility

This server includes search and fetch tools that follow the OpenAI MCP specification, enabling seamless integration with OpenAI's MCP protocol. These tools return JSON-encoded results optimized for OpenAI's requirements while maintaining compatibility with the broader MCP ecosystem.

Dependencies

MCP Server Setup

See docs/mcp-server.md for full instructions on setting up the MCP server.

Local Development Setup

See docs/dev-setup.md for full setup instructions and CONTRIBUTING.md for contributor workflows and quality checks.

MCP Apps

This project includes support for MCP Apps – interactive UI widgets rendered inline in AI chat interfaces. Widgets provide rich visual representations of tool outputs (e.g., task lists) instead of plain text.

See docs/mcp-apps.md for the widget architecture, build pipeline, and development workflow.

Quick Start

After cloning and setting up the repository:

  • npm start - Build and run the MCP inspector for testing
  • npm run dev - Development mode with auto-rebuild and restart
  • npm run tool:list - List available tools for direct execution
  • npm run tool -- <tool-name> '<json-args>' - Run a tool directly without MCP

When using npm run tool, include -- before tool arguments so npm forwards them to scripts/run-tool.ts.

Example check before write operations: npm run tool -- user-info '{}' This confirms which Todoist account the current TODOIST_API_KEY is connected to.

run-tool uses TODOIST_API_KEY from your .env file (created from .env.example by npm run setup). Use a test account or a temporary project when running write operations to avoid modifying real data.

Contributing

See CONTRIBUTING.md for:

  • Development workflow
  • Running tools directly with scripts/run-tool.ts
  • Testing and quality checks
  • Commit conventions

Releasing

This project uses release-please to automate version management and package publishing.

How it works

  1. Make your changes using Conventional Commits:

    • feat: for new features (minor version bump)
    • fix: for bug fixes (patch version bump)
    • feat!: or fix!: for breaking changes (major version bump)
    • docs: for documentation changes
    • chore: for maintenance tasks
    • ci: for CI changes
  2. When commits are pushed to main:

    • Release-please automatically creates/updates a release PR
    • The PR includes version bump and changelog updates
    • Review the PR and merge when ready
  3. After merging the release PR:

    • A new GitHub release is automatically created
    • A new tag is created
    • The publish workflow is triggered
    • The package is published to npm

版本与发布记录

@doist/todoist-mcp 共发布 88 个版本,首次发布于 2026/05/14;过去 12 个月发布了 88 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
14.0.5latest2026/11/112 天前
14.0.42026/11/103 天前
14.0.32026/11/094 天前
14.0.22026/11/094 天前
14.0.12026/11/094 天前
14.0.02026/11/094 天前

关于 @doist/todoist-mcp 的常见问题

@doist/todoist-mcp 是什么?

The official Todoist MCP server注意:该包已被作者标记为弃用——Moved to @todoist/mcp. Update dependencies and MCP client configs, e.g. npx -p @todoist/mcp todoist-mcp

如何安装 @doist/todoist-mcp?

在项目目录运行 npm install @doist/todoist-mcp,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:@modelcontextprotocol/node(^2.1.0)、@modelcontextprotocol/server(^2.2.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。它还提供命令行工具 todoist-mcp、todoist-mcp-http,可以用 npx todoist-mcp 直接运行。

@doist/todoist-mcp 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@doist/todoist-mcp 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@doist/todoist-mcp 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=24。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@doist/todoist-mcp 可以商用吗?

@doist/todoist-mcp 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@doist/todoist-mcp 的下载量有多少?

根据 npm 官方下载统计,@doist/todoist-mcp 在 2026/10/13 – 2026/11/11 这 30 天内被下载 28,363 次,日均约 945 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@doist/todoist-mcp 还在维护吗?

最新版本 14.0.5 发布于 2026/11/11(2 天前);至今共发布 88 个版本,其中过去 12 个月发布了 88 个;首次发布于 2026/05/14。作者已将其标记为弃用,新项目建议寻找替代方案。