by zcaceres
Agent-friendly Google Tasks MCP server (stdio & 2025-11-25 Streamable HTTP) and local CLI for task lists, tasks, and subtasks
# Add to your Claude Code skills
git clone https://github.com/zcaceres/gtasks-mcpLast scanned: 12/4/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-12-04T04:59:23.122Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}gtasks-mcp is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by zcaceres. Agent-friendly Google Tasks MCP server (stdio & 2025-11-25 Streamable HTTP) and local CLI for task lists, tasks, and subtasks. It has 179 GitHub stars.
Yes. gtasks-mcp passed AgentsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/zcaceres/gtasks-mcp" and add it to your Claude Code skills directory (see the Installation section above).
gtasks-mcp is primarily written in TypeScript. It is open-source under zcaceres on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh gtasks-mcp against similar tools.
No comments yet. Be the first to share your thoughts!

Manage Google Tasks lists, tasks, and subtasks from AI agents or your terminal. A lightweight, agent-friendly MCP server (gtasks-mcp, supporting stdio and 2025-11-25 Streamable HTTP) and local CLI (gtasks) backed by a shared domain core and a minimal Google Tasks API v1 REST client—with safe scoped defaults, calendar due dates, 1-level subtasks, O(1) MCP Task Resources, and defense-in-depth read-only mode. Supports Node.js >= 22 LTS and Bun.
Docs: gtasks.zach.dev · LLM-friendly docs: gtasks.zach.dev/llms.txt
stdio (gtasks-mcp), stateless MCP 2025-11-25 Streamable HTTP (gtasks-mcp --http), and a full local CLI (gtasks auth|lists|tasks with human-readable text or --json).@default delete-guarded), Task CRUD, search, clear, tasks_move (reordering, cross-list moves, and 1-level subtasks), server-side list filters (dueMin, dueMax, showAssigned, showDeleted), webViewLink, and assignmentInfo.--read-only, set GTASKS_READ_ONLY=true, or log in with gtasks auth login --read-only (https://www.googleapis.com/auth/tasks.readonly) to hide mutating MCP tools and block all 8 mutations locally before any API call across MCP and CLI.googleapis and @google-cloud/local-auth with google-auth-library, Zod, native fetch, and @modelcontextprotocol/sdk 1.32+, clearing legacy Dependabot CVEs and fixing Windows/spaces-in-path credential bugs.2025-11-25 conformance: strict additionalProperties: false, flat JSON Schemas, accurate readOnlyHint/destructiveHint/idempotentHint/openWorldHint annotations, lazy auth on tool/resource calls, and O(1) Task Resources (gtasks:///lists/<taskListId>/tasks/<taskId>).gtasks (replacing legacy @modelcontextprotocol/server-gtasks), shipping two binaries: gtasks (CLI) and gtasks-mcp (MCP server).list, search, create, update, delete, clear are replaced by 13 namespaced tools (tasklists_* and tasks_*). The unused legacy uri parameter on task updates is removed.tasks_list & tasks_search defaults: both now default to the @default task list, hide completed tasks by default (includeCompleted: false), and cap pages at maxResults: 20 (pass allLists: true to scan every list).gtasks:///<taskId> to gtasks:///lists/<taskListId>/tasks/<taskId> with Resource Template gtasks:///lists/{taskListId}/tasks/{taskId} for O(1) reads, and resources/list omits nextCursor on the final page (never returning null).~/.config/gtasks-mcp/ on macOS/Linux, %APPDATA%\gtasks-mcp\ on Windows) with 0600 permissions rather than the repo/package install directory. Authentication runs explicitly via gtasks auth login (never auto-launched on MCP startup).>= 22 LTS or Bun.https://www.googleapis.com/auth/tasks (and/or https://www.googleapis.com/auth/tasks.readonly for read-only use).GTASKS_OAUTH_KEYS_PATH, or pass inline GTASKS_CLIENT_ID + GTASKS_CLIENT_SECRET):
~/.config/gtasks-mcp/gcp-oauth.keys.json (respects $XDG_CONFIG_HOME)%APPDATA%\gtasks-mcp\gcp-oauth.keys.jsonnpx gtasks auth login
This runs a local 127.0.0.1 loopback OAuth 2.0 flow with PKCE (S256) and CSRF state, writing credentials with 0600 permissions to ~/.config/gtasks-mcp/credentials.json (or GTASKS_CREDENTIALS_PATH).
# Headless / remote terminal (prints consent URL without auto-opening browser)
npx gtasks auth login --no-browser
# Least-privilege read-only OAuth scope (tasks.readonly)
npx gtasks auth login --read-only
# Inspect configuration, Access Mode, and token status (never prints secrets)
npx gtasks auth status
# Revoke token (best-effort) and remove local credentials
npx gtasks auth logout
Headless MCP servers (gtasks-mcp over stdio or --http) proactively refresh expired access tokens without clobbering your refresh_token, and never auto-launch a browser.
stdio)Add to your MCP client configuration (Claude Code, Claude Desktop, Gemini CLI, Cursor, etc.):
{
"mcpServers": {
"gtasks": {
"command": "npx",
"args": ["-y", "-p", "gtasks", "gtasks-mcp"]
}
}
}
Or with Claude Code:
claude mcp add gtasks -- npx -y -p gtasks gtasks-mcp
2025-11-25)Start the stateless Streamable HTTP server (defaults to 127.0.0.1:3000 on POST /mcp):
npx -y -p gtasks gtasks-mcp --http --host 127.0.0.1 --port 3000
| Flag | Default | Description |
|---|---|---|
--http |
(off — uses stdio) |
Enable stateless MCP 2025-11-25 Streamable HTTP transport on POST /mcp |
--host <addr> |
127.0.0.1 |
Bind address (requires --http) |
--port <n> |
3000 |
Listen port 1–65535 (requires --http) |
--read-only |
(off) | Hide mutating tools from tools/list and refuse all mutations locally |
Loopback listeners validate Host and Origin headers against loopback hosts (403 on mismatch to block DNS rebinding). Unknown paths (including legacy /sse) return 404, and non-POST methods on /mcp return 405 (Allow: POST). Non-loopback binds warn on stderr and honor GTASKS_ALLOWED_HOSTS / GTASKS_ALLOWED_ORIGINS.
Connect with MCP Inspector:
npx @modelcontextprotocol/inspector --url http://127.0.0.1:3000/mcp
gtasks)npm install -g gtasks
gtasks lists list
gtasks tasks list --all-lists
gtasks tasks create "Ship v2.0" --due 2026-06-01 --notes "Publish npm package"
gtasks tasks list --json
docker build -t gtasks-mcp .
# stdio mode (mount your OS config dir read-write for token refresh persistence)
docker run --rm -i \
-v ~/.config/gtasks-mcp:/home/node/.config/gtasks-mcp \
gtasks-mcp
# Streamable HTTP mode (put behind an authenticating reverse proxy for non-loopback use)
docker run --rm -p 127.0.0.1:3000:3000 \
-v ~/.config/gtasks-mcp:/home/node/.config/gtasks-mcp \
-e GTASKS_ALLOWED_HOSTS=localhost:3000,127.0.0.1:3000 \
gtasks-mcp --http --host 0.0.0.0 --port 3000
All 13 tools conform to MCP 2025-11-25, enforce additionalProperties: false, carry accurate readOnlyHint/destructiveHint/idempotentHint/openWorldHint annotations, and return typed errors as isError: true.
| Tool | Read-Only | Destructive | Description |
|---|---|---|---|
tasklists_list |
Yes | No | List task lists with pagination (maxResults 1–100, default 20; pageToken) |
tasklists_get |
Yes | No | Get details for a task list by taskListId (supports @default) |
tasklists_create |
No | No | Create a new task list (title 1–1,024 chars) |
tasklists_update |
No | No | Rename a task list (taskListId, title) |
tasklists_delete |
No | Yes | Delete a task list (@default is refused locally) |
| Tool | Read-Only | Destructive | Description |
|---|---|---|---|
tasks_list |
Yes | No | List tasks (@default by default, or taskListId, or allLists: true; active tasks by default with includeCompleted, showDeleted, showAssigned, dueMin/dueMax, completedMin/completedMax, updatedMin, maxResults, pageToken) |
tasks_get |
Yes | No | Get full details for a single task (taskId, optional taskListId), including webViewLink and assignmentInfo |
tasks_search |
Yes | No | Case-insensitive substring search across title and notes (query, optional taskListId or allLists, includeCompleted, maxResults; scans up to 20 pages / 2,000 tasks per list and appends a truncation note if more remain) |
tasks_create |
No | No | Create a task or subtask (title, optional taskListId, notes, calendar due YYYY-MM-DD, parent, previous) |
tasks_update |
No | No | Partial patch update (taskId, optional taskListId, title, notes, due, status; pass "" or null to clear notes/due; setting status: "needsAction" clears completed) |
tasks_move |
No | No | Reorder a task, nest under parent, position after previous, or move across lists via destinationTasklist |
tasks_delete |
No | Yes | Permanently delet |