Skip to main content
Glama
Todoist Python MCP Server

Todoist Python MCP Server

by Johnxjp

Todoist MCP Server

A Model Context Protocol (MCP) server that allows clients like Claude to interact with Todoist, enabling task management capabilities through natural language. The server acts as an intermediary between clients and the Todoist API, handling authentication, data transformation, and command processing. This is a Python version

Features

  • Task Creation: Create new tasks with required content and optional attributes

  • Task Retrieval: Get task by ID or list tasks with filtering options

  • Task Management: Update task attributes, mark tasks as complete, delete tasks

Related MCP server: Todoist MCP Server

Prerequisites

  • Python 3.12

  • uv

  • A Todoist account and API token

How to get Todoist API Token

  1. Login to your Todoist account

  2. Go to User Settings -> Integrations -> Developer

  3. Copy API token

Usage with Claude Desktop

Run via UVX (without cloning)

You can run the server directly from GitHub using UVX:

uvx --from https://github.com/Johnxjp/todoist-mcp-python.git mcp-server-todoist

Then add this configuration to your Claude settings:

{
  "mcpServers": {
    "todoist-server": {
      "command": "uvx",
      "args": [
        "--from", 
        "https://github.com/Johnxjp/todoist-mcp-python.git", 
        "mcp-server-todoist"
      ],
      "env": {
        "TODOIST_API_TOKEN": "YOUR_API_TOKEN"
      }
    }
  }
}

Run from cloned repository

If you prefer to clone the repository, use these commands:

git clone git@github.com:Johnxjp/todoist-mcp-python.git

Then add to your Claude config file:

{
  "mcpServers": {
    "todoist-server": {
      "command": "uv",
      "args": [
        "run",
        "--with",
        "mcp[cli]",
        "--with",
        "todoist_api_python",
        "mcp",
        "run",
        "/full/path/to/todoist_server.py"
      ],
      "env": {
        "TODOIST_API_TOKEN": "YOUR_API_TOKEN"
      }
    }
  }
}

Available Tools

The server provides the following tools for Claude to use:

  1. create_task: Create a new task in Todoist

    • Required: content (title of the task)

    • Optional:

      • description,

      • due_date,

      • priority,

      • project_id,

      • section_id,

      • labels

  2. get_tasks: Get a list of tasks and Ids from Todoist with various filters

    • Optional:

      • project_id,

      • project_name,

      • task_name,

      • priority,

      • labels,

      • is_overdue,

      • limit

  3. update_task: Update an existing task by searching for it by name

    • Required: task_id

    • Optional:

      • content,

      • description,

      • labels,

      • priority,

      • due_date (YYYY-MM-DD),

      • deadline_date (YYYY-MM-DD)

  4. delete_task: Delete a task by searching for it by name

    • Required: task_id

  5. complete_task: Mark a task as complete by searching for it by name

    • Required: task_id

Example Interactions

Here are some examples of how Claude can interact with Todoist through this MCP server:

  • "Add a task to buy groceries"

  • "Show me all my urgent tasks"

  • "What tasks are due today?"

  • "Mark the laundry task as done"

  • "Change the priority of my dentist appointment to urgent"

Security Considerations

  • The server securely handles your Todoist API token through environment variables

  • Never share your .env file or expose your API token

  • The server runs locally and communicates only with the Todoist API

License

MIT License

Acknowledgements

Available Tools

6 tools
complete_taskC

Mark a task as done

Inputs: task_id (required).

create_taskB
Create a new task

Args:
- content [str]: Task content. This value may contain markdown-formatted text and hyperlinks. Details on markdown support can be found in the Text Formatting article in the Help Center.
- description [str]: A description for the task. This value may contain markdown-formatted text and hyperlinks. Details on markdown support can be found in the Text Formatting article in the Help Center.
- project_id [str]: The ID of the project to add the task. If none, adds to user's inbox by default.
- labels [list[str]]: The task's labels (a list of names that may represent either personal or shared labels).
- priority [int]: Task priority from 1 (normal) to 4 (urgent).
- due_date [str]: Specific date in YYYY-MM-DD format relative to user’s timezone.
- section_id [str]: The ID of the section to add the task to

Returns:
- task_id: str:

Inputs: content (required), description, project_id, labels, +3 more.

delete_taskC

Delete a task by its ID

Inputs: task_id (required).

get_projectsB

Get all todo projects. These are like folders for tasks in Todoist

Inputs: no named parameters.

get_tasksA
Fetch user's tasks. These can be filtered by project, labels, time, etc. If no filters are provided, all tasks are returned.

Args:
- project_id: The string ID of the project to fetch tasks from. Example '1234567890'
- project_name: Name of the project to fetch tasks from. Example 'Work' or 'Inbox'
- task_name: Filter tasks by name. Example 'Buy groceries'
- labels: List of tags used to filter tasks.
- priority: Filter tasks by priority level. 4 (urgent), 3 (high), 2 (normal), 1 (low)
- due_date: Specific due date in YYYY-MM-DD format. Example '2021-12-31'
- is_overdue: Filter tasks that are overdue.
- limit: Maximum number of tasks to return. Default is all.

Inputs: project_id, project_name, task_name, labels, +4 more.

update_taskB
Update an attribute of a task given its ID. Any attribute can be updated.

Args:
- task_id [str | int]: The ID of the task to update. Example '1234567890' or 1234567890
- content [str]: Task content. This value may contain markdown-formatted text and hyperlinks. Details on markdown support can be found in the Text Formatting article in the Help Center.
- description [str]: A description for the task. This value may contain markdown-formatted text and hyperlinks. Details on markdown support can be found in the Text Formatting article in the Help Center.
- labels [list[str]]: The task's labels (a list of names that may represent either personal or shared labels).
- priority [int]: Task priority from 1 (normal) to 4 (urgent).
- due_date [str]: Specific date in YYYY-MM-DD format relative to user’s timezone.
- deadline_date [str]: Specific date in YYYY-MM-DD format relative to user’s timezone.

Inputs: task_id (required), content, description, labels, +3 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose with no overlap: complete_task marks tasks as done, create_task adds new tasks, delete_task removes tasks, get_projects retrieves projects, get_tasks fetches tasks with filtering, and update_task modifies existing tasks. The boundaries are well-defined and unambiguous.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern in snake_case: complete_task, create_task, delete_task, get_projects, get_tasks, update_task. This uniformity makes the tool set predictable and easy to understand at a glance.

    Tool Count5/5

    With 6 tools, this server is well-scoped for a Todoist integration, covering core task management operations (create, read, update, delete, complete) and project listing. Each tool earns its place without being overwhelming or insufficient for the domain.

    Completeness4/5

    The tool set provides excellent coverage for task CRUD operations and project listing, enabling agents to manage tasks effectively. A minor gap exists in project management (e.g., no create_project or delete_project tools), but agents can still perform core workflows without significant hindrance.

    Related MCP Connectors

    Related MCP Servers