auth-status
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.
無需輸入參數。

io.github.jordanburke由 GitHub 帳號 jordanburke 發布v1.2.0更新於 Nov 1, 2026
Microsoft To Do via Graph — task lists, tasks, checklist items and reminders.
發布方自己的服務:Microsoft Learn MCP
本機 MCP 伺服器,讓助理透過 Microsoft Graph API 讀取與管理 Microsoft To Do 的工作清單、工作、週期性工作與檢查清單項目。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
參照 儲存庫 中的啟動說明。
A Model Context Protocol (MCP) server that enables AI assistants like Claude and Cursor to interact with Microsoft To Do via the Microsoft Graph API. This service provides comprehensive task management capabilities through a secure OAuth 2.0 authentication flow.
Running this server yourself means registering an app in Azure and managing its client secret. If you'd rather skip that, Agent Todo is a hosted MCP server that supports Microsoft To Do, from the same maintainer. You sign in to Agent Todo, connect your Microsoft To Do account on its Connections page, then add the connector to your AI assistant. There's nothing to register or install.
Connect it from any MCP client that supports remote servers. It signs you in with OAuth on first use.
In Claude Desktop or claude.ai, open Settings, then Connectors, and add https://api.agent-gate.com/agent-todo/mcp as a custom connector.
Want to run it on your own machine, or keep your tokens local? Keep reading to set up this server.
recurrence (daily / weekly / absoluteMonthly / relativeMonthly / absoluteYearly / relativeYearly) on create-task and update-taskThe package provides four commands:
microsoft-todo-mcp-server - The MCP servermstodo - Short alias for the MCP servermstodo-config - Writes an mcp.json from tokens.json (see Step 3 for a caveat)mstodo-setup - Guided setup. It does not yet finish on its own after you sign in, so use the steps under Usage insteadhttp://localhost:3000/callbackopenid and profile), so adding them here is what lets an admin approve them ahead of time:
Tasks.Read, Tasks.ReadWrite, Tasks.Read.Shared, Tasks.ReadWrite.SharedUser.Read, offline_accessCreate a .env file in the repository root, where you run pnpm run auth (required for sign-in):
organizations - For multi-tenant organizational accounts (the default when TENANT_ID is unset)consumers - For personal Microsoft accounts onlycommon - For both organizational and personal accountsyour-specific-tenant-id - For single-tenant configurationsExamples:
The server stores authentication tokens in tokens.json. It looks in three places, in order:
MSTODO_TOKEN_FILE, if set~/.config/microsoft-todo-mcp/tokens.json, or %APPDATA%\microsoft-todo-mcp\tokens.json on Windowstokens.json in the working directory, which is migrated to whichever of (1) or (2) is in effect on first readYou can also supply tokens directly, which takes precedence over the file:
These two are a starting point, not a live store — nothing rewrites your environment when a token is renewed. A renewal is kept for the rest of the session and written to the token file, and the environment pair is not consulted again.
How the expiry is known depends on your account type. Work and school accounts get a JWT access token, so the server reads the real deadline from it and renews 5 minutes early. Personal accounts get an opaque token, where there is nothing to read and the server assumes an hour from when it first saw the value. Either way renewal needs CLIENT_ID and CLIENT_SECRET; without them the server cannot refresh, and calls start failing once the supplied token runs out.
Sign-in runs from a clone of this repository, with the .env file from Configuration in its root:
Open http://localhost:3000 and sign in. Microsoft sends you back to /callback, and the server writes tokens.json in the repository root. Stop it with Ctrl+C when the page says authentication succeeded.
tokens.json holds your refresh token and your client secret, so keep it private:
On Windows, move it to %APPDATA%\microsoft-todo-mcp\tokens.json. To keep it elsewhere, set MSTODO_TOKEN_FILE to its path in the next step.
The server finds the token file itself and renews tokens with the client credentials stored in it, so the config needs no secrets.
Claude Code:
-s user makes it available in every project; without it, Claude Code adds it only to the folder you ran the command in.
Claude Desktop: add this to its config file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.jsonAdd "env": { "MSTODO_TOKEN_FILE": "/path/to/tokens.json" } if the file is not in the default location.
Cursor: add the same mcpServers entry to ~/.cursor/mcp.json.
About mstodo-config and token environment variables: pnpm run create-config (or mstodo-config) writes an mcp.json that passes MS_TODO_ACCESS_TOKEN and MS_TODO_REFRESH_TOKEN instead of a token file. Renewing those also needs CLIENT_ID and CLIENT_SECRET in the same env block, plus TENANT_ID unless it is organizations. Without them, calls start failing when the access token expires, within about an hour of signing in. The token-file setup above avoids this.
The server provides 17 tools for comprehensive Microsoft To Do management:
auth-status - Check authentication status, token expiration, and account typeinfo - Report the server's name, version, build, runtime, and tool count (from somamcp; build details come from the SOMAMCP_BUILD_COMMIT, SOMAMCP_BUILD_DATE, SOMAMCP_BUILD_BRANCH and SOMAMCP_ENVIRONMENT environment variables when set)get-task-lists - Retrieve all task lists with metadata (default, shared, etc.)create-task-list - Create a new task listupdate-task-list - Rename an existing task listdelete-task-list - Delete a task list and all its contentsget-task-lists-organized - Group task lists into folders by naming pattern, emoji prefix, or sharing status (groupBy: category, shared, or type; includeIds adds an ID reference)get-tasks - Get tasks from a list with filtering, sorting, and pagination
$filter, $orderby, $top, $skip, $countorderby works on date fields such as createdDateTime; Graph rejects orderby=titletop caps the total, and the server follows Graph's paging to collect every pagecount prints the number of tasks returned; Graph itself returns no count for To Do tasksselect limits which fields print (status, dueDateTime, importance, categories, recurrence, body); it is applied by the server, not sent to Graphcreate-task - Create a new task with full property support
update-task - Update any task properties including recurrence (pass null to stop a recurring task)delete-task - Delete a task and all its checklist itemsPass a recurrence object to create-task or update-task to make a task repeat.
Recurrence derives its first occurrence from the task's dueDateTime, which is
required. Examples:
Each pattern type needs its own fields, and the server refuses a rule that leaves one
out or adds one the type does not use: weekly and relativeMonthly take daysOfWeek,
absoluteMonthly takes dayOfMonth, absoluteYearly takes dayOfMonth and month,
and relativeYearly takes daysOfWeek and month. A weekly rule without
firstDayOfWeek gets sunday. An endDate range needs endDate, and a numbered
range needs numberOfOccurrences.
Stop a recurring task by passing recurrence: null to update-task. See
https://learn.microsoft.com/en-us/graph/api/resources/recurrencepattern for
the full schema.
get-checklist-items - Get subtasks for a specific taskcreate-checklist-item - Add a new subtask to a taskupdate-checklist-item - Update subtask text or completion statusdelete-checklist-item - Remove a specific subtaskarchive-completed-tasks - Move completed tasks older than olderThanDays (default 90) from one list to another; dryRun previews without movingtest-graph-api-exploration - Run read-only Graph API probes (odata-select, odata-expand, headers, extensions, or all) to look for hidden list properties; for debugging, not everyday usesrc/todo-index.ts) - The 16 To Do tools, registered on a somamcp serversrc/token-manager.ts) - Finds, renews and saves tokenssrc/cli.ts) - Executable entry point; starts the server over stdiosrc/auth-server.ts) - Express server for the OAuth 2.0 sign-insrc/setup.ts) - The guided mstodo-setup commandsrc/create-mcp-config.ts) - Helper to create MCP configurationsauth-status and the sign-in page still warn that personal accounts may hit MailboxNotEnabledForRESTAPI. If you do see that error, Microsoft has not enabled the To Do API for that mailbox. It is a Microsoft-side limit, not a bug in this serverToken acquisition failures
unauthorized_client: The client does not exist or is not enabled for consumers: Microsoft can't use the app for this account. Either the app registration was deleted, or its supported account types exclude personal accountsAADSTS7000215 (invalid client secret) or AADSTS7000222 (expired client secret): create a new secret under "Certificates & secrets" and update .env, then sign in again so tokens.json stores itCLIENT_ID, CLIENT_SECRET, and TENANT_ID in your .env filehttp://localhost:3000/callbackPermission issues
Work/School Accounts
Personal Accounts
Check authentication status:
Enable verbose logging:
Contributions are welcome! Please:
pnpm run validate (format, lint, typecheck, test, build) before submittingMIT License - See LICENSE file for details
來源:README.md,提交 88fc6ab
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.
無需輸入參數。
Get all Microsoft Todo task lists (the top-level containers that organize your tasks). Shows list names, IDs, and indicates default or shared lists.
無需輸入參數。
Get all task lists organized into logical folders/categories based on naming patterns, emoji prefixes, and sharing status. Provides a hierarchical view similar to folder organization.
groupByincludeIdsCreate a new task list (top-level container) in Microsoft Todo to help organize your tasks into categories or projects.
displayName必填Update the name of an existing task list (top-level container) in Microsoft Todo.
listId必填displayName必填Delete a task list (top-level container) from Microsoft Todo. This will remove the list and all tasks within it.
listId必填Get tasks from a specific Microsoft Todo list. These are the main todo items that can contain checklist items (subtasks).
topskipcountfilterlistId必填selectorderbyCreate 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. Pass `recurrence` to make the task repeat (e.g. monthly bill payments, birthdays, weekly reviews).
bodytitle必填listId必填statuscategoriesimportancerecurrencedueDateTimeisReminderOnstartDateTimereminderDateTimeUpdate an existing task in Microsoft Todo. Allows changing any properties of the task including title, due date, importance, and recurrence. To stop a recurring task, pass `recurrence: null`. Pass a new `recurrence` object to change or add recurrence.
bodytitlelistId必填statustaskId必填categoriesimportancerecurrencedueDateTimeisReminderOnstartDateTimereminderDateTimeDelete a task from a Microsoft Todo list. This will remove the task and all its checklist items (subtasks).
listId必填taskId必填Get checklist items (subtasks) for a specific task. Checklist items are smaller steps or components that belong to a parent task.
listId必填taskId必填Create a new checklist item (subtask) for a task. Checklist items help break down a task into smaller, manageable steps.
listId必填taskId必填isCheckeddisplayName必填Update an existing checklist item (subtask). Allows changing the text content or completion status of the subtask.
listId必填taskId必填isCheckeddisplayNamechecklistItemId必填Delete a checklist item (subtask) from a task. This removes just the specific subtask, not the parent task.
listId必填taskId必填checklistItemId必填Move completed tasks older than a specified number of days from one list to another (archive) list. Useful for cleaning up active lists while preserving historical tasks.
dryRunsourceListId必填targetListId必填olderThanDaysTest various Graph API queries to discover hidden properties or endpoints for folder/group organization in Microsoft To Do.
testType必填已滿足適用檢查項的 80%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
請在儲存庫或註冊中心條目中宣告授權條款。

