Google Tasks MCP

v1.2.1
io.github.A1-x-Tech/mcp-google-tasks Checked 3 hours ago Published 3 days ago

MCP server for the Google Tasks API: task lists, subtasks, due dates, complete and move tasks.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

auth_status Google connection status

Shows whether this server is connected to Google: token presence and source (env variables or a stored in-chat login), expiry, the Google account email, granted vs missing OAuth scopes, where the credentials file lives and where the OAuth client comes from. Makes no network calls and never returns the token itself. Call it first when other tools report the server is not connected.

setup_instructions Setup instructions

This server ships with a built-in OAuth client, so connecting normally needs only start_login + finish_login; call this for the details or to switch to your own client. The checklist adapts to the client in use: with the built-in client it is just the two login calls, and it adds the steps for your OWN client — creating a Google Cloud project and a Desktop-app OAuth client, publishing the consent screen (mandatory — Testing-mode refresh tokens die after 7 days), downloading the client JSON and handing its PATH to set_client. Works without any credentials; with your own client already confi…

set_client Save the OAuth client

Saves the OAuth client credentials from the JSON file downloaded from Google Cloud Console ('Download JSON' on a Desktop-app client). Pass the file PATH — the secret must never be pasted into the chat. The client is stored once in the shared ~/.config/mcp-google-auth/client.json (owner-only) and reused by every mcp-google-* server; tokens stay per-server. After this, call start_login.

ParameterTypeDescription
path *stringAbsolute path to the client_secret_*.json file downloaded from Google Cloud Console.

start_login Start the Google login

First step of connecting from the chat, without editing config files or restarting the client. Returns authorizeUrl — show it to the user as a clickable link and ask them to open it in the browser ON THIS MACHINE, pick the Google account and approve access. A one-shot listener on 127.0.0.1 catches Google's redirect; the code is exchanged locally and never passes through the chat. Does not open the browser itself. The attempt lives 10 minutes; when the browser shows the success page, call finish_login.

finish_login Finish the Google login

Second step: waits up to 20 s for the browser consent to finish, saves the tokens to an owner-only file and verifies the login with a read-only identity call, returning the account email and the granted scopes. After success every tool works immediately — no client restart. If the user granted only part of the requested permissions, the login is still saved and missingScopes lists what will not work. Logging in under a different Google account replaces the previous login (its refresh token is revoked best-effort) and the response carries previousAccountEmail so the change never goes unnotice…

logout Disconnect from Google

Revokes the stored token at Google (oauth2.googleapis.com/revoke) and deletes the local credentials file. Tokens supplied via env variables are NOT touched — remove them from the MCP client config manually; envTokenStillSet in the response says whether any are still in effect.

list_tasklists List task lists

Lists the user's task lists: id, title, updated (RFC3339). Every task lives in exactly one list, so this is the entry point — task tools need a tasklist_id from here (or the "@default" alias for the default list). Paginate with page_token from nextPageToken; page_size caps a page at 1000 and the API's default is already 1000, so one call usually returns everything. The API has no search or ordering — filter client-side.

