mcp-google-tasks
MCP server for the Google Tasks API — manage task lists, create and organize tasks with due dates, notes and subtasks, track completion and sync changes. For Claude, Cursor, Codex and other AI clients.
Documentation
Google Tasks MCP
English | Русский
A1 Google Tasks MCP lets an AI app manage Google Tasks in plain language. Plan a project as a task list, break work into subtasks with due dates and notes, mark things done and keep everything in order.
It uses the Google Tasks API with your Google account. It separates reversible completion from permanent deletion and makes the limits of the Tasks API explicit instead of implying that every to-do feature is possible.
- 21 tools. List, create and update task lists and tasks, move tasks, manage completion, sweep finished work and reach the raw API when a dedicated tool is missing.
- Connects from the conversation. Say "connect Google Tasks": the server walks you through the OAuth client, catches Google's redirect on
127.0.0.1with PKCE and keeps the tokens itself — no config files, no restart. - Completion is reversible, deletion is not.
complete_taskhas an undo (reopen_task); the delete tools are separate and marked destructive. - Due dates are honest. The API stores only the calendar date — the server never pretends to schedule a time of day; times belong in the notes.
- Minimal Google scope. A single
tasksscope, without Drive, Calendar or Gmail access.
Start with a read-only question:
Show me my task lists and everything due before Friday in my default list.
Connect the server · Explore use cases · Open technical documentation
See it work in a minute
You: What's still open in the "Website launch" list, and what's due this week?
Assistant: Shows the open tasks with their due dates, notes and subtasks. Nothing changes.
You: Add a task "Send the launch announcement" due Friday as a subtask of "Marketing".
Assistant: Shows the target list, the parent task and the proposed task, then asks for confirmation before creating it.
You: Confirm.
Assistant: Creates the subtask with a Friday due date. It does not complete or delete anything unless you ask separately.
Contents
- Quick start
- What you can ask it to do
- How a task changes
- What can change
- Getting access
- Configuration
- Data, limits and background work
- Technical documentation
- Support
Quick start
You need Node.js 20+ and a Google account. Credentials are not required at install time — the server connects from the conversation.
- Add the server to your AI app.
- Say "connect Google Tasks": the assistant walks you through creating the OAuth client and approving access without editing config files.
- Ask the read-only question above.
Codex
In the app: open Settings → MCP servers, select Add server, choose STDIO, enter the command npx -y mcp-google-tasks@latest and environment variables GOOGLE_TASKS_CLIENT_ID, GOOGLE_TASKS_CLIENT_SECRET, GOOGLE_TASKS_REFRESH_TOKEN, then select Save and Restart.
From the command line:
codex mcp add google-tasks \
-- npx -y mcp-google-tasks@latest
codex mcp list
Claude Code
claude mcp add \
--transport stdio --scope user google-tasks \
-- npx -y mcp-google-tasks@latest
claude mcp list
Claude Desktop
The current official path is Settings → Extensions. For a custom desktop extension, open Advanced settings → Extension Developer → Install Extension…, select a .mcpb file and follow the prompts.
This repository currently publishes an npm stdio package and does not contain a .mcpb bundle. For Claude Desktop builds that still support local configuration, use the following JSON stdio configuration as a fallback:
{
"mcpServers": {
"google-tasks": {
"command": "npx",
"args": ["-y", "mcp-google-tasks@latest"]
}
}
}
In those builds, save it to ~/Library/Application Support/Claude/claude_desktop_config.json on macOS or %APPDATA%\Claude\claude_desktop_config.json on Windows.
Cursor
Add this to ~/.cursor/mcp.json on macOS/Linux or %USERPROFILE%\.cursor\mcp.json on Windows:
{
"mcpServers": {
"google-tasks": {
"type": "stdio",
"command": "npx",
"args": ["-y", "mcp-google-tasks@latest"]
}
}
}
VS Code
Run MCP: Open User Configuration and add:
{
"servers": {
"google-tasks": {
"type": "stdio",
"command": "npx",
"args": ["-y", "mcp-google-tasks@latest"]
}
}
}
Check it with MCP: List Servers.
What you can ask it to do
See your lists and plan the day
- Show my task lists and the open tasks in each one.
- What's due this week in the default list? Include subtasks.
- What changed since yesterday? Include completed and hidden tasks.
Create and organize work
- Create a "Website launch" list with tasks for design, content and QA.
- Add a task due Friday with notes, nested under the "Marketing" task.
- Move a task to the top of the list, under another task, or into a different list.
Track completion
- Mark the review task done — and reopen it if the work comes back.
- Sweep every completed task out of the list view in one go.
- Show the hidden tasks that were swept earlier.
How a task changes
- Tasks live in task lists. Every account has a built-in default list, addressed by the special id
@default;create_tasklistadds more. - A task carries a title, notes and a date-only due date — the API discards the time portion, so a time of day belongs in the notes.
- Ordering and nesting change only through
move_task; the API'spositionfield is read-only. - Completing a task is reversible:
reopen_taskbrings it back. Deleting a task or a list is permanent, and deleting a list removes every task in it.
Recurring tasks cannot be created through the API. Tasks assigned from Google Docs or Chat can be read but not created or moved to another list, and deleting one also removes it in the originating document. There is no server-side search or sorting — the server lists tasks and the AI client filters them.
What can change
| Operation | What happens | Confirmation boundary |
|---|---|---|
| Read task lists and tasks | Reads lists, tasks and their filters | No change |
| Create a task list or a task | Adds a list or an open task | Changes Google Tasks |
| Update a task or rename a list | Changes a title, notes or due date | Changes a task |
| Move a task | Changes order, nesting or the containing list | Changes a task |
| Complete or reopen a task | Toggles completion status | Reversible change |
| Clear completed tasks | Sweeps every completed task in a list out of view | Destructive |
| Delete a task or a task list | Removes the task, or the list with everything in it | Destructive |
| Raw API request | Can call API methods without a dedicated tool | Potentially destructive |
The AI client controls confirmation prompts. The server marks reads, writes and destructive tools so the client can distinguish an inspection from a live change.
Getting access
Google Tasks requires OAuth 2.0; an API key is not enough. There are two ways in, and the first one needs no configuration files.
Connect from the chat (recommended)
Say "connect Google Tasks" and the assistant runs the flow with you:
setup_instructionsprints the checklist: create or select a Google Cloud project, enable Google Tasks API, configure the consent screen and create a Desktop app OAuth client.- Download that client's JSON ("Download JSON") and give the assistant its path —
set_clientstores it owner-only. The secret never goes through the conversation. start_loginreturns a Google consent link. Open it on this machine and approve; the code comes back to a one-shot listener on127.0.0.1(PKCE), never through the chat.finish_loginexchanges the code and saves the tokens to~/.config/mcp-google-tasks/credentials.json(mode 0600) and verifies them with a real Google Tasks API call — so an API that is still switched off is caught right there.
The tokens are re-read on every call, so the connection works immediately — no restart of the AI app. auth_status shows what is connected, logout revokes and deletes it.
Environment variables (CI, unattended installs)
-
Create or select a Google Cloud project and enable Google Tasks API.
-
Configure the OAuth consent screen and create a Desktop app OAuth client.
-
Authorize the Google account that owns the tasks. The OAuth 2.0 Playground can obtain the refresh token when Use your own OAuth credentials is enabled.
-
Request the scope:
https://www.googleapis.com/auth/tasks
Testing-mode OAuth refresh tokens can expire after seven days. Publish the OAuth app, or use an Internal app in a Workspace domain, when you need long-lived access. Treat the client secret and refresh token as passwords.
Configuration
Every variable is optional — with none of them the server connects from the chat.
| Variable | Required | Description |
|---|---|---|
GOOGLE_TASKS_CLIENT_ID | No* | OAuth client ID. |
GOOGLE_TASKS_CLIENT_SECRET | No* | OAuth client secret. |
GOOGLE_TASKS_REFRESH_TOKEN | No* | OAuth refresh token. |
GOOGLE_TASKS_ACCESS_TOKEN | No* | Short-lived alternative to the OAuth trio. |
GOOGLE_TASKS_OAUTH_PORT | No | Fixed loopback port for the in-chat login; useful over SSH port forwarding. |
GOOGLE_TASKS_API_BASE | No | Google Tasks API base URL override. |
GOOGLE_TASKS_TIMEOUT_MS | No | Per-request timeout; default 60000 ms. |
GOOGLE_TASKS_MAX_RETRIES | No | Temporary-error retries; default 3. |
* Provide either the OAuth trio or an access token.
Without credentials the server still starts and completes the MCP handshake; the first tool call then fails with a message naming the variables to set and asking for a restart.
Data, limits and background work
- Requests go to Google Tasks. The local server refreshes Google OAuth tokens and calls the Tasks API. Its anonymous telemetry contains an installation ID, package version, AI client and platform versions, and tool names — never OAuth tokens, task content, tool arguments or prompts. Set
ASKADS_TELEMETRY=0to opt out. - Google applies a daily quota. The Tasks API has a courtesy limit of 50,000 queries per day per project. On
429, the server uses backoff; reads also retry after network and5xxerrors, while writes are not replayed after an uncertain failure — check the outcome withget_taskinstead. - There is no background polling. The server runs only when called.
list_taskssupports incremental sync through theupdated_minfilter, so an AI app with scheduled tasks can check for changes periodically without re-reading everything.
Technical documentation
- MCP capability catalog — task-oriented pages for every tool.
- All tools and inputs
- Development documentation
- Publishing documentation
- Google Tasks API reference
Support
Found a bug or need a scenario? Create an issue or write in Telegram.
You made it to the end!