Todoist MCP Server
Todoist MCP Server is a command-line interface (CLI) application that integrates various AI assistants (like Claude, Cursor, Codex, Gemini) with Todoist, enabling natural language task management. It acts as a Model Context Protocol (MCP) server, translating AI commands into Todoist API actions. Currently at version 1.3.4, the package does not explicitly define a release cadence but appears to be actively maintained. Key differentiators include full access to the Todoist REST API v2 and Sync API via natural language, support for batch processing of tasks, the ability to search by name rather than ID, and 'Smart Context' which pre-loads project and label information to the AI, reducing the need for explicit tool calls. It provides a robust set of tools for managing tasks, projects, sections, comments, and labels within Todoist through conversational AI interactions.
Common errors
-
Error: Todoist API token is not set. Please set the TODOIST_API_TOKEN environment variable.
cause The required `API_KEY` (or `TODOIST_API_TOKEN`) environment variable, which holds your Todoist authentication token, was not provided when the server was launched.fixEnsure the `API_KEY` environment variable is correctly set and passed to the `npx todoist-mcp` command. For example, `env: { "API_KEY": "your_token" }` in a JSON config or `--env API_KEY=your_token` on the command line. -
node: --enable-source-maps is not allowed in NODE_OPTIONS
cause This error typically indicates an incompatibility with how Node.js is being invoked, often due to an older `npx` or `npm` version or conflicting `NODE_OPTIONS` from a global config.fixTry updating `npm` (`npm install -g npm@latest`) and `npx`. If the issue persists, explicitly clearing `NODE_OPTIONS` before running `npx` (e.g., `NODE_OPTIONS='' npx -y todoist-mcp`) might resolve it, or check your shell's environment for conflicting settings. -
TypeError: 'npx' is not recognized as an internal or external command, operable program or batch file.
cause `npx` is not available in the system's PATH, or Node.js/npm is not correctly installed.fixEnsure Node.js and npm are properly installed and their binaries are accessible in your system's PATH. Reinstalling Node.js is often the simplest fix.
Warnings
- gotcha A Todoist API token is absolutely required for the server to function. Without it, the server cannot authenticate with Todoist and will not be able to manage tasks or projects.
- breaking This package requires Node.js version 18.0.0 or higher. Running it with older Node.js versions will result in execution errors.
- gotcha Configuration methods vary significantly across different AI platforms (e.g., Claude Desktop, Claude Code, Cursor, Codex, Gemini CLI). Ensure you follow the specific instructions for your AI client.
- gotcha The package is designed to be run via `npx` as a command-line tool. Attempting to `import` or `require` it directly into another application for programmatic use is not the primary intended interaction pattern and may not be fully supported or documented.
Install
-
npm install todoist-mcp -
yarn add todoist-mcp -
pnpm add todoist-mcp
Imports
- runServer
const runServer = require('todoist-mcp').runServer;import { runServer } from 'todoist-mcp'; - TodoistMCPServer
const TodoistMCPServer = require('todoist-mcp').TodoistMCPServer;import { TodoistMCPServer } from 'todoist-mcp'; - TodoistConfig
import { TodoistConfig } from 'todoist-mcp';import type { TodoistConfig } from 'todoist-mcp';
Quickstart
codex mcp add todoist --env API_KEY="your_todoist_api_token" -- npx -y todoist-mcp # Alternatively, for persistent configuration (e.g., for Codex): # Create or edit ~/.codex/config.toml (or .codex/config.toml in your project root) # Add the following lines: # [mcp_servers.todoist] # command = "npx" # args = ["-y", "todoist-mcp"] # # [mcp_servers.todoist.env] # API_KEY = "your_todoist_api_token"