Todoist 服务端
一个Python服务器,它使Claude能够与Todoist的任务管理API交互,允许用户通过Claude的界面直接创建、管理和组织任务。
服务介绍
Todoist MCP 服务器 (Python)
这是这个 TypeScript 版本的 Todoist MCP 服务器 的 Python 移植版本。移植版本使用 Claude 创建,以利用 Python MCP SDK 和 Todoist Python API 提供相同的功能。
安装
前提条件
- Python 3.10+
- UV 包管理器 (安装指南)
- Todoist API 令牌
获取 Todoist API 令牌
- 登录您的 Todoist 账户
- 前往设置 → 集成
- 在“开发者”部分找到您的 API 令牌
使用 Claude Desktop 进行配置
在您的 claude_desktop_config.json 中添加以下内容:
{
"mcpServers": {
"todoist": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/todoist-mcp-server",
"run",
"main.py"
],
"env": {
"TODOIST_API_TOKEN": "your_todoist_api_token"
}
}
}
}
可用工具
要查看当前可用的工具,
# (For Mac) With GNU grep installed as ggrep
ggrep -A 1 '@mcp.tool()' main.py | ggrep -Po '(?<=^def )([^(]+)'