Purpose
mcp-google-tasks is an MCP (Model Context Protocol) server for connecting Google Tasks to AI applications. It lets AI assistants manage task lists and tasks using natural language, for example planning projects, breaking down subtasks with due dates and notes, marking them complete, and keeping tasks organized.
Key capabilities
- Provides 21 tools to list, create, and update task lists and tasks, move tasks, manage completion status, bulk-clean completed tasks, and access the raw API when a dedicated tool is missing.
- Task lists: each account has a built-in default list, accessed using the special id
@default;create_tasklistcan create more lists. - Task fields: title, notes, and a date-only due date. The API discards the time portion, so specific times should be written into the notes.
- Ordering and nesting: can only be changed via
move_task; the API's position field is read-only. - Completion and deletion:
complete_taskcan be undone viareopen_task; deleting a task or list is permanent, deleting a list removes all tasks in it, and the delete tools are separately marked as destructive. - Incremental sync:
list_taskssupports incremental sync viaupdated_minfiltering, making it easy for AI applications with scheduled tasks to periodically check for changes. - No background polling: the server runs only when invoked.
Usage
Requires Node.js 20+ and a Google account. No credentials are needed at install time; the server connects from the conversation.
Add the server in your AI application, for example open MCP servers in settings, select Add server, select STDIO, enter the command npx -y mcp-google-tasks@latest, then save and restart. It can also be used from the command line.
There are two ways to connect:
- Connect from chat (recommended): say "connect Google Tasks". The server has a built-in OAuth client, so there is no need to create a Google Cloud project or OAuth client.
start_loginreturns a Google consent link; after opening it on this machine and approving, the code is returned through a one-time listener on 127.0.0.1 (PKCE), not through the chat.finish_loginexchanges the code, saves the token to~/.config/mcp-google-tasks/credentials.json(permissions 0600), and verifies it with a real Google Tasks API call. - Bring your own OAuth client:
setup_instructionsprints a checklist, including creating or selecting a Google Cloud project, enabling the Google Tasks API, configuring the consent screen, and creating a Desktop app OAuth client. Download that client's JSON, give the path to the assistant, andset_clientwill save it so that only the owner can access it. After that it takes precedence over the built-in client. Then runstart_loginandfinish_loginagain.
The token is re-read on every call, so the connection takes effect immediately without restarting the AI application.auth_status shows the connection status,logout Revoke and delete the connection.
Environment variables (CI, unattended installs): each variable is optional; when no variables are provided, the server connects from chat. You need to create or select a Google Cloud project and enable the Google Tasks API, configure the OAuth consent screen and create a Desktop app OAuth client, and authorize the Google account that owns the tasks. The OAuth 2.0 Playground can obtain a refresh token when "Use your own OAuth credentials" is enabled. Requested scopes:https://www.googleapis.com/auth/tasks. OAuth refresh tokens in testing mode may expire after seven days; for long-term access, publish the OAuth app or use an Internal app in a Workspace domain. Treat the client secret and refresh token as passwords.
When to use
- View task lists and the incomplete tasks in each list.
- Query tasks due this week in the default list, including subtasks.
- View changes since yesterday, including completed and hidden tasks.
- Create a "Website launch" list and create 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 a list, under another task, or to another list.
- Mark a review task complete and reopen it when work comes back.
- Clean up all completed tasks in a list at once, and view previously cleaned-up hidden tasks.
Limitations
- Recurring tasks cannot be created via the API.
- Tasks assigned from Google Docs or Chat can be read but cannot be created or moved to other lists; deleting such tasks also removes them from the source document.
- There is no server-side search or sorting; the server lists tasks and the AI client filters them.
- The AI client controls confirmation prompts; the server marks read, write, and destructive tools so clients can distinguish checks from live changes.
- Google Tasks requires OAuth 2.0; an API key alone is not enough.
- The built-in client and its Google API quota are shared by all users; bring your own client if you need an independent quota or if a Workspace administrator blocks third-party apps.
- Google has a daily quota for the Tasks API, a courtesy limit of 50,000 queries per project per day. The server uses backoff on 429; reads also retry after network and 5xx errors, writes are not replayed after an uncertain failure, and you should use
get_taskto check the result. - Anonymous telemetry includes an installation ID, package version, AI client and platform version, tool names, and the result of each tool call and, on failure, an excerpt of the error text (email addresses, addresses, tokens, numbers with 4 or more digits, and quoted text are replaced); it does not include OAuth tokens, task content, tool parameters, or prompts. Set
ASKADS_TELEMETRY=0to opt out. - Without credentials, the server still starts and completes the MCP handshake; the first tool call explains how to connect from chat and lists the variables needed for chat-free login setup.