article
README
🚀 Todoist MCP 服务器(Python)
这是 TypeScript 版本 Todoist MCP 服务器的 Python 移植版本。该版本借助 Claude 实现了相同功能,同时运用了 Python MCP SDK 和 Todoist Python API。
🚀 快速开始
Todoist MCP 服务器(Python)是 TypeScript 版本的 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"
}
}
}
}
💻 使用示例
查看当前可用工具
#(对于 Mac)安装 GNU grep 后作为 ggrep
ggrep -Po '(?<=^mcp.tool\(\)\()([^)]+)' main.py
Scan to contact