todoist-mcp
A Cloudflare Worker-based MCP server that enables AI assistants to read and manage Todoist tasks through tools like get_tasks, add_task, update_task, complete_task, delete_task, and move_task.
README
Todoist MCP — Cloudflare Worker
A Model Context Protocol (MCP) server for Todoist, hosted on Cloudflare Workers. Lets any AI assistant (Claude, GPT, Gemini, etc.) read and manage your Todoist tasks.
Built against the Todoist unified API v1 (
https://api.todoist.com/api/v1). The older REST v2 / Sync v9 APIs are deprecated.
How it works
Telegram message
↓
Your bot
↓
LLM (Claude / GPT / Gemini / etc.)
↓ calls tools via MCP JSON-RPC
This Worker ←→ Todoist API
The Worker exposes a single POST / endpoint that speaks MCP JSON-RPC. Your bot connects to it and the LLM can call any of the 6 tools to read/write tasks.
Your data model
You use Todoist's task/subtask hierarchy to simulate projects:
| Todoist concept | Your meaning |
|---|---|
| Top-level task (no parent) | "Project" — e.g. Create telegram assistant bot |
| Subtask (has parent_id) | Actual step — e.g. Set up todoist MCP |
| Top-level task (standalone) | Simple task — e.g. Mop the floor |
This matters for the AI: when you say "add a task to my Telegram bot project", the AI should find the parent task ID first, then call add_task with that parent_id.
Tools
| Tool | What it does |
|---|---|
get_tasks |
List all tasks, optionally filtered. Use mode=tree to see subtasks nested under their parent. |
add_task |
Create a top-level task or subtask (pass parent_id to nest it). |
update_task |
Edit title, description, due date, priority, or labels. |
complete_task |
Mark a task done. |
delete_task |
Delete a task (and all its subtasks). |
move_task |
Move a subtask under a different parent (different "project"), or promote to top-level. |
Priority values
1= Normal (default)2= Medium3= High4= Urgent
Filtering
The filter parameter accepts Todoist filter query syntax (e.g. "today", "overdue", "@work & p1"). When set, it takes precedence over mode/parent_id/label and returns a flat list.
Setup
1. Install dependencies
npm install
2. Set your secrets
Get your Todoist token from todoist.com/app/settings/integrations/developer.
# Your Todoist API token
npx wrangler secret put TODOIST_API_TOKEN
# A shared secret your bot sends to authenticate to this Worker.
# Generate a long random string, e.g.: openssl rand -hex 32
npx wrangler secret put MCP_SECRET
Why MCP_SECRET? The Worker is on the public internet. Without this gate, anyone who finds the URL could read, edit, and delete your entire Todoist. Your bot must send it as
Authorization: Bearer <MCP_SECRET>on every request.
3. Deploy
npm run deploy
Your endpoint: https://todoist-mcp.<your-subdomain>.workers.dev
Local development
# Put both secrets in .dev.vars (already gitignored):
# TODOIST_API_TOKEN=your_token_here
# MCP_SECRET=pick_a_long_random_string_here
npm run dev
# → http://localhost:8787
Connecting to your AI
See ai-system-prompt.md for the system prompt block to add to your Telegram bot so the AI knows how to use these tools correctly.
How to call a tool (raw JSON-RPC)
Every request needs the Authorization: Bearer <MCP_SECRET> header.
POST https://todoist-mcp.<your-subdomain>.workers.dev
Authorization: Bearer <your MCP_SECRET>
Content-Type: application/json
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "add_task",
"arguments": {
"content": "Set up todoist MCP",
"parent_id": "12345678",
"due_string": "tomorrow",
"priority": 3
}
}
}
Discover available tools
{ "jsonrpc": "2.0", "id": 1, "method": "tools/list", "params": {} }
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.