Skip to main content
Glama

google-tasks-mcp

A local MCP server that lets Claude read and manage your Google Tasks. TypeScript, MCP SDK v2, stdio transport, Google Tasks API v1. No third-party Google libraries.

Tools

Tool

What it does

gtasks_list_task_lists

List your task lists

gtasks_get_task_list

Get one list

gtasks_create_task_list

Create a list

gtasks_update_task_list

Rename a list

gtasks_delete_task_list

Delete a list and all its tasks (destructive, needs confirm: true)

gtasks_list_tasks

List tasks; filter by completed state and due/completed date range; paginated

gtasks_get_task

Get one task

gtasks_agenda

Overdue, due today and upcoming tasks from all lists

gtasks_search_tasks

Find tasks by text in the title or notes (one list or all)

gtasks_create_task

Create a task (title, notes, due date, optional parent)

gtasks_update_task

Change title, notes, due date or status (can clear due/notes with null, or reopen)

gtasks_complete_task

Mark a task as done

gtasks_move_task

Reorder, make a subtask, or move to another list

gtasks_clear_completed_tasks

Hide completed tasks in a list (needs confirm: true)

gtasks_delete_task

Delete a task (destructive, needs confirm: true)

All tools take response_format (markdown default, or json). list_id defaults to @default (your main list) and accepts a list ID or its exact title (e.g. "Work").

Google Tasks limits: due holds a day only (no time of day), there are no timed reminders, and tasks cannot be assigned to other people.

Related MCP server: Google Tasks MCP Server

Options (environment variables)

Variable

Effect

GTASKS_READONLY=1

Asks Google for read-only access and registers no tool that changes data. Run npm run auth with it set to get a read-only token.

GTASKS_TIMEZONE

IANA zone (e.g. America/New_York) used for completed_from / completed_to. Defaults to the system zone.

GOOGLE_TASKS_MCP_DIR

Folder for credentials.json and token.json.

Setup

Requires Node 20.3+.

npm install
npm run build

1. Create the Google OAuth client (one time, ~5 min)

  1. Open https://console.cloud.google.com/ and create a project (e.g. google-tasks-mcp).

  2. APIs & Services → Library → search Google Tasks API → Enable.

  3. APIs & Services → OAuth consent screen (or Google Auth platform):

    • User type External, fill app name and your email.

    • Audience / Test users: add your own Google account. (Leave the app in Testing; for a single user that is fine. Note that in Testing mode Google expires refresh tokens after 7 days. To avoid that, click Publish app; an unverified personal app still works for you, with a warning screen.)

    • Scopes: add https://www.googleapis.com/auth/tasks.

  4. APIs & Services → Credentials → Create credentials → OAuth client ID → application type Desktop app.

  5. Download JSON and save it as:

    • Windows: %USERPROFILE%\.google-tasks-mcp\credentials.json

    • macOS/Linux: ~/.google-tasks-mcp/credentials.json

    (Override the folder with the GOOGLE_TASKS_MCP_DIR environment variable.)

2. Authorize (one time)

npm run auth

Your browser opens on Google's consent page. The redirect comes back to a temporary 127.0.0.1 port on your machine, and the tokens are saved to ~/.google-tasks-mcp/token.json. Nothing is pasted into a chat or a prompt, and the tokens never live inside this repository (.gitignore also blocks credentials.json and token.json just in case).

To revoke access: https://myaccount.google.com/permissions.

3. Verify end to end

npm run smoke

Creates a throwaway list in your account, exercises every tool, then deletes the list.

Connect to Claude

Claude Code (local, stdio)

claude mcp add google-tasks --scope user -- node /absolute/path/to/google_tasks_mcp/dist/index.js

On Windows use the full path, e.g. node C:\Users\you\Documents\proyectos\google_tasks_mcp\dist\index.js. Check with claude mcp list.

Claude Desktop (local, stdio)

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "google-tasks": {
      "command": "node",
      "args": ["C:\\path\\to\\google_tasks_mcp\\dist\\index.js"]
    }
  }
}

claude.ai (web) and scheduled/cloud runs

claude.ai custom connectors only accept remote MCP servers, so this local stdio server cannot be added there directly. The options:

Option

Needs

Local (this repo): Claude Code / Claude Desktop

Nothing beyond the setup above. Tokens stay on your machine.

Remote custom connector for claude.ai

