Google Tasks MCP server

Integrates with Google Tasks API to enable task management capabilities like listing, creating, and updating tasks.
Back to servers
Setup instructions
Provider
Zach Caceres
Release date
Dec 21, 2024
Language
TypeScript
Stats
71 stars

The Google Tasks MCP Server provides integration with Google Tasks, enabling you to list, search, create, update, and delete tasks directly through a Model Context Protocol interface. This server allows AI assistants to interact with your Google Tasks data seamlessly.

Installation

Prerequisites

Before installing the server, you'll need to set up Google Cloud credentials:

  1. Create a new Google Cloud project
  2. Enable the Google Tasks API
  3. Configure an OAuth consent screen (selecting "internal" is sufficient for testing)
  4. Add the scope https://www.googleapis.com/auth/tasks
  5. Create an OAuth Client ID for application type "Desktop App"
  6. Download the JSON file containing your client's OAuth keys
  7. Rename the downloaded file to gcp-oauth.keys.json and place it in the root directory of the server

Installation via Smithery

The easiest way to install the Google Tasks Server for Claude Desktop is through Smithery:

npx -y @smithery/cli install @zcaceres/gtasks --client claude

Manual Installation

If you prefer manual installation:

  1. Clone or download the repository
  2. Place your gcp-oauth.keys.json file in the root directory
  3. Build the server:
npm run build

Or use watch mode during development:

npm run watch

Authentication

After installation, you need to authenticate with Google:

  1. Run the authentication process:
npm run start auth
  1. This opens an authentication flow in your system browser
  2. Complete the Google authentication process
  3. Your credentials will be saved as .gdrive-server-credentials.json in the root directory

Integration with Desktop App

To use the Google Tasks MCP server with your AI assistant desktop app, add the following configuration to your app's server settings:

{
  "mcpServers": {
    "gtasks": {
      "command": "/opt/homebrew/bin/node",
      "args": [
        "/absolute/path/to/server/dist/index.js"
      ]
    }
  }
}

Make sure to replace the path with the actual absolute path to the server's index.js file.

Available Features

Searching Tasks

Search for specific tasks in Google Tasks:

  • Input: query (string) - your search term
  • Returns matching tasks with their details

Listing Tasks

List all tasks in your Google Tasks:

  • Optional input: cursor (string) for pagination
  • Returns a complete list of tasks

Creating Tasks

Create new tasks in Google Tasks:

  • Required input: title (string)
  • Optional inputs:
    • taskListId (string)
    • notes (string)
    • due (string): Due date

Updating Tasks

Update existing tasks:

  • Required inputs:
    • id (string): Task ID
    • uri (string): Task URI
  • Optional inputs:
    • taskListId (string)
    • title (string)
    • notes (string)
    • status (string): "needsAction" or "completed"
    • due (string): Due date

Deleting Tasks

Delete tasks from Google Tasks:

  • Required inputs:
    • taskListId (string)
    • id (string): Task ID

Clearing Completed Tasks

Clear all completed tasks from a task list:

  • Required input: taskListId (string)

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "gtasks" '{"command":"/opt/homebrew/bin/node","args":["{ABSOLUTE PATH TO FILE HERE}/dist/index.js"]}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "gtasks": {
            "command": "/opt/homebrew/bin/node",
            "args": [
                "{ABSOLUTE PATH TO FILE HERE}/dist/index.js"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "gtasks": {
            "command": "/opt/homebrew/bin/node",
            "args": [
                "{ABSOLUTE PATH TO FILE HERE}/dist/index.js"
            ]
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later