ParameterTypeDescription
page_sizeintegerMax task lists per page (1..1000; the API's default is 1000).
page_tokenstringnextPageToken from the previous page.

get_tasklist Get a task list

Fetches one task list by id: id, title, updated, selfLink. Accepts "@default" for the user's default list — useful to resolve its real id. The list resource carries only metadata; the tasks themselves come from list_tasks.

ParameterTypeDescription
tasklist_id *stringThe task list id — from list_tasklists or create_tasklist output. "@default" addresses the user's default list.

create_tasklist Create a task list

Creates a new task list and returns it (id, title, updated). The API accepts only a title — there are no other list-level settings. The returned id is the tasklist_id every task tool needs. Google caps the number of lists per account; a quota failure surfaces as an HTTP error, not silence.

ParameterTypeDescription
title *stringThe list title shown in Google Tasks (max 1024 chars).

update_tasklist Rename a task list

Renames a task list (PATCH — the title is the only field the API lets you change). Tasks, their order and their completion state are untouched. Returns the updated list resource.

ParameterTypeDescription
tasklist_id *stringThe task list id — from list_tasklists or create_tasklist output. "@default" addresses the user's default list.
title *stringThe new list title (max 1024 chars).

delete_tasklist Delete a task list

Deletes a task list AND every task in it, permanently — there is no undo and no trash. The user's default task list cannot be deleted (the API rejects it). To empty a list but keep it, use clear_completed_tasks or delete tasks one by one instead. Returns {deleted:true} with the tasklist_id echoed.

ParameterTypeDescription
tasklist_id *stringThe task list id — from list_tasklists or create_tasklist output. "@default" addresses the user's default list.

list_tasks List tasks

Lists tasks in one list: id, title, notes, status (needsAction|completed), due (date only — the API never stores a time of day), completed timestamp, parent (subtask's parent id), position (opaque sort key within siblings — sort by it client-side; change it only via move_task), updated, deleted/hidden flags, webViewLink. IMPORTANT: tasks completed in Google's own apps are also flagged hidden — pass show_completed=true AND show_hidden=true to reliably see all completed tasks. For incremental sync poll with updated_min plus show_deleted=true and show_hidden=true, so deletions and clears ar…

ParameterTypeDescription
tasklist_id *stringThe task list id — from list_tasklists or create_tasklist output. "@default" addresses the user's default list.
completed_maxstringUpper bound on the completion date (RFC3339).
completed_minstringLower bound on the completion date (RFC3339).
due_maxstringUpper bound on the due date (RFC3339).
due_minstringLower bound on the due date (RFC3339).
page_sizeintegerMax tasks per page (1..100; the API's default is 20).
page_tokenstringnextPageToken from the previous page.
show_assignedbooleanInclude tasks assigned to the user from Google Docs / Chat spaces (API default false).
show_completedbooleanInclude completed tasks (API default true; needs show_hidden=true to catch tasks completed in Google's UI).
show_deletedbooleanInclude deleted tasks (API default false; for sync).
show_hiddenbooleanInclude hidden tasks (API default false).
updated_minstringOnly tasks modified after this RFC3339 UTC timestamp (updatedMin) — the sync filter.

get_task Get a task

Fetches one task by id: title, notes, status, due (date only), completed timestamp, parent, position, updated, deleted/hidden flags, links and webViewLink. Also the safe way to verify state after an ambiguous write failure — writes are never retried automatically.

ParameterTypeDescription
task_id *stringThe task id — from list_tasks, get_task or create_task output.
tasklist_id *stringThe task list id — from list_tasklists or create_tasklist output. "@default" addresses the user's default list.

create_task Create a task

Creates a task in a list and returns it (id, title, position, webViewLink, ...). due accepts YYYY-MM-DD or an RFC3339 timestamp, but Google Tasks stores only the DATE — any time of day is discarded and never returned. notes is plain text (max 8192 chars); title max 1024 chars. Hierarchy and order are set at creation via parent (the id of an existing task in the same list — the new task becomes its subtask; Google Tasks supports one level of nesting reliably) and previous (the sibling to insert after; omit both to land at the top of the list). New tasks start as needsAction — use complete…

ParameterTypeDescription
tasklist_id *stringThe task list id — from list_tasklists or create_tasklist output. "@default" addresses the user's default list.
title *stringThe task title (max 1024 chars).
duestringDue date: YYYY-MM-DD or RFC3339. Only the date is stored — the time part is discarded.
notesstringFree-text notes shown under the title (max 8192 chars).
parentstringParent task id in the same list — makes the new task a subtask.
previousstringSibling task id to insert after (same parent). Omit to insert at the first position.

update_task Update a task

Changes a task's title, notes and/or due date (PATCH — only the provided fields change, at least one is required). clear_due=true / clear_notes=true erase the field entirely (you cannot clear by sending an empty string a Google API would keep). This tool does NOT change completion status (use complete_task / reopen_task), and cannot re-parent or reorder (use move_task) — parent and position are read-only in the task resource. Returns the updated task.

ParameterTypeDescription
task_id *stringThe task id — from list_tasks, get_task or create_task output.
tasklist_id *stringThe task list id — from list_tasklists or create_tasklist output. "@default" addresses the user's default list.
clear_duebooleantrue removes the due date entirely (do not combine with due).
clear_notesbooleantrue removes the notes entirely (do not combine with notes).
duestringNew due date: YYYY-MM-DD or RFC3339 (only the date is stored).
notesstringNew notes text (max 8192 chars; replaces the old notes).
titlestringNew task title (max 1024 chars).

move_task Move a task

Moves a task: under a parent (subtask), after a sibling (previous), and/or into another list (destination_tasklist). Omitting parent puts it at the top level; omitting previous puts it first among its siblings — so calling with neither moves the task to the very top of its list. This is the ONLY way to change hierarchy or order (parent/position are read-only fields; positions are opaque strings maintained by the API). Constraints: parent and previous must be in the task's (destination) list; assigned tasks and recurrent tasks cannot be moved between lists. Returns the task with its new posit…

ParameterTypeDescription
task_id *stringThe task id — from list_tasks, get_task or create_task output.
tasklist_id *stringThe task list id — from list_tasklists or create_tasklist output. "@default" addresses the user's default list.
destination_taskliststringMove the task into this other task list.
parentstringNew parent task id — the task becomes its subtask. Omit for the top level.
previousstringSibling task id to place the task after (same parent). Omit for the first position.

delete_task Delete a task

Deletes a task permanently — this is NOT the same as completing it. To mark work done (reversibly), use complete_task instead. A deleted task disappears from default listings immediately; for a while it remains visible to list_tasks with show_deleted=true (deleted:true) so sync clients can observe the deletion, then it is gone for good. Deleting a parent task also deletes its subtasks. Returns {deleted:true} with the ids echoed.

ParameterTypeDescription
task_id *stringThe task id — from list_tasks, get_task or create_task output.
tasklist_id *stringThe task list id — from list_tasklists or create_tasklist output. "@default" addresses the user's default list.

complete_task Complete a task

Marks a task completed (status=completed; the API stamps the completed timestamp). This is REVERSIBLE — reopen_task undoes it — and is the right call for "done", unlike delete_task which erases the task. The API call touches only the addressed task: completing a parent does NOT cascade to its subtasks — complete them individually if the whole tree is done. A completed task stays listed until cleared: list_tasks still returns it with show_completed=true (+ show_hidden=true after a clear). Returns the updated task with status and completed.

ParameterTypeDescription
task_id *stringThe task id — from list_tasks, get_task or create_task output.
tasklist_id *stringThe task list id — from list_tasklists or create_tasklist output. "@default" addresses the user's default list.

reopen_task Reopen a task

Reverts a completed task to needsAction and clears its completed timestamp — the undo for complete_task. Works on hidden tasks too (tasks cleared with clear_completed_tasks): reopening un-hides them. Cannot resurrect a deleted task — deletion is permanent. Returns the updated task.

ParameterTypeDescription
task_id *stringThe task id — from list_tasks, get_task or create_task output.
tasklist_id *stringThe task list id — from list_tasklists or create_tasklist output. "@default" addresses the user's default list.

clear_completed_tasks Clear completed tasks

Clears ALL completed tasks from one list in a single call: they are flagged hidden and vanish from default listings (the Google Tasks UI does this as "Delete all completed"). The tasks are not deleted — list_tasks with show_completed=true and show_hidden=true still returns them, and reopen_task can restore any of them individually — but there is no single call to un-clear a whole list, so treat it as destructive. Open (needsAction) tasks are untouched. Returns {cleared:true} with the tasklist_id echoed.

ParameterTypeDescription
tasklist_id *stringThe task list id — from list_tasklists or create_tasklist output. "@default" addresses the user's default list.

raw_request Raw Google Tasks API call

Escape hatch to call any Google Tasks API v1 path directly, for requests the typed tools don't cover — e.g. a full-resource PUT ("tasks/v1/lists/<listId>/tasks/<taskId>", method PUT, body with the complete task), or a query combination the typed filters don't expose. The path is relative to https://tasks.googleapis.com and may carry a query string (e.g. "tasks/v1/lists/<listId>/tasks?showDeleted=true"). The Bearer token is added automatically; the method defaults to GET. PATCH/PUT/POST/DELETE hit live data with no confirmation — prefer the typed tools when one fits.

ParameterTypeDescription
path *stringAPI path relative to https://tasks.googleapis.com, e.g. "tasks/v1/users/@me/lists".
bodyobjectJSON request body — sent for POST/PATCH/PUT/DELETE, ignored for GET.
methodstringHTTP method. Defaults to GET.