Google Tasks MCP Server
This server allows you to manage your Google Tasks directly through Claude. You can:
Authentication: Connect to your Google Tasks account using OAuth flow
Task List Management:
List all your task lists
Get details about specific task lists
Create new task lists
Update existing task lists (change title)
Delete task lists
Task Management:
List tasks within a list (with options for hidden, deleted, or completed tasks)
Get details about specific tasks
Create new tasks (with title, notes, and due date)
Update existing tasks
Delete tasks
Mark tasks as completed
Move tasks to reorder or change parent
Clear completed tasks from a list
Provides tools for task list management (listing, creating, updating, deleting task lists) and task management (listing, creating, updating, deleting, completing, moving tasks and clearing completed tasks).
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Google Tasks MCP Server list my tasks for today"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Google Tasks MCP Server
This Model Context Protocol (MCP) server provides a bridge between MCP clients and Google Tasks, allowing you to manage your task lists and tasks directly from clients like Claude Desktop, Cursor, and Codex.
All (bar some edits) code in this project was"vibe coded" - generated with Claude/Copilot with instructions from me.
Features
This MCP server provides the following functionality:
Task List Management
list-tasklists- List all your task listsget-tasklist- Get details about a specific task listcreate-tasklist- Create a new task listupdate-tasklist- Update an existing task listdelete-tasklist- Delete a task list
Task Management
list-tasks- List all tasks in a task list, including paginated resultsget-task- Get details about a specific taskcreate-task- Create a new taskupdate-task- Update an existing taskdelete-task- Delete a taskcomplete-task- Mark a task as completedmove-task- Move a task (reorder, change parent, or move across task lists)clear-completed-tasks- Clear all completed tasks from a list
Related MCP server: Google Tasks MCP Server
Setup Instructions
1. Create Google Cloud Project & Enable API
Go to the Google Cloud Console
Create a new project
Navigate to "APIs & Services" > "Library"
Search for "Google Tasks API" and enable it
Go to "APIs & Services" > "Credentials"
Click "Create Credentials" > "OAuth Client ID"
Configure the OAuth consent screen (External is fine for personal use)
For Application Type, select "Web application"
Add "http://localhost:3000/oauth2callback" as an authorized redirect URI
Create the client ID and secret
2. Configure Environment Variables
Create a .env file in this project directory:
GOOGLE_CLIENT_ID=your_client_id_here
GOOGLE_CLIENT_SECRET=your_client_secret_here
GOOGLE_REDIRECT_URI=http://localhost:3000/oauth2callbackEnvironment Variables:
GOOGLE_CLIENT_ID(required) - Your Google OAuth Client IDGOOGLE_CLIENT_SECRET(required) - Your Google OAuth Client SecretGOOGLE_REDIRECT_URI(optional) - OAuth redirect URI (defaults tohttp://localhost:3000/oauth2callback)
Note: The server validates that GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET are set at startup and will fail with clear error messages if they are missing or invalid.
3. Build the Server
Install dependencies:
npm installBuild the server:
npm run build4. Configure an MCP Client
Codex
Add the server to ~/.codex/config.toml:
[mcp_servers.google-tasks]
command = "zsh"
args = ["-lc", "cd /path/to/google-tasks-mcp && exec node build/index.js"]Replace /path/to/google-tasks-mcp with the path to this project, then restart Codex.
To verify the server is registered:
codex mcp list
codex mcp get google-tasksClaude for Desktop
Install Claude for Desktop
Open the Claude configuration file:
MacOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Add the Google Tasks MCP server configuration:
{
"mcpServers": {
"google-tasks": {
"command": "node",
"args": ["/path/to/google-tasks-mcp/build/index.js"]
}
}
}Replace the path with your own value, then restart Claude for Desktop.
Authentication Flow
When you first use the Google Tasks MCP server:
Use the
authenticatetool to get an authorization URLVisit the URL in your browser and sign in with your Google account
After authorizing, you'll receive a code on the browser page
Use the
set-auth-codetool with this code to complete authenticationYou can now use all other tools to interact with Google Tasks
Note: Your authentication tokens (including refresh tokens) are automatically saved to disk at ~/.config/google-tasks-mcp/credentials.json with restricted permissions (600). This means:
You only need to authenticate once - credentials persist across server restarts
Automatic token refresh - Access tokens are automatically refreshed when they expire (typically after 1 hour) using the saved refresh token
No re-authentication needed - After the initial setup, you won't need to authenticate again unless you revoke access or delete the credentials file
Requirements
Node.js 20+ (see
package.jsonengines)An MCP-compatible client
Google Cloud Project with Tasks API enabled
Implementation Features
This MCP server includes the following improvements:
Persistent token storage - Authentication credentials are saved to disk (
~/.config/google-tasks-mcp/credentials.json) with restricted permissions, so you only need to authenticate onceEnvironment variable validation - Startup validation ensures required credentials are configured with clear error messages
Automatic token refresh - OAuth tokens are automatically refreshed when they expire, eliminating the need to re-authenticate during active sessions or after restarts
Enhanced input validation - Comprehensive validation of all inputs including ID formats, string lengths, and RFC 3339 date formats
HTML sanitization - OAuth callback responses are sanitized to prevent XSS vulnerabilities
Graceful shutdown - Proper cleanup of resources on SIGINT/SIGTERM signals
Type safety - Full TypeScript type safety throughout the codebase with proper interfaces
Configurable redirect URI - The OAuth redirect URI can be customized via the
GOOGLE_REDIRECT_URIenvironment variable
Screenshots
Claude Desktop

Cursor

License
This project is for demonstration purposes only. Use at your own risk.
Available Tools
15 toolsauthenticateB
Get URL to authenticate with Google Tasks
Inputs: no named parameters.
clear-completed-tasksC
Clear all completed tasks from a task list
Inputs: tasklist (required).
complete-taskC
Mark a task as completed
Inputs: tasklist (required), task (required).
create-taskC
Create a new task in a task list
Inputs: tasklist (required), title (required), notes, due.
create-tasklistC
Create a new task list
Inputs: title (required).
delete-taskC
Delete a task
Inputs: tasklist (required), task (required).
delete-tasklistC
Delete a task list
Inputs: tasklist (required).
get-taskC
Get a specific task by ID
Inputs: tasklist (required), task (required).
get-tasklistC
Get a task list by ID
Inputs: tasklist (required).
list-tasklistsB
List all task lists
Inputs: no named parameters.
list-tasksC
List all tasks in a task list
Inputs: tasklist (required), showCompleted, showHidden, showDeleted.
move-taskC
Move a task to another position
Inputs: tasklist (required), task (required), parent, previous.
set-auth-codeC
Set the authentication code received from Google OAuth flow
Inputs: code (required).
update-taskC
Update an existing task
Inputs: tasklist (required), task (required), title, notes, +2 more.
update-tasklistC
Update an existing task list
Inputs: tasklist (required), title (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
Every tool has a clearly distinct purpose with no ambiguity. Each tool targets specific resources (tasks or tasklists) and actions (create, get, list, update, delete, complete, clear, move), making it easy for an agent to select the right tool. The separation between task operations and tasklist operations is particularly clear.
The naming follows a perfectly consistent verb-noun pattern throughout all 15 tools. Every tool uses snake_case with clear action verbs (create, get, list, update, delete, etc.) followed by the resource name (task, tasklist), and multi-word resources use hyphens consistently (e.g., clear-completed-tasks).
With 15 tools, this server is well-scoped for managing Google Tasks. Each tool earns its place by covering essential CRUD operations for both tasks and tasklists, plus additional workflow actions like moving tasks and clearing completed ones. The count is appropriate for the domain without being overwhelming.
The tool surface provides complete coverage for the Google Tasks domain. It includes full CRUD operations for both tasks and tasklists, plus lifecycle actions like completing tasks, moving tasks, and clearing completed tasks. Authentication tools are also included, ensuring no dead ends for agents.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Official Todoist MCP server. Manage tasks and projects. Hosted, no API key needed.
Simple, fast todo app: manage tasks, projects and tags from Claude and other MCP clients.
Hosted Google Calendar MCP server for AI agents. No self-hosting or Google Cloud setup.
Related MCP Servers
- AlicenseAqualityBmaintenanceA Model Context Protocol server that connects Claude Desktop to AI Note task management, enabling task creation, updates and management through natural language conversations.5670 npm1MIT
- AlicenseNot gradedqualityBmaintenanceA Model Context Protocol (MCP) server that brings your Google Tasks into Claude and other MCP-compatible clients, enabling task and task list management through natural conversation.71 npm14MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables Claude to fully manage Google Calendar, including events, calendars, sharing, and availability checks through natural language.1MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables AI assistants to manage Google Tasks, including creating, updating, deleting, and searching tasks and task lists via OAuth2 authentication.33 npm1Apache 2.0