TT

todoist/todoist-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

568 stars 56 forks 质量 85 趋势 41MIT

一套与AI代理连接的工具,允许他们代表用户使用Todoist. 包括MCP支助.

概览

连接 AI 代理到 Todoist 的库 。 包括可以集成到LLMs中的工具,使它们能够代表用户访问并修改一个todoist账户. 这些工具既可以通过MCP服务器使用,也可以直接从其他项目中导入,以集成到您自己的AI对话界面. 此套件之前作为@doist/todoist-mcp发布. 以下是使用Vercel的AI SDK的例子. 您可以用 npx 直接运行 MCP 服务器 : Todoist MCP服务器作为可流的HTTP服务提供,便于与各种AI客户端进行集成: 1. 开放设置 → 连接器 → 添加自定义连接器 2. 输入 [[T0] 并完成 OAuth 认证 如果提示, 则启用光标设置中的服务器 .

概述(AI 翻译)

连接 AI 代理到 Todoist 的库 。 包括可纳入LLMS的工具, 以用户的名义访问和修改 Todoist 账户。

这些工具既可以通过MCP服务器使用,也可以直接从其他项目导入到 将它们集成到您的 AI 对话界面中 。

□ 使用工具

      1. 将此寄存器添加为依赖

这个软件包之前作为@doist/todoist-mcp发布.

  1. 导入工具并插入AI

以下是使用Vercel的AI SDK的例子.

□ 使用 MCP 服务器

QQ 快速启动

您可以用 npx 直接运行 MCP 服务器 :

设置指南

Todoist MCP服务器作为可流的HTTP服务提供,便于与各种AI客户端进行集成:

** 初级URL(Streamable HTTP):** https://ai.todoist.net/mcp

克劳德桌面

  1. 开放设置 – 连接器 – 添加自定义连接器
  2. 输入https://ai.todoist.net/mcp并完成 OAuth 认证

QQ 光标

创建配置文件 :

  • ** 全球:** ~/.cursor/mcp.json
  • ** 具体项目:** .cursor/mcp.json

如果提示, 则启用光标设置中的服务器 。

克洛德代码(CLI)

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

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 @todoist/mcp

This package was previously published as @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 '@todoist/mcp'
import { TodoistApi } from '@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 -p @todoist/mcp 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
在 GitHub 查看完整 README

安装

npx -y mcp-remote https://ai.todoist.net/mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "todoist": { "command": "npx", "args": ["-y", "mcp-remote", "https://ai.todoist.net/mcp"] } } }