Mcp Microsoft Todo

io.github.MAG-Cie由 GitHub 账号 MAG-Cie 发布v1.2.2更新于 Oct 24, 2026

MCP server for Microsoft To Do via Microsoft Graph. MSAL device code flow, no client secret needed.

发布方自己的服务:Microsoft Learn MCP

已验证STDIO仅桌面效率与工作流文件与存储

概览

AI 生成的概览

让助手通过 Microsoft Graph 读取和管理 Microsoft To Do 列表与任务,包括创建、更新、完成、移动和删除任务。

可以做什么
通过 Microsoft Graph 提供 28 个工具操作 Microsoft To Do:列出任务列表、列出和搜索任务、获取任务详情、汇总今日到期和逾期任务,以及将任务导出为 iCalendar。它可以创建、更新、完成、移动和删除任务,管理清单子项、链接资源和自定义 JSON 扩展,并支持一次对最多 100 个任务执行批量操作。读取类工具默认返回紧凑文本格式,可通过 verbose 选项获取完整 Graph JSON。
适用场景
适合希望用自然语言让助手处理 Microsoft To Do 任务的场景:查看今日到期或逾期任务、跨列表搜索、添加或完成任务、整理分类,或将任务导出到日历。支持个人账户、Office 365 和 Microsoft 365 账户。
运行要求
以 npm 包形式通过 npx 在本地运行,需要 Node.js 20+。需要 Microsoft 账户,登录使用 MSAL 设备代码流;官方 npm 版本无需创建 Azure 应用注册。可选环境变量 MS_TENANT 用于选择租户(common、consumers、organizations 或具体租户 ID)。环境变量 MS_CLIENT_ID 仅在开发分支中需要。令牌缓存在本地。
安装前请注意
服务器请求 Microsoft Graph 权限 Tasks.ReadWrite、Tasks.ReadWrite.Shared 和 offline_access,并将访问令牌存储在本地缓存文件中。多个工具会写入或删除数据:create_task、batch_create_tasks、更新和完成类工具,以及 delete_task、batch_delete_tasks 和 move_task 等破坏性工具,其中 move_task 会删除源任务。安全注解仅为提示,服务器本身不做强制,是否确认取决于 MCP 客户端。移除服务器时可通过 Microsoft 账户同意页面撤销访问并清除本地令牌缓存。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mcp Microsoft Todo,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

mcp-microsoft-todo

🇫🇷 Version française : README.fr.md

MCP server to drive Microsoft To Do from Claude Code, Claude Desktop, or any MCP-compatible client.

Works with any Microsoft account: personal (outlook.com, hotmail.com, live.com), Office 365 personal or business, Microsoft 365. Zero Azure setup required on the user side — just sign in via device code flow.

[npm] [license]


🏗 Built and maintained by MAG&Cie

This MCP server is open-source and free to use. It's also a showcase of our Création de MCP offering at MAG&Cie — we build custom MCP connectors for businesses that want to plug AI into their internal tools (CRM, ERP, custom APIs, internal databases).

If you'd like the same kind of connector for your tools — drop us a line at www.mag-cie.com/creation-mcp.


🚀 End-user installation

Prerequisites (all clients)

  • Node.js 20+ (nodejs.org)
  • A Microsoft account (free or paid)

No Azure account required, no App Registration to create, nothing to compile.


🟦 Claude Code (CLI)

Install (one command):

bash
claude mcp add --transport stdio microsoft-todo -- npx -y @mag-cie/mcp-microsoft-todo

If you have a personal Microsoft account (outlook.com, hotmail.com, live.com, msn.com, Office 365 personal), add MS_TENANT=consumers:

bash
claude mcp add --transport stdio microsoft-todo --env MS_TENANT=consumers -- npx -y @mag-cie/mcp-microsoft-todo

Verify it's wired up:

bash
claude mcp list

First use — recommended: pre-auth in a terminal first to avoid the "stuck on first MCP call" issue (where the device code is printed to MCP stderr but Claude Code doesn't surface it):

bash
# macOS / LinuxMS_TENANT=consumers npx -y @mag-cie/mcp-microsoft-todo@latest --auth
powershell
# Windows PowerShell$env:MS_TENANT="consumers"; npx -y @mag-cie/mcp-microsoft-todo@latest --auth

You'll see:

To sign in, use a web browser to open the page https://www.microsoft.com/link and enter the code XXXXXXXXX

Visit the URL, enter the code, sign in. The token is cached in ~/.mcp-microsoft-todo/token-cache.json and refreshed automatically — you'll never have to do this again. Now go to Claude Code and any prompt that calls a tool will work instantly.

Skip the pre-auth step if you're feeling lucky — the MCP will trigger the device code flow on first call too. The code goes to the Claude Code MCP log file (look in %USERPROFILE%\.claude\logs\ on Windows or ~/.claude/logs/ elsewhere).

Update to the latest version:

bash
claude mcp remove microsoft-todoclaude mcp add --transport stdio microsoft-todo -- npx -y @mag-cie/mcp-microsoft-todo@latest

The -y flag of npx auto-accepts the download. Without @latest, npx may serve a stale cached version.

Uninstall:

bash
claude mcp remove microsoft-todo# Purge the token cache:rm -rf ~/.mcp-microsoft-todo

🟪 Claude Desktop (app)

1. Locate the config file:

OSPath
Windows%APPDATA%\Claude\claude_desktop_config.json
macOS~/Library/Application Support/Claude/claude_desktop_config.json
Linux~/.config/Claude/claude_desktop_config.json

On Windows, you can open it directly with:

powershell
notepad $env:APPDATA\Claude\claude_desktop_config.json

If the file doesn't exist, create it with an empty JSON object {} then edit.

2. Add the config:

json
{  "mcpServers": {    "microsoft-todo": {      "command": "npx",      "args": ["-y", "@mag-cie/mcp-microsoft-todo"]    }  }}

For a personal Microsoft account, add env:

json
{  "mcpServers": {    "microsoft-todo": {      "command": "npx",      "args": ["-y", "@mag-cie/mcp-microsoft-todo"],      "env": { "MS_TENANT": "consumers" }    }  }}

To localize the compact-format strings (optional, see Localization):

json
{  "env": { "MS_TENANT": "consumers", "MCP_LOCALE": "fr" }}

3. Restart Claude Desktop COMPLETELY (not just close the window):

  • Windows: right-click systray icon → Quit, then relaunch
  • macOS: ⌘+Q then relaunch

4. Verify it's wired up:

In Claude Desktop, look at the 🔌 plug or 🔧 tools icon at the bottom right of the input area — you should see microsoft-todo listed.

5. First auth — recommended pre-auth in a terminal:

bash
# macOS / LinuxMS_TENANT=consumers npx -y @mag-cie/mcp-microsoft-todo@latest --auth
powershell
# Windows PowerShell$env:MS_TENANT="consumers"; npx -y @mag-cie/mcp-microsoft-todo@latest --auth

You'll see the device code immediately in the terminal. Visit the URL, enter the code, sign in. Token cached. Now Claude Desktop will reuse this cache — no need to fish in the logs.

Without --auth, the device code goes to the Claude Desktop MCP log file:

  • Windows: %APPDATA%\Claude\logs\mcp-server-microsoft-todo.log
  • macOS: ~/Library/Logs/Claude/mcp-server-microsoft-todo.log

Update: edit the version in args (@mag-cie/mcp-microsoft-todo@latest), restart Claude Desktop. Or let npx do its thing (npx cache ~24h).


🟧 Cursor / Continue / other stdio MCP clients

Any MCP client that supports the stdio transport works the same way. Generic format:

command: npxargs: -y @mag-cie/mcp-microsoft-todoenv: MS_TENANT=consumers (if personal account)

Adapt to the client's config format (often JSON or TOML similar to Claude Desktop).


💡 Example prompts

Once installed, just ask Claude in natural language. Sample prompts that exercise the main tools:

PromptTool(s)
"Show me all my To Do lists"list_task_lists
"What do I have to do today?"summarize_today
"Show me my overdue tasks"list_overdue_tasks
"List tasks tagged 'work'"list_tasks_by_category
"Find any task containing 'invoice'"search_tasks
"Add a daily recurring 'Workout' task"create_task (with recurrence)
"Mark these 5 tasks as done"batch_complete_tasks
"Move 'Buy bread' from Personal to Shopping"move_task
"Add a 'recipe' subtask to the cake task"create_checklist_item
"Tag all my Magaria tasks as 'urgent'"bulk_update_categories
"Export my work tasks as iCalendar"export_tasks_ics
"Attach a project_id metadata to this task"set_extension

🆘 Auth troubleshooting

SymptomSolution
"This page isn't right" page after sign-inAdd MS_TENANT=consumers (personal accounts only)
Browser opens with the wrong Microsoft accountUse an InPrivate/Incognito window for the sign-in
invalid_scope or Tasks.ReadWrite.Shared errorPurge the token cache and re-auth: rm -rf ~/.mcp-microsoft-todo
Node.js not found or npx not foundInstall Node 20+ from nodejs.org. On Windows, verify it's in PATH (relaunch your terminal after install)
Token expired, refresh failsPurge the cache and re-auth
Device code never appearsVerify the server is spawning — Claude Code: claude mcp list; Claude Desktop: tools icon at the bottom. If absent, check the npx PATH in the config
MS_CLIENT_ID not configuredYou're using a dev fork — export MS_CLIENT_ID or use the official npm version

🛠 Available tools (28)

Safety column legend: read = read-only, write = mutates state (non-idempotent create), update = idempotent mutation (safe to retry), delete = destructive (data loss). See Safety annotations below for details.

Lists & tasks

ToolSafetyDescription
list_task_listsreadAll your To Do lists
list_tasksreadTasks of a list (OData filter, $orderby, paginate)
get_taskreadDetail of a task by ID
create_taskwriteCreate a task (title, body, importance, due date, categories, recurrence, reminder)
update_taskupdateUpdate title, status, due date, recurrence, reminder…
complete_taskupdateMark as completed
delete_taskdeleteDelete permanently
move_taskdeleteMove a task from one list to another (source task is deleted)
search_tasksreadCross-list search by title
summarize_todayreadSummary of tasks due today + overdue
list_all_tasksreadEvery task across every list in one round-trip (uses Graph $batch)

Batch operations (saves API calls)

ToolSafetyDescription
batch_create_taskswriteCreate up to 100 tasks in a single Graph $batch HTTP call
batch_complete_tasksupdateMark up to 100 tasks as completed in one call
batch_delete_tasksdeleteDelete up to 100 tasks in one call

Sub-tasks (checklist items)

ToolSafetyDescription
list_checklist_itemsreadSub-items of a task
create_checklist_itemwriteAdd a sub-item
update_checklist_itemupdateRename / check / uncheck
delete_checklist_itemdeleteDelete a sub-item

Linked resources (external URLs attached to a task)

ToolSafetyDescription
list_linked_resourcesreadList the linked resources of a task
create_linked_resourcewriteAttach a URL or external reference
delete_linked_resourcedeleteDelete a linked resource

Open extensions (custom JSON metadata)

ToolSafetyDescription
list_extensionsreadList the open extensions of a task
set_extensionupdateUpsert: create or update an extension (project_id, external_ref, etc.)
delete_extensiondeleteDelete an extension

Cross-list helpers

ToolSafetyDescription
list_overdue_tasksreadAll overdue tasks, aggregated across all lists
list_tasks_by_categoryreadAll tasks with a given category, cross-lists
bulk_update_categoriesupdateAdd/remove categories on many tasks in 2 batch phases

Export

ToolSafetyDescription
export_tasks_icsreadiCalendar export (VTODO + RRULE + VALARM) for import into Google Cal / Apple Cal / Outlook / Thunderbird

Output format

By default, tools return a compact text format (one line per item) to save LLM tokens. Legend:

  • [!] high importance, [?] low (nothing if normal)
  • [v] completed, [>] in progress, [w] waiting, [d] deferred (nothing if not started)
  • due:, rem:, rec:, cat:, body: fields shown only when populated

To get the full Graph JSON, pass verbose: true to any read tool.


🔐 Safety annotations

Every tool exposed by this server carries the MCP tool annotations defined by the Model Context Protocol spec (2025-06-18):

AnnotationMeaning
readOnlyHintThe tool only fetches data; running it has no side effects on Microsoft Graph
destructiveHintThe tool deletes data or otherwise causes data loss that cannot be undone
idempotentHintRunning the tool repeatedly with the same arguments yields the same end state (safe to retry)
openWorldHintThe tool talks to an external system (Microsoft Graph) — always true here
titleHuman-readable display name for MCP clients

These hints are advisory — the server itself enforces nothing — but MCP clients (Claude Code, Claude Desktop, Cursor, …) can use them to:

  • Auto-approve readOnlyHint: true calls without prompting (faster UX for read-heavy workflows)
  • Show a confirmation dialog before destructiveHint: true calls (e.g. delete_task, batch_delete_tasks, move_task)
  • Retry on transient failures only when idempotentHint: true
  • Display the friendly title instead of the snake_case name

The full mapping is in src/index.ts (ANNOTATIONS constant). Summary by safety class (see also the per-tool Safety column above):

  • read (15 tools): all list_*, get_*, search_*, summarize_*, export_* — readOnlyHint: true
  • write (4 tools): create_*, batch_create_tasks — destructiveHint: false, idempotentHint: false
  • update (5 tools): update_*, complete_*, set_extension, bulk_update_categories, batch_complete_tasks — destructiveHint: false, idempotentHint: true
  • delete (5 tools): delete_*, batch_delete_tasks, move_task — destructiveHint: true, idempotentHint: true

move_task is classified as delete because it deletes the source task (a new task is created in the target list with a different id).


🌍 Localization

The MCP works in any language out of the box — Claude reads the data the server returns and replies to the user in whatever language they prompted in. Try "List my tasks", "Liste mes tâches", "Zeig meine Aufgaben", "我的任务" — all work.

Optionally, you can localize the compact-format short labels returned by the server itself (No tasks., Due today:, Overdue:, Task X deleted., etc.) — this is a marginal improvement (saves a few tokens, slightly cleaner LLM context). Set MCP_LOCALE in your env:

LocaleCode
English (default)en
Françaisfr
Españoles
Deutschde

Resolution order: MCP_LOCALE → LC_ALL → LANG → fallback en. Only the first 2 chars are inspected (so fr_FR.UTF-8 works). Unsupported locale → falls back to en.

json
{  "mcpServers": {    "microsoft-todo": {      "command": "npx",      "args": ["-y", "@mag-cie/mcp-microsoft-todo"],      "env": { "MCP_LOCALE": "fr" }    }  }}

🔒 Security & privacy

  • The Microsoft token is stored only on your machine in ~/.mcp-microsoft-todo/token-cache.json
  • No data transits through MAG&Cie servers
  • Revoke access at any time at https://account.live.com/consent/Manage
  • To purge the local token: rm -rf ~/.mcp-microsoft-todo

Graph permissions requested: Tasks.ReadWrite, Tasks.ReadWrite.Shared, offline_access.


🧑‍💻 Developer setup (fork / contribution)

If you fork or want to develop locally with your own Azure AD App Registration:

1. Azure AD App Registration (maintainer/fork side only)

  1. https://portal.azure.com → Microsoft Entra ID → App registrations → New registration
  2. Name: mcp-microsoft-todo (free choice)
  3. Supported account types: Accounts in any organizational directory and personal Microsoft accounts
  4. Redirect URI: leave empty
  5. Register
  6. Note the Application (client) ID
  7. Authentication tab → Allow public client flows: Yes
  8. Authentication tab → Add a platform → Mobile and desktop applications → check https://login.microsoftonline.com/common/oauth2/nativeclient
  9. API permissions tab → Add a permission → Microsoft Graph → Delegated → add Tasks.ReadWrite, Tasks.ReadWrite.Shared, and offline_access. Grant admin consent if on a corporate tenant.

2. Build and local auth

bash
git clone https://github.com/MAG-Cie/mcp-microsoft-todocd mcp-microsoft-todonpm installnpm run buildexport MS_CLIENT_ID="<your-client-id>"   # PowerShell: $env:MS_CLIENT_ID="..."export MS_TENANT="common"npm run auth

The token cache will be written to ~/.mcp-microsoft-todo/token-cache.json.

3. Wire up Claude Code (local build)

powershell
# Windows PowerShell$env:MS_CLIENT_ID="<your-client-id>"claude mcp add --transport stdio microsoft-todo -- node "C:\path\to\mcp-microsoft-todo\dist\index.js"
bash
# macOS / Linuxexport MS_CLIENT_ID="<your-client-id>"claude mcp add --transport stdio microsoft-todo -- node /path/to/mcp-microsoft-todo/dist/index.js

⚠️ Env vars must be visible at spawn time. On Windows with fnm, verify the PowerShell session that launches claude has MS_CLIENT_ID exported.

4. Run tests

bash
npm test           # one-shotnpm run test:watch # watch mode

⬆️ Upgrading from earlier versions

FromToAction required
0.x0.4.0+Re-auth required: token cache lacks the new Tasks.ReadWrite.Shared scope. Run rm -rf ~/.mcp-microsoft-todo then trigger any tool to re-auth via device code.
0.x0.5.0+No breaking change — new tools added. Token compatible.
any1.0.0+Stable API marker. Future minor versions guarantee no breaking change to tool names, args, or return formats (compact + verbose).

🗺 Roadmap

  • v0.1 — stdio + 6 CRUD tools
  • v0.2 — distributable npm package, baked-in client ID
  • v0.3 — recurrence + reminders + checklists + linkedResources + search + move + summarize_today + retry/error robustness + vitest tests + compact format (verbose opt-in)
  • v0.4 — auto pagination + $batch operations + Tasks.ReadWrite.Shared scope (read shared lists)
  • v0.5 — open extensions + cross-list helpers (overdue, by category, bulk update) + iCalendar export
  • v1.0 — stable milestone: GitHub Actions CI + extended tests + snapshot tests + README polish

Possible future versions:

  • v1.1 — file attachments (Graph beta)
  • v1.2 — auto-pagination follow-on for summarize_today / search_tasks / list_overdue_tasks
  • v2.0 — remote HTTP/SSE transport for Claude.ai custom connectors (multi-user OAuth)

📄 License

MIT — © MAG&Cie

来源:README.md,提交 cf612cd

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.2.2最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Microsoft 集成