Skip to main content
Glama
Microsoft Todo MCP Service

Microsoft Todo MCP Service

by jhirono

Microsoft To Do MCP

This MCP (Model Context Protocol) service allows you to interact with Microsoft To Do tasks using an AI assistant.

Setup Instructions

1. Prerequisites

  • Node.js 16 or higher

  • npm

  • A Microsoft account

  • Azure App Registration (see setup below)

2. Installation

There are two parts to installing this tool:

  1. Installing the package

  2. Setting up authentication (requires cloning the repository)

Step 1: Install the Package

npm install -g @jhirono/todomcp

Step 2: Set Up Authentication

Even if you install the package globally, you'll need to clone the repository to complete the authentication process:

git clone https://github.com/jhirono/todoMCP.git
cd todoMCP
npm install

3. Azure App Registration

  1. Go to the Azure Portal

  2. Navigate to "App registrations" and create a new registration

  3. Name your application (e.g., "To Do MCP")

  4. For "Supported account types", select one of the following based on your needs:

    • Accounts in this organizational directory only (Single tenant) - For use within a single organization

    • Accounts in any organizational directory (Any Azure AD directory - Multitenant) - For use across multiple organizations

    • Accounts in any organizational directory and personal Microsoft accounts - For both work accounts and personal accounts

  5. Set the Redirect URI to http://localhost:3000/callback

  6. After creating the app, go to "Certificates & secrets" and create a new client secret

  7. Go to "API permissions" and add the following permissions:

    • Microsoft Graph > Delegated permissions:

      • Tasks.Read

      • Tasks.ReadWrite

      • User.Read

  8. Click "Grant admin consent" for these permissions

4. Configuration

Create a .env file in the root directory with the following information:

CLIENT_ID=your_client_id
CLIENT_SECRET=your_client_secret
TENANT_ID=your_tenant_setting
REDIRECT_URI=http://localhost:3000/callback

TENANT_ID Options:

  • organizations - For multi-tenant organizational accounts (default if not specified)

  • consumers - For personal Microsoft accounts only

  • common - For both organizational and personal accounts

  • your-specific-tenant-id - For single-tenant configurations

Examples:

# For multi-tenant organizational accounts (default)
TENANT_ID=organizations

# For personal Microsoft accounts
TENANT_ID=consumers

# For both organizational and personal accounts
TENANT_ID=common

# For a specific organization tenant
TENANT_ID=00000000-0000-0000-0000-000000000000

Related MCP server: Todoist Python MCP Server

Usage

Complete Workflow

  1. Authenticate to get tokens (must be done from the cloned repository)

    npm run auth

    This will open a browser window for you to authenticate with Microsoft and create a tokens.json file.

  2. Create MCP config file (must be done from the cloned repository)

    npm run create-config

    This creates an mcp.json file with your authentication tokens.

  3. Set up the global MCP configuration

    # Copy the mcp.json file to your global Cursor configuration directory
    cp mcp.json ~/.cursor/mcp-servers.json

    This makes the Microsoft To Do MCP available across all your Cursor projects.

  4. Start using with your AI assistant

    • In Cursor, you can now use Microsoft To Do commands directly in any project

    • Try commands like auth status or list up todos to get started

The Claude Desktop configuration file is located at:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

  • Linux: ~/.config/Claude/claude_desktop_config.json

Available Tools

  • auth-status: Check your authentication status

  • get-task-lists: Get all your To Do task lists

  • create-task-list: Create a new task list

  • update-task-list: Update an existing task list

  • delete-task-list: Delete a task list

  • get-tasks: Get all tasks in a list

  • create-task: Create a new task

  • update-task: Update an existing task

  • delete-task: Delete a task

  • get-checklist-items: Get checklist items for a task

  • create-checklist-item: Create a checklist item

  • update-checklist-item: Update a checklist item

  • delete-checklist-item: Delete a checklist item

Limitations

  • The API requires proper authentication and permissions

  • Rate limits may apply according to Microsoft's policies

Troubleshooting

Authentication Issues

  • "MailboxNotEnabledForRESTAPI" error: This typically means you're using a personal Microsoft account. Microsoft To Do API access is limited for personal accounts through the Graph API.

  • Token acquisition failures: Make sure your CLIENT_ID, CLIENT_SECRET, and TENANT_ID are correct in your .env file.

  • Permission issues: Ensure you have granted admin consent for the required permissions in your Azure App registration.

Account Type Issues

  • Work/School Accounts: These typically work best with the To Do API. Use TENANT_ID=organizations or your specific tenant ID.

  • Personal Accounts: These have limited access to the To Do API. If you must use a personal account, try TENANT_ID=consumers or TENANT_ID=common.

Checking Authentication Status

You can check your authentication status using the auth-status tool or by examining the expiration time in your tokens:

cat tokens.json | grep expiresAt

To convert the timestamp to a readable date:

date -r $(echo "$(cat tokens.json | grep expiresAt | cut -d ":" -f2 | cut -d "," -f1) / 1000" | bc)

Available Tools

13 tools
auth-statusA

Check if you're authenticated with Microsoft Graph API. Shows current token status and expiration time, and indicates if the token needs to be refreshed.

Inputs: no named parameters.

create-checklist-itemA

Create a new checklist item (subtask) for a task. Checklist items help break down a task into smaller, manageable steps.

Inputs: listId (required), taskId (required), displayName (required), isChecked.

create-taskA

Create a new task in a specific Microsoft Todo list. A task is the main todo item that can have a title, description, due date, and other properties.

Inputs: listId (required), title (required), body, dueDateTime, +6 more.

create-task-listA

Create a new task list (top-level container) in Microsoft Todo to help organize your tasks into categories or projects.

Inputs: displayName (required).

delete-checklist-itemA

Delete a checklist item (subtask) from a task. This removes just the specific subtask, not the parent task.

Inputs: listId (required), taskId (required), checklistItemId (required).

delete-taskA

Delete a task from a Microsoft Todo list. This will remove the task and all its checklist items (subtasks).

Inputs: listId (required), taskId (required).

delete-task-listA

Delete a task list (top-level container) from Microsoft Todo. This will remove the list and all tasks within it.

Inputs: listId (required).

get-checklist-itemsA

Get checklist items (subtasks) for a specific task. Checklist items are smaller steps or components that belong to a parent task.

Inputs: listId (required), taskId (required).

get-task-listsA

Get all Microsoft Todo task lists (the top-level containers that organize your tasks). Shows list names, IDs, and indicates default or shared lists.

Inputs: no named parameters.

get-tasksB

Get tasks from a specific Microsoft Todo list. These are the main todo items that can contain checklist items (subtasks).

Inputs: listId (required), filter, select, orderby, +3 more.

update-checklist-itemA

Update an existing checklist item (subtask). Allows changing the text content or completion status of the subtask.

Inputs: listId (required), taskId (required), checklistItemId (required), displayName, +1 more.

update-taskB

Update an existing task in Microsoft Todo. Allows changing any properties of the task including title, due date, importance, etc.

Inputs: listId (required), taskId (required), title, body, +7 more.

update-task-listA

Update the name of an existing task list (top-level container) in Microsoft Todo.

Inputs: listId (required), displayName (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 13 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose with no ambiguity, as they are organized around specific resources (task lists, tasks, checklist items) and actions (create, get, update, delete). For example, create-task and create-checklist-item target different levels of the hierarchy, and operations like delete-task-list and delete-task are clearly separated by scope.

    Naming Consistency5/5

    The tool names follow a highly consistent verb_noun pattern throughout, such as create-task, get-tasks, update-checklist-item, and delete-task-list. All tools use hyphen-separated lowercase names, making them predictable and easy to understand without any deviations in style.

    Tool Count5/5

    With 13 tools, the count is well-scoped for managing Microsoft Todo, covering CRUD operations for task lists, tasks, and checklist items. Each tool earns its place by addressing specific needs in the domain, avoiding both redundancy and significant gaps.

    Completeness5/5

    The tool surface provides complete CRUD/lifecycle coverage for the Microsoft Todo domain, including authentication status, and operations on task lists, tasks, and checklist items. There are no obvious gaps or dead ends, enabling agents to handle all core workflows effectively.

    Maintenance

    ActivityInactive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers