The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Google Tasks listing page.
An MCP server for Google Tasks. Gives any MCP client (Claude Desktop, Claude Code, Codex, Cursor, etc.) full read/write access to your task lists and tasks: list, create, update, complete, delete, and move them, with real due dates.
There's no official Google Tasks MCP server, so this covers that. Full CRUD, OAuth installed-app auth flow (your credentials never leave your machine), TypeScript throughout.
Task lists
google_tasks_list_tasklists list all task listsgoogle_tasks_get_tasklist get one task listgoogle_tasks_create_tasklist create a new task listgoogle_tasks_update_tasklist rename a task listgoogle_tasks_delete_tasklist delete a task list and all its tasksTasks
google_tasks_list_tasks list tasks in a list, with due-date/updated filters and paginationgoogle_tasks_get_task get one taskgoogle_tasks_create_task create a task (optionally as a subtask, optionally positioned)google_tasks_update_task update title/notes/due date/statusgoogle_tasks_complete_task / google_tasks_reopen_task mark done / not donegoogle_tasks_delete_task delete a taskgoogle_tasks_move_task reorder, re-parent, or move a task to a different listgoogle_tasks_clear_completed_tasks clear all completed tasks from a listEvery tool supports response_format: "markdown" | "json".
From npm:
Or don't install it at all and let your MCP client run it via npx (see step 4).
Or from source:
Either way, follow Setup below to create your own Google OAuth credentials and authorize. There's no shared or hosted version of this, it talks directly to your own Google account.
Each user needs their own OAuth client. It's not something that can be shared, since anyone using your client secret could impersonate your app (though they'd still need each individual user's own consent).
~/.config/google-tasks-mcp-server/client_secret.json
(override the path with the GOOGLE_TASKS_CLIENT_SECRET env var, useful if you'd rather keep it inside the project directory, e.g. ./credentials/client_secret.json. credentials/ is already gitignored.)The file should look like:
From npm (nothing to build):
From source:
If you installed from npm:
From source:
This prints a Google consent URL and tries to open it in your default browser. Sign in, grant access, and it redirects back to a short-lived local server on http://localhost:53682. The token gets cached to ~/.config/google-tasks-mcp-server/token.json (override with GOOGLE_TASKS_TOKEN_PATH) and refreshed automatically from then on, so you shouldn't need to run this again unless you revoke access.
Run this on the same machine and in the same regular terminal you'll actually use day to day. See Troubleshooting below if you're running it from a container, VM, or sandboxed shell where localhost doesn't map back to your browser.
Or wire it into an MCP client. For Claude Desktop / Claude Code, add to your MCP config (usually ~/Library/Application Support/Claude/claude_desktop_config.json on macOS).
Using npm, with your client secret at the default ~/.config/... path, this is the whole config:
Or pointing at a source checkout:
Omit the env block if you saved your client secret at the default ~/.config/... path. Fully quit and reopen your MCP client afterward.
Codex uses TOML rather than JSON. Add this to ~/.codex/config.toml:
Or let the CLI write it for you:
Raise startup_timeout_sec if the first launch times out. A cold npx downloads the
package before the server can answer initialize, and Codex's default allowance is short
enough that this sometimes trips on the first run only.
If your client secret isn't at the default path, add:
Check it registered with codex mcp list. Authorization is the same one-time
google-tasks-mcp-auth step as everywhere else — run it in a normal terminal, not inside
Codex, since it needs to open a browser and catch a loopback redirect.
| Variable | Default | Purpose |
|---|---|---|
GOOGLE_TASKS_CLIENT_SECRET | ~/.config/google-tasks-mcp-server/client_secret.json | Path to the downloaded OAuth client JSON |
GOOGLE_TASKS_TOKEN_PATH | ~/.config/google-tasks-mcp-server/token.json | Path where the cached OAuth token is stored |
GOOGLE_TASKS_OAUTH_PORT | 53682 | Loopback port used only during npm run auth |
0600 for the token). Never commit them (.gitignore already excludes client_secret*.json, token.json, credentials/).https://www.googleapis.com/auth/tasks scope (read/write). For read-only access, edit TASKS_SCOPE in src/constants.ts to .../auth/tasks.readonly before running npm run auth. Write tools will then fail with a 403 from Google, which is expected.destructiveHint: true so MCP clients can warn or gate on them.npm run auth, a local loopback listener. No third-party backend involved.npm run auth opens a URL, I click Allow, and it just hangs.
The process running npm run auth isn't on the same machine/network as the browser you're clicking Allow in. Common if you're running the server inside a container, remote dev environment, or sandboxed shell that isolates localhost. Fix: run npm run auth directly in a normal local terminal on the machine whose browser you're using.
Error [TransformError] ... You installed esbuild for another platform
Your node_modules was installed on a different OS/architecture than you're running on now, e.g. copied from a Docker container or a different machine. Fix: rm -rf node_modules package-lock.json && npm install.
Authorization failed: invalid_client
Your client_secret.json has the wrong client secret in it, usually from copy-pasting it by hand instead of downloading it directly. Go back to Google Cloud Console, add a fresh client secret, download or copy it directly, and update your client_secret.json.
Server exits immediately with "No cached Google Tasks token found"
You haven't authorized yet, or the flow didn't finish. Run google-tasks-mcp-auth (npm install) or npm run auth (source checkout) before starting the server.
Test with the MCP Inspector:
Issues and PRs welcome. This covers the full Tasks API surface but hasn't been tested across every edge case, so if you hit a bug or want a feature, open an issue.
MIT, see LICENSE.