
Google Tasks
io.github.girmmy由 GitHub 账号 girmmy 发布v1.0.3更新于 Oct 24, 2026
Read/write Google Tasks: create, update, complete, delete, move tasks and lists, with due dates.
概览
让助手读写 Google Tasks:列出、创建、更新、完成、删除和移动任务清单与任务,并支持截止日期。
- 可以做什么
- 这是一个为 MCP 客户端提供 Google Tasks 完整读写能力的 MCP 服务器。工具覆盖任务清单(列出、获取、创建、重命名、删除)和任务(按截止日期与更新时间筛选并分页列出、获取、创建含子任务、更新标题/备注/截止日期/状态、完成或重新打开、删除、移动或更改父任务、清空已完成任务)。所有工具都支持 markdown 或 JSON 响应格式。
- 适用场景
- 适合让助手直接管理你自己的 Google Tasks,例如把笔记或对话转成任务、调整截止日期、清理已完成条目。它是面向个人单一账号的集成,而非共享或托管服务。
- 运行要求
- 以 stdio 方式在本地运行,通常通过 npx 或全局 npm 安装,因此需要 Node.js。每位用户需自行创建 Google Cloud OAuth 桌面客户端、启用 Google Tasks API,并完成一次浏览器授权。配置使用 GOOGLE_TASKS_CLIENT_SECRET、GOOGLE_TASKS_TOKEN_PATH 和 GOOGLE_TASKS_OAUTH_PORT;授权步骤需要回环端口和本地浏览器。
安装
在 SourceWeft 中
- 打开 控制台中的 Google Tasks,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
google-tasks-mcp-server
[npm] [CI] [License: MIT] [Listed on mcpservers.org]
An MCP server for Google Tasks. Gives any MCP client (Claude Desktop, Claude Code, Codex, Cursor, etc.) full read/write access to your task lists and tasks: list, create, update, complete, delete, and move them, with real due dates.
There's no official Google Tasks MCP server, so this covers that. Full CRUD, OAuth installed-app auth flow (your credentials never leave your machine), TypeScript throughout.
Tools
Task lists
google_tasks_list_tasklistslist all task listsgoogle_tasks_get_tasklistget one task listgoogle_tasks_create_tasklistcreate a new task listgoogle_tasks_update_tasklistrename a task listgoogle_tasks_delete_tasklistdelete a task list and all its tasks
Tasks
google_tasks_list_taskslist tasks in a list, with due-date/updated filters and paginationgoogle_tasks_get_taskget one taskgoogle_tasks_create_taskcreate a task (optionally as a subtask, optionally positioned)google_tasks_update_taskupdate title/notes/due date/statusgoogle_tasks_complete_task/google_tasks_reopen_taskmark done / not donegoogle_tasks_delete_taskdelete a taskgoogle_tasks_move_taskreorder, re-parent, or move a task to a different listgoogle_tasks_clear_completed_tasksclear all completed tasks from a list
Every tool supports response_format: "markdown" | "json".
Quick start
From npm:
Or don't install it at all and let your MCP client run it via npx (see step 4).
Or from source:
Either way, follow Setup below to create your own Google OAuth credentials and authorize. There's no shared or hosted version of this, it talks directly to your own Google account.
Setup
1. Create a Google Cloud OAuth client
Each user needs their own OAuth client. It's not something that can be shared, since anyone using your client secret could impersonate your app (though they'd still need each individual user's own consent).
- Go to the Google Cloud Console, create (or pick) a project.
- APIs & Services → Library → enable the Google Tasks API.
- APIs & Services → OAuth consent screen (Google now calls this "Google Auth Platform"):
- User type: External is fine for personal use.
- Fill in app name and your email for support/contact.
- Under Audience → Test users, add your own Google account. While the app is in "Testing" status only listed test users can authorize it, which is fine for running this yourself.
- Clients → Create Client → Application type Desktop app. Create it.
- Grab the client ID and client secret, either via "Download JSON" right after creation or from the client's detail page later. Google's console won't show a secret's plaintext again once you navigate away, only download or regenerate it, so if you lose it just add a new secret instead of hunting for the old one.
- Save that file. By default this server looks for it at:
~/.config/google-tasks-mcp-server/client_secret.json(override the path with theGOOGLE_TASKS_CLIENT_SECRETenv var, useful if you'd rather keep it inside the project directory, e.g../credentials/client_secret.json.credentials/is already gitignored.)
The file should look like:
2. Install
From npm (nothing to build):
From source:
3. Authorize (one-time)
If you installed from npm:
From source:
This prints a Google consent URL and tries to open it in your default browser. Sign in, grant access, and it redirects back to a short-lived local server on http://localhost:53682. The token gets cached to ~/.config/google-tasks-mcp-server/token.json (override with GOOGLE_TASKS_TOKEN_PATH) and refreshed automatically from then on, so you shouldn't need to run this again unless you revoke access.
Run this on the same machine and in the same regular terminal you'll actually use day to day. See Troubleshooting below if you're running it from a container, VM, or sandboxed shell where localhost doesn't map back to your browser.
4. Run it
Or wire it into an MCP client. For Claude Desktop / Claude Code, add to your MCP config (usually ~/Library/Application Support/Claude/claude_desktop_config.json on macOS).
Using npm, with your client secret at the default ~/.config/... path, this is the whole config:
Or pointing at a source checkout:
Omit the env block if you saved your client secret at the default ~/.config/... path. Fully quit and reopen your MCP client afterward.
Codex
Codex uses TOML rather than JSON. Add this to ~/.codex/config.toml:
Or let the CLI write it for you:
Raise startup_timeout_sec if the first launch times out. A cold npx downloads the
package before the server can answer initialize, and Codex's default allowance is short
enough that this sometimes trips on the first run only.
If your client secret isn't at the default path, add:
Check it registered with codex mcp list. Authorization is the same one-time
google-tasks-mcp-auth step as everywhere else — run it in a normal terminal, not inside
Codex, since it needs to open a browser and catch a loopback redirect.
Environment variables
Security notes
- The client secret and cached token are plain files on disk (mode
0600for the token). Never commit them (.gitignorealready excludesclient_secret*.json,token.json,credentials/). - The server requests the full
https://www.googleapis.com/auth/tasksscope (read/write). For read-only access, editTASKS_SCOPEinsrc/constants.tsto.../auth/tasks.readonlybefore runningnpm run auth. Write tools will then fail with a 403 from Google, which is expected. - Tool annotations mark deletion/clear operations as
destructiveHint: trueso MCP clients can warn or gate on them. - Nothing here talks to any server but Google's own APIs and, during
npm run auth, a local loopback listener. No third-party backend involved.
Troubleshooting
npm run auth opens a URL, I click Allow, and it just hangs.
The process running npm run auth isn't on the same machine/network as the browser you're clicking Allow in. Common if you're running the server inside a container, remote dev environment, or sandboxed shell that isolates localhost. Fix: run npm run auth directly in a normal local terminal on the machine whose browser you're using.
Error [TransformError] ... You installed esbuild for another platform
Your node_modules was installed on a different OS/architecture than you're running on now, e.g. copied from a Docker container or a different machine. Fix: rm -rf node_modules package-lock.json && npm install.
Authorization failed: invalid_client
Your client_secret.json has the wrong client secret in it, usually from copy-pasting it by hand instead of downloading it directly. Go back to Google Cloud Console, add a fresh client secret, download or copy it directly, and update your client_secret.json.
Server exits immediately with "No cached Google Tasks token found"
You haven't authorized yet, or the flow didn't finish. Run google-tasks-mcp-auth (npm install) or npm run auth (source checkout) before starting the server.
Development
Test with the MCP Inspector:
Contributing
Issues and PRs welcome. This covers the full Tasks API surface but hasn't been tested across every edge case, so if you hit a bug or want a feature, open an issue.
License
MIT, see LICENSE.
来源:README.md,提交 276d142
工具
0版本历史
1- v1.0.3最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分