DT

doist/todoist-mcp

开发工具

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

562 stars 55 forks 质量 85 趋势 40MIT

doist/todoist-mcp 是从 https://github.com/doist/todoist-mcp. 导入的 MCP 服务器候选

概览

doist/todoist-mcp 是从 https://github.com/doist/todoist-mcp. 导入的 MCP 服务器候选

概述(AI 翻译)

连接 AI 代理与 Todoist 的库。包含可集成于 LLM 的工具, 使他们能够代表用户访问和修改Todoist账户。

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

使用工具

1.将此仓库添加为依赖

2.导入工具并连接到 AI

这里有一个使用 Vercel AI SDK 的例子。

作为MCP服务器使用

快速开始

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

设置指南

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

主网址(可流式HTTP): https://ai.todoist.net/mcp

克劳德桌面

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

光标

创建一个配置文件:

  • 全球: ~/.cursor/mcp.json
  • 项目特定: .cursor/mcp.json

如果被要求,就在光标设置里启用服务器。

克劳德代码(CLI)

最快的设置是官方的Todoist插件,它帮你连接MCP服务器:

本页由 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 @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 doist/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.

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

在 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"] } } }