A public HTTPS URL serving MCP over Streamable HTTP, plus an OAuth 2.1 authorization layer of your own in front of it (so claude.ai can authenticate to your server), which in turn holds the Google tokens. That means hosting, TLS, token storage, and implementing the MCP authorization flow (the SDK has requireBearerAuth and OAuth examples). Substantially more work and a larger security surface.

If your automated daily summary runs locally (Claude Code or Claude Desktop on your PC), the local server is enough. Only a summary that runs in claude.ai's cloud needs the remote variant, which this repo does not implement yet.

Security notes

  • Scope is https://www.googleapis.com/auth/tasks (read and write Tasks only), or tasks.readonly with GTASKS_READONLY=1.

  • OAuth uses the authorization-code flow with PKCE and a random state, over a loopback redirect.

  • Tokens are written with mode 0600 outside the repo; they are never logged. Logging goes to stderr only.

  • Deleting a list deletes its tasks; the delete and clear tools are marked destructiveHint and refuse to run unless confirm: true is passed after the user agrees.

Development

npm run dev      # run from source
npm run build    # compile to dist/
npx @modelcontextprotocol/inspector node dist/index.js

License

MIT

Available Tools

9 tools
gtasks_complete_taskComplete TaskA
Idempotent

Mark a task as completed. Example: "mark the bank call as done".

Inputs: task_id (required), list_id, response_format.

gtasks_create_taskCreate TaskA

Create a task in a list.

The due date is a day only (YYYY-MM-DD); Google Tasks cannot store a time or a reminder. Example: "remind me to call the bank on 2026-11-10" -> title="Call the bank", due="2026-11-10".

Inputs: title (required), due, notes, parent, +2 more.

gtasks_create_task_listCreate Task ListB

Create a new Google Tasks list. Example: "create a list called Groceries".

Inputs: title (required), response_format.

gtasks_delete_taskDelete TaskA
DestructiveIdempotent

Delete a task (and its subtasks). To keep a record, use gtasks_complete_task instead. Confirm with the user first.

Inputs: task_id (required), list_id.

gtasks_delete_task_listDelete Task ListA
DestructiveIdempotent

Permanently delete a task list AND all the tasks in it. Cannot be undone. The default list cannot be deleted. Confirm with the user first.

Inputs: list_id (required).

gtasks_get_taskGet TaskB
Read-onlyIdempotent

Get one task by ID, including notes and due date.

Inputs: task_id (required), list_id, response_format.

gtasks_list_task_listsList Task ListsA
Read-onlyIdempotent

List the user's Google Tasks lists (id and title).

Use the returned id as list_id in the other tools. Example: "what lists do I have?"

Inputs: limit, page_token, response_format.

gtasks_list_tasksList TasksA
Read-onlyIdempotent

List tasks in one list, optionally filtered by completion and due date.

By default only pending (not completed) tasks are returned. Dates are YYYY-MM-DD and inclusive. Examples:

  • "what is due today or overdue?" -> due_to=

  • "pending this week" -> due_from=, due_to=

  • "what did I finish this week?" -> include_completed=true, completed_from= Tasks without a due date are returned only when no due_from/due_to filter is set.

Inputs: limit, due_to, list_id, due_from, +5 more.

gtasks_update_taskUpdate TaskA
Idempotent

Change a task's title, notes, due date or status. Only the fields you pass are changed.

Pass due=null to remove the due date and notes=null to clear the notes. Set status='needsAction' to reopen a completed task. To simply finish a task use gtasks_complete_task.

Inputs: task_id (required), due, notes, title, +3 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 9 tools

    Disambiguation4/5

    Each tool targets a distinct resource+action pair, and descriptions explicitly route overlapping cases (e.g. update_task says to use gtasks_complete_task for finishing a task, delete_task says to use complete_task to keep a record). The only real overlap is that update_task can set status, which duplicates complete_task, but the descriptions handle it well.

    Naming Consistency5/5

    Every tool follows the same gtasks_<verb>_<noun> snake_case pattern (create/delete/list/get/update/complete). No style mixing or inconsistent verb conventions.

    Tool Count5/5

    Nine tools cleanly cover the domain: three for lists, six for tasks. Each tool earns its place with no redundant or filler operations.

    Completeness4/5

    Full lifecycle coverage for tasks (create, get, list, update, complete, delete) and near-full for lists (create, list, delete). Minor gaps: no way to rename a task list, and no explicit tools for subtasks, moving/reordering tasks, or clearing completed tasks, though most can be worked around.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers