# microsoft-todo-mcp-server

microsoft-todo-mcp-server — an MCP server for Microsoft To Do via Graph API. Creates task lists, tasks, checklist items and reminders directly from the agent.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 122 repo stars
- Author: jordanburke
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/jordanburke/microsoft-todo-mcp-server
- Updated: 2026-10-28
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/microsoft-todo-mcp-server

## What it does

Connects Microsoft To Do to Claude Code, Cursor and other agents through MCP. The agent can create task lists, add tasks, nest subtasks, set deadlines and reminders — all through Graph API.

Works with personal, work and school Microsoft accounts. Tokens refresh automatically: the server reads the expiry from the JWT for work accounts and assumes an hour for personal ones. Tokens are stored in `~/.config/microsoft-todo-mcp/tokens.json` or `%APPDATA%\microsoft-todo-mcp\tokens.json` on Windows. Without `CLIENT_SECRET` in environment variables, refresh won't work and calls will start failing when the token expires.

Requires Node.js 16 or higher, Azure App Registration with `Tasks.Read`, `Tasks.ReadWrite`, `User.Read` permissions. Before installing, get tokens by running `pnpm run auth` in the cloned repository — the command opens a browser for OAuth and saves the result to `tokens.json`.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `MS_TODO_ACCESS_TOKEN`, `MS_TODO_REFRESH_TOKEN`, `CLIENT_ID`, `CLIENT_SECRET`, `TENANT_ID` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env MS_TODO_ACCESS_TOKEN=<MS_TODO_ACCESS_TOKEN> --env MS_TODO_REFRESH_TOKEN=<MS_TODO_REFRESH_TOKEN> --env CLIENT_ID=<CLIENT_ID> --env CLIENT_SECRET=<CLIENT_SECRET> --env TENANT_ID=<TENANT_ID> --transport stdio microsoft-todo-mcp-server -- npx -y microsoft-todo-mcp-server
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add microsoft-todo-mcp-server --env MS_TODO_ACCESS_TOKEN=<MS_TODO_ACCESS_TOKEN> --env MS_TODO_REFRESH_TOKEN=<MS_TODO_REFRESH_TOKEN> --env CLIENT_ID=<CLIENT_ID> --env CLIENT_SECRET=<CLIENT_SECRET> --env TENANT_ID=<TENANT_ID> -- npx -y microsoft-todo-mcp-server
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "microsoft-todo-mcp-server": {
            "command": "npx",
            "args": [
                "-y",
                "microsoft-todo-mcp-server"
            ],
            "env": {
                "MS_TODO_ACCESS_TOKEN": "<MS_TODO_ACCESS_TOKEN>",
                "MS_TODO_REFRESH_TOKEN": "<MS_TODO_REFRESH_TOKEN>",
                "CLIENT_ID": "<CLIENT_ID>",
                "CLIENT_SECRET": "<CLIENT_SECRET>",
                "TENANT_ID": "<TENANT_ID>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "microsoft-todo-mcp-server": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "microsoft-todo-mcp-server"
            ],
            "env": {
                "MS_TODO_ACCESS_TOKEN": "<MS_TODO_ACCESS_TOKEN>",
                "MS_TODO_REFRESH_TOKEN": "<MS_TODO_REFRESH_TOKEN>",
                "CLIENT_ID": "<CLIENT_ID>",
                "CLIENT_SECRET": "<CLIENT_SECRET>",
                "TENANT_ID": "<TENANT_ID>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e MS_TODO_ACCESS_TOKEN=<MS_TODO_ACCESS_TOKEN> -e MS_TODO_REFRESH_TOKEN=<MS_TODO_REFRESH_TOKEN> -e CLIENT_ID=<CLIENT_ID> -e CLIENT_SECRET=<CLIENT_SECRET> -e TENANT_ID=<TENANT_ID> microsoft-todo-mcp-server npx -y microsoft-todo-mcp-server
```
Replace <…> with your own values

## When to use it
- add a task to Microsoft To Do from a prompt
- create a task list and populate it with items
- set a reminder on a task
- read a checklist from To Do and append to it
- sync work tasks between the agent and Microsoft To Do

## Example prompts
- Create a list called Release v2 and add a task Check migrations
- Set a reminder for tomorrow at 10am for the task Call with designer
- Show all tasks from the Backlog list and mark completed ones

## Similar
- [mcp-microsoft-todo](https://affpapa.org/en/nevibecode/mcp/mcp-microsoft-todo.md) — MCP server · ★ 23 repo stars
- [microsoft-todo](https://affpapa.org/en/nevibecode/skills/microsoft-todo.md) — skill · 187 installs
- [Microsoft 365 Calendar](https://affpapa.org/en/nevibecode/mcp/microsoft-365-calendar.md) — MCP server · ★ 14 repo stars
- [Microsoft 365 MCP Server](https://affpapa.org/en/nevibecode/mcp/microsoft-365-mcp-server.md) — MCP server · ★ 1161 repo stars
- [Microsoft 365 Mail](https://affpapa.org/en/nevibecode/mcp/microsoft-365-mail.md) — MCP server · ★ 14 repo stars
- [todo](https://affpapa.org/en/nevibecode/commands/todo.md) — command · 2723 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