com.microsoft官方發布者
一個免費的遠端 MCP 伺服器,讓 AI 助理搜尋微軟官方 Learn 文件、尋找程式碼範例,並把文件頁面抓取為 markdown。

com.microsoft官方發布者
遠端 MCP 伺服器,為 AI 代理提供受管理的 Playwright 雲端瀏覽器,可建立工作階段、瀏覽並檢視頁面、與頁面元素互動。

com.microsoft官方發布者
遠端 Microsoft Sentinel MCP 伺服器,讓助理以自然語言尋找相關資料表,並從 Sentinel 資料湖擷取安全性資料。
com.microsoft
讓助理透過桌面自動化,在使用者的 Windows 電腦上建立、更新與讀取 Microsoft Visio 圖表。

由 GitHub 帳號 surendranb 發布
本機 MCP 伺服器,把 Microsoft Clarity 的行為 UX 資料(暴怒點擊、無效點擊、快速返回、JS 錯誤)提供給 AI 助理分析。
# Claude Codeclaude mcp add --transport http agent-todo https://api.agent-gate.com/agent-todo/mcp# Install globally using npmnpm install -g microsoft-todo-mcp-server
# Or using pnpmpnpm install -g microsoft-todo-mcp-server
# Or run directly with npx (no installation)npx microsoft-todo-mcp-servergit clone https://github.com/jordanburke/microsoft-todo-mcp-server.gitcd microsoft-todo-mcp-serverpnpm installpnpm run buildCLIENT_ID=your_client_idCLIENT_SECRET=your_client_secretTENANT_ID=your_tenant_settingREDIRECT_URI=http://localhost:3000/callback# For multi-tenant organizational accounts (default)TENANT_ID=organizations
# For personal Microsoft accountsTENANT_ID=consumers
# For both organizational and personal accountsTENANT_ID=common
# For a specific organization tenantTENANT_ID=00000000-0000-0000-0000-000000000000# Override the locationexport MSTODO_TOKEN_FILE=/path/to/custom/tokens.jsonexport MS_TODO_ACCESS_TOKEN=your_access_tokenexport MS_TODO_REFRESH_TOKEN=your_refresh_tokengit clone https://github.com/jordanburke/microsoft-todo-mcp-server.gitcd microsoft-todo-mcp-serverpnpm installpnpm run buildpnpm run auth# macOS and Linuxmkdir -p ~/.config/microsoft-todo-mcpmv tokens.json ~/.config/microsoft-todo-mcp/tokens.jsonchmod 600 ~/.config/microsoft-todo-mcp/tokens.jsonclaude mcp add -s user microsoft-todo -- npx -y microsoft-todo-mcp-server
# Token file somewhere else:claude mcp add -s user microsoft-todo -e MSTODO_TOKEN_FILE=/path/to/tokens.json -- npx -y microsoft-todo-mcp-server{ "mcpServers": { "microsoftTodo": { "command": "npx", "args": ["--yes", "microsoft-todo-mcp-server"] } }}# Development & Buildingpnpm run build # Build TypeScript to JavaScriptpnpm run dev # Build and run CLI in one commandpnpm run validate # Format, lint, typecheck, test and buildpnpm test # Run the tests
# Running the Serverpnpm start # Run MCP server directlypnpm run cli # Run MCP server via CLI wrappernpx microsoft-todo-mcp-server # Run globally installed version
# Authentication & Configurationpnpm run auth # Start OAuth authentication serverpnpm run create-config # Generate mcp.json from tokens.json
# Code Qualitypnpm run format # Format code with Prettierpnpm run format:check # Check code formattingpnpm run lint # Run linting checkspnpm run typecheck # TypeScript type checking// Monthly bill, 15th of every month, forever{ "pattern": {"type": "absoluteMonthly", "interval": 1, "dayOfMonth": 15}, "range": {"type": "noEnd"}}
// Weekly standup every Monday, ends 2027-01-01{ "pattern": {"type": "weekly", "interval": 1, "daysOfWeek": ["monday"]}, "range": {"type": "endDate", "endDate": "2027-01-01"}}
// Annual birthday, on the 4th of September{ "pattern": {"type": "absoluteYearly", "interval": 1, "dayOfMonth": 4, "month": 9}, "range": {"type": "noEnd"}}TENANT_ID=organizations # Multi-tenant# Or use your specific tenant IDTENANT_ID=consumers # Personal only# Or TENANT_ID=common for both types# Using the MCP tool# In your AI assistant: "Check auth status"
# Or read the expiry from the token file (it also holds secrets, so don't share its contents)jq '.expiresAt' ~/.config/microsoft-todo-mcp/tokens.json
# Convert the timestamp to a readable datedate -d @$(($(jq -r '.expiresAt' ~/.config/microsoft-todo-mcp/tokens.json) / 1000))# The server logs to stderr for debuggingmstodo 2> debug.log