google-tasks-mcp
An MCP server for Google Tasks with full API support including task-list CRUD, task CRUD, reordering, and a diff_tasks change-harvester that detects hidden completions.
README
google-tasks-mcp
An MCP server for Google Tasks with the full API surface: task-list CRUD, task CRUD, move/reorder, and a diff_tasks change-harvester that tells you what happened since your agent last looked.
Built for agents that maintain a task mirror (project lists your assistant keeps in sync, completions you tick on your phone that the agent picks up later), but it works fine as a general Tasks connector.
Why another one
The existing options each miss something this use case needs:
- zcaceres/gtasks-mcp, the most-cited one, has no task-list operations at all: you can't create, rename, or delete lists, which rules out per-project lists entirely. The
gtasks-mcpnpm name is also a tombstone (the package was unpublished). - arpitbatra123/mcp-googletasks covers the full surface but isn't on npm, so it's clone-and-build, and auth means pasting an OAuth code back through a tool call.
- google_workspace_mcp does everything, plus all of Workspace, plus an OAuth 2.1 setup and a native-build gotcha on Windows. Overkill if you only want Tasks.
None of them deal with the API's nastiest quirk: tasks completed in the Google Tasks apps become hidden, so a naive query silently misses exactly the completions a sync agent needs to see. diff_tasks exists because of that quirk.
Install
# 1. One-time auth (see Google Cloud setup below first)
npx google-tasks-mcp auth
# 2. Register with your MCP client, e.g. Claude Code:
claude mcp add -s user gtasks -- npx google-tasks-mcp
Any MCP-capable client works; the server speaks stdio.
Google Cloud setup (one-time, ~15 minutes)
The Tasks API requires your own OAuth client. No verification, no billing.
- console.cloud.google.com → create a project.
- APIs & Services → Library → enable Google Tasks API.
- Google Auth Platform (consent screen): User type External (Internal is Workspace-only). App name + your email. Scope:
https://www.googleapis.com/auth/tasks(classified sensitive, not restricted: no security audit needed). - Credentials → Create credentials → OAuth client ID → Desktop app → download the JSON.
- Save it as
~/.config/google-tasks-mcp/client_secret.json(or pointGTASKS_MCP_CREDENTIALSat it). - The trap everyone hits: while the consent screen's publishing status is "Testing", refresh tokens expire every 7 days and you will re-auth weekly. Set publishing status to In production (skip verification; you'll click through a one-time "Google hasn't verified this app" interstitial: Advanced → Continue). Tokens then persist indefinitely.
- Run
npx google-tasks-mcp auth: a browser opens, you approve, the refresh token lands in~/.config/google-tasks-mcp/token.json. Done forever (revoking access or 6 months of disuse are the only expiries).
Environment variables
| Variable | Default | Purpose |
|---|---|---|
GTASKS_MCP_DIR |
~/.config/google-tasks-mcp |
Config directory |
GTASKS_MCP_CREDENTIALS |
<dir>/client_secret.json |
OAuth client file |
GTASKS_MCP_TOKEN |
<dir>/token.json |
Cached refresh token |
Tools
Task lists: list_tasklists, get_tasklist, create_tasklist, update_tasklist, delete_tasklist
Tasks: list_tasks (filters: completed/hidden/deleted, updatedMin, due bounds), get_task, create_task, update_task, complete_task, delete_task, move_task (reorder, re-parent, or move across lists)
Sync: diff_tasks(since, [tasklist]) returns everything that changed after an RFC3339 timestamp, grouped per list into completed / active / deleted. It sweeps every list unless you name one.
Design notes (API sharp edges, handled)
- Due dates are date-only. The API silently discards the time portion, and naive RFC3339 values can land a day off. Pass
YYYY-MM-DD; the server normalizes to UTC midnight. - App-completed tasks go hidden. Ticking a task in the Google Tasks app sets
hidden: true; a plain list call never sees it again.diff_tasksalways queries withshowCompleted + showHidden + showDeleted, so nothing is missed. - No sync tokens. Unlike the Calendar API, Tasks has no incremental sync token.
diff_tasksusesupdatedMin; keep a snapshot on your side and pass its timestamp. positionis read-only. Reordering only works throughmove_task(parent + previous). This includes subtask nesting.- There is deliberately no
clear_completedtool. The API'stasks.clearwipes completed tasks from a list, which permanently destroys the evidencediff_tasksdepends on. An LLM should not be able to call that casually. If you truly need it, the Tasks apps expose it in their UI.
Development
git clone https://github.com/justerlex/google-tasks-mcp
cd google-tasks-mcp
npm install
npm run build
node dist/index.js auth # one-time
node dist/index.js # stdio server
One TypeScript file, ~450 lines: src/index.ts.
License
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。