Microsoft Todo MCP Server
概览
作者提供的说明(英文原文)
Microsoft To Do via Graph — task lists, tasks, checklist items and reminders.
PopNx MCP 的三大支柱
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
- 用户评价i暂无评价评价功能将在后续阶段与账户功能一起开放
- 我们的基础检查i1 项中通过 1 项依据公开信息检查;尚未扫描代码
- 使用情况i起步阶段↓ 627/周 · ★ –
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 在你的电脑上运行
- 传输方式: stdio
- 分类: 文档、表格与办公
- 你需要填写:MS_TODO_ACCESS_TOKEN, MS_TODO_REFRESH_TOKEN, CLIENT_SECRET
安装
选择你使用的 AI 应用,然后复制设置。
安装之前
- 基础检查:1 项中通过 1 项
- 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
- 需要你自己填写:
MS_TODO_ACCESS_TOKEN,MS_TODO_REFRESH_TOKEN,CLIENT_ID,CLIENT_SECRET,TENANT_ID
标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
- npm已安装 Node.js(用于 npx 命令)
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"microsoft-todo": {
"command": "npx",
"args": [
"-y",
"microsoft-todo-mcp-server"
],
"env": {
"MS_TODO_ACCESS_TOKEN": "your-value",
"MS_TODO_REFRESH_TOKEN": "your-value",
"CLIENT_ID": "your-value",
"CLIENT_SECRET": "your-value",
"TENANT_ID": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add microsoft-todo --env MS_TODO_ACCESS_TOKEN=your-value --env MS_TODO_REFRESH_TOKEN=your-value --env CLIENT_ID=your-value --env CLIENT_SECRET=your-value --env TENANT_ID=your-value -- npx -y microsoft-todo-mcp-server运行前请先填写空着的值。
或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"microsoft-todo": {
"command": "npx",
"args": [
"-y",
"microsoft-todo-mcp-server"
],
"env": {
"MS_TODO_ACCESS_TOKEN": "your-value",
"MS_TODO_REFRESH_TOKEN": "your-value",
"CLIENT_ID": "your-value",
"CLIENT_SECRET": "your-value",
"TENANT_ID": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"microsoft-todo": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"microsoft-todo-mcp-server"
],
"env": {
"MS_TODO_ACCESS_TOKEN": "your-value",
"MS_TODO_REFRESH_TOKEN": "your-value",
"CLIENT_ID": "your-value",
"CLIENT_SECRET": "your-value",
"TENANT_ID": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
需要你填写的值
- Microsoft Graph access token. Must be set together with MS_TODO_REFRESH_TOKEN; `mstodo-config` emits both.
- Refresh token. Required alongside the access token, but note the env-token path does not renew: once the access token expires the server returns 401 until it is replaced.
CLIENT_IDenvAzure AD application (client) ID. The server reads it to refresh tokens when the stored token file carries no credentials; `mstodo-setup` also uses it.- Azure AD client secret, used for the same token refresh and by `mstodo-setup`.
TENANT_IDenvAzure AD tenant: 'organizations' (the default), 'consumers', 'common', or a tenant GUID.
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 jordanburke 验证,该账户拥有此仓库
- … 尚未检查
仍在维护
我们还没有从 GitHub 读取这个仓库
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与“文档、表格与办公”中的其他服务器比较i
- 星标数多于此分类中其他 3586 个服务器的 0%
- 发布到注册中心的时间比此分类中其他 3586 个服务器的 78% 更新
- 基础检查结果等于或优于此分类中其他 3586 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
Microsoft Todo MCP Server 安全吗?
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
你需要填写:MS_TODO_ACCESS_TOKEN, MS_TODO_REFRESH_TOKEN, CLIENT_SECRET
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于–,最新版本(1.2.0)于8天前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
有什么可以替代它?
同一分类中有:Agent-Native Calendar, Excel MCP Server, MCP Server for Excel
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Excel MCP Server
Create and edit Excel files with AI: charts, PivotTables, formulas. No Excel needed.
MCP Server for Excel
Excel automation for AI - Sheets, Power Query, DAX, VBA, Tables, Ranges and more. Windows only.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Microsoft To Do MCP
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.
Just want to try it? Use Agent Todo
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.
- Free plan: one connected task provider, such as Microsoft To Do, with read and write access.
- Pro plan: every provider (Google Tasks and Todoist too), with sync between them.
Connect it from any MCP client that supports remote servers. It signs you in with OAuth on first use.
# Claude Code
claude mcp add --transport http agent-todo https://api.agent-gate.com/agent-todo/mcp
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.
Features
- 17 MCP Tools: Complete task management functionality including lists, tasks, checklist items, and organization features
- Recurring Tasks: First-class support for Microsoft Graph
recurrence(daily / weekly / absoluteMonthly / relativeMonthly / absoluteYearly / relativeYearly) oncreate-taskandupdate-task - OAuth 2.0 Authentication: Sign in once; tokens renew automatically
- Microsoft Graph API Integration: Direct integration with Microsoft's official API
- Multi-tenant Support: Works with personal, work, and school Microsoft accounts
- Built on [somamcp](https://www.npmjs.com/package/somamcp): MCP SDK 2.x underneath, served over stdio
- TypeScript: Fully typed for reliability and developer experience
- ESM Modules: Modern JavaScript module system
Prerequisites
- Node.js 20 or higher (CI tests 22.x and 24.x); building from source needs 22.18 or higher, or 24.11 or higher
- pnpm, only to build from source
- A Microsoft account (personal, work, or school)
- Azure App Registration (see setup below)
Installation
Option 1: Global Installation (Recommended)
# Install globally using npm
npm install -g microsoft-todo-mcp-server
Or using pnpm
pnpm install -g microsoft-todo-mcp-server
Or run directly with npx (no installation)
npx microsoft-todo-mcp-server
The package provides four commands:
microsoft-todo-mcp-server- The MCP servermstodo- Short alias for the MCP servermstodo-config- Writes anmcp.jsonfromtokens.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 instead
Option 2: Clone and Run Locally
git clone https://github.com/jordanburke/microsoft-todo-mcp-server.git
cd microsoft-todo-mcp-server pnpm install pnpm run build
Azure App Registration
- Go to the Azure Portal
- Navigate to "App registrations" and create a new registration
- Name your application (e.g., "To Do MCP")
- 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
- Add a Web platform redirect URI:
http://localhost:3000/callback - After creating the app, go to "Certificates & secrets" and create a new client secret. Note when it expires: sign-in and token renewal stop working on that date
- Go to "API permissions" and add these Microsoft Graph delegated permissions. The sign-in requests these (plus the standard
openidandprofile), 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_access
- For a work or school tenant that requires it, an admin clicks "Grant admin consent". Personal accounts consent on the sign-in page
Configuration
Environment Setup
Create a .env file in the repository root, where you run pnpm run auth (required for sign-in):
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 (the default whenTENANT_IDis unset)consumers- For personal Microsoft accounts onlycommon- For both organizational and personal accountsyour-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
Token Storage
The server stores authentication tokens in tokens.json. It looks in three places, in order:
MSTODO_TOKEN_FILE, if set- the per-user config directory —
~/.config/microsoft-todo-mcp/tokens.json, or%APPDATA%\microsoft-todo-mcp\tokens.jsonon Windows tokens.jsonin the working directory, which is migrated to whichever of (1) or (2) is in effect on first read
# Override the location
export MSTODO_TOKEN_FILE=/path/to/custom/tokens.json
You can also supply tokens directly, which takes precedence over the file:
export MS_TODO_ACCESS_TOKEN=your_access_token
export MS_TODO_REFRESH_TOKEN=your_refresh_token
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.
Usage
Complete Setup Workflow
Step 1: Sign in with Microsoft
Sign-in runs from a clone of this repository, with the .env file from Configuration in its root:
git clone https://github.com/jordanburke/microsoft-todo-mcp-server.git
cd microsoft-todo-mcp-server pnpm install pnpm run build pnpm run auth
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.
Step 2: Move the tokens where the server looks
tokens.json holds your refresh token and your client secret, so keep it private:
# macOS and Linux
mkdir -p ~/.config/microsoft-todo-mcp mv tokens.json ~/.config/microsoft-todo-mcp/tokens.json chmod 600 ~/.config/microsoft-todo-mcp/tokens.json
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.
Step 3: Configure Your AI Assistant
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:
claude 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
-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:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
{
"mcpServers": { "microsoftTodo": { "command": "npx", "args": ["--yes", "microsoft-todo-mcp-server"] } } }
Add "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.
Available Scripts
# Development & Building
pnpm run build # Build TypeScript to JavaScript pnpm run dev # Build and run CLI in one command pnpm run validate # Format, lint, typecheck, test and build pnpm test # Run the tests
Running the Server
pnpm start # Run MCP server directly pnpm run cli # Run MCP server via CLI wrapper npx microsoft-todo-mcp-server # Run globally installed version
Authentication & Configuration
pnpm run auth # Start OAuth authentication server pnpm run create-config # Generate mcp.json from tokens.json
Code Quality
pnpm run format # Format code with Prettier pnpm run format:check # Check code formatting pnpm run lint # Run linting checks pnpm run typecheck # TypeScript type checking
MCP Tools
The server provides 17 tools for comprehensive Microsoft To Do management:
Authentication and Server Info
- `auth-status` - Check authentication status, token expiration, and account type
- `info` - 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_BRANCHandSOMAMCP_ENVIRONMENTenvironment variables when set)
Task Lists (Top-level Containers)
- `get-task-lists` - Retrieve all task lists with metadata (default, shared, etc.)
- `create-task-list` - Create a new task list
- `update-task-list` - Rename an existing task list
- `delete-task-list` - Delete a task list and all its contents
- `get-task-lists-organized` - Group task lists into folders by naming pattern, emoji prefix, or sharing status (
groupBy:category,shared, ortype;includeIdsadds an ID reference)
Tasks (Main Todo Items)
- `get-tasks` - Get tasks from a list with filtering, sorting, and pagination
- Supports OData query parameters:
$filter,$orderby,$top,$skip,$count orderbyworks on date fields such ascreatedDateTime; Graph rejectsorderby=titletopcaps the total,
只显示了开头部分;其余内容请在仓库中阅读