npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

g-tasks-mcp

v0.0.4

Published

MCP server for interacting with Google Tasks

Readme

Google Tasks MCP Server

gtasks mcp logo smithery badge

This MCP server integrates with Google Tasks and Google Calendar to allow:

  • Tasks: listing, reading, searching, creating, updating, and deleting tasks.
  • Calendar: listing events, creating events (with optional Google Meet links), updating, and deleting events.

Components

Tools

  • search

    • Search for tasks in Google Tasks
    • Input: query (string): Search query
    • Returns matching tasks with details
  • list

    • List all tasks in Google Tasks
    • Optional input: cursor (string): Cursor for pagination
    • Returns a list of all tasks
  • create

    • Create a new task in Google Tasks
    • Input:
      • taskListId (string, optional): Task list ID
      • title (string, required): Task title
      • notes (string, optional): Task notes
      • due (string, optional): Due date
    • Returns confirmation of task creation
  • update

    • Update an existing task in Google Tasks
    • Input:
      • taskListId (string, optional): Task list ID
      • id (string, required): Task ID
      • uri (string, required): Task URI
      • title (string, optional): New task title
      • notes (string, optional): New task notes
      • status (string, optional): New task status ("needsAction" or "completed")
      • due (string, optional): New due date
    • Returns confirmation of task update
  • delete

    • Delete a task in Google Tasks
    • Input:
      • taskListId (string, required): Task list ID
      • id (string, required): Task ID
    • Returns confirmation of task deletion
  • clear

    • Clear completed tasks from a Google Tasks task list
    • Input: taskListId (string, required): Task list ID
    • Returns confirmation of cleared tasks
  • calendar_list_events

    • List events from a Google Calendar
    • Input:
      • calendarId (string, optional): Calendar ID (default: "primary")
      • maxResults (number, optional): Max results to return
      • timeMin (string, optional): Min start time (ISO 8601)
      • timeMax (string, optional): Max start time (ISO 8601)
      • query (string, optional): Free text search terms
    • Returns list of events
  • calendar_create_event

    • Create a new event in Google Calendar
    • Input:
      • calendarId (string, optional): Calendar ID (default: "primary")
      • summary (string, required): Event title
      • description (string, optional): Event description
      • location (string, optional): Location
      • startTime (string, required): Start time (ISO 8601)
      • endTime (string, required): End time (ISO 8601)
      • createMeet (boolean, optional): Set to true to generate a Google Meet link
    • Returns confirmation of event creation
  • calendar_update_event

    • Update an existing event in Google Calendar
    • Input:
      • calendarId (string, optional): Calendar ID (default: "primary")
      • eventId (string, required): ID of event to update
      • summary, description, location, startTime, endTime (optional): Fields to update
    • Returns confirmation of event update
  • calendar_delete_event

    • Delete an event from Google Calendar
    • Input:
      • calendarId (string, optional): Calendar ID (default: "primary")
      • eventId (string, required): ID of event to delete
    • Returns confirmation of deletion

Resources

The server provides access to Google Tasks resources:

  • Tasks (gtasks:///<task_id>)

    • Represents individual tasks in Google Tasks
    • Supports reading task details including title, status, due date, notes, and other metadata
    • Can be listed, read, created, updated, and deleted using the provided tools
  • Calendar Events (gcalendar:///events/<calendar_id>/<event_id>)

    • Represents individual calendar events
    • Supports reading event details including summary, time, location, and status

Getting started

Prerequisites

  1. Create a new Google Cloud project
  2. Enable the Google Tasks API
  3. Configure an OAuth consent screen ("internal" is fine for testing)
  4. Add scopes:
    • https://www.googleapis.com/auth/tasks
    • https://www.googleapis.com/auth/calendar
  5. Create an OAuth Client ID for application type "Desktop App"
  6. Download the JSON file of your client's OAuth keys

Installation

  1. Clone this repository
  2. Install dependencies and build:
    npm install
    npm run build

Quick Usage with npx

Once installed and built, you can use npx to run the server or trigger authentication:

1. Run the MCP Server:

npx g-tasks-mcp

(If credentials are not found, this will automatically launch the authentication flow.)

2. Manually Trigger Authentication:

npx g-tasks-mcp auth

(This will explicitly launch the authentication flow.)

Ensure you have your OAuth credentials configured as described in the "Configuration & Authentication" section below.

Configuration & Authentication

This server supports multiple ways to provide your Google Cloud OAuth credentials. It handles authentication automatically: if no valid user credentials (.gtasks-server-credentials.json) are found, it will launch a browser window to authenticate you when the server starts.

You can configure the OAuth keys using one of the following methods:

Method 1: Environment Variables (Recommended)

Set the following environment variables in your MCP client configuration (e.g., claude_desktop_config.json). This is the cleanest way as it doesn't require placing files in the source directory.

  • GOOGLE_OAUTH_CREDENTIALS: Absolute path to your downloaded OAuth JSON key file.
    • OR -
  • GOOGLE_CLIENT_ID: Your OAuth Client ID.
  • GOOGLE_CLIENT_SECRET: Your OAuth Client Secret.

Method 2: Key File

Rename your downloaded OAuth JSON key file to gcp-oauth.keys.json and place it in the root directory of this repository.

Usage with Claude Desktop

Add the following to your claude_desktop_config.json (typically located at ~/Library/Application Support/Claude/ on macOS):

Option 1: Using Local Installation

{
  "mcpServers": {
    "gtasks": {
      "command": "/path/to/your/node",
      "args": ["/absolute/path/to/gtasks-mcp/dist/index.js"],
      "env": {
        "GOOGLE_OAUTH_CREDENTIALS": "/absolute/path/to/your/gcp-oauth.keys.json"
      }
    }
  }
}

Replace /path/to/your/node (run which node to find it) and /absolute/path/to/... with your actual paths.

Option 2: Using npx (No Local Installation Required)

{
  "mcpServers": {
    "gtasks": {
      "command": "npx",
      "args": ["-y", "g-tasks-mcp"],
      "env": {
        "GOOGLE_OAUTH_CREDENTIALS": "/absolute/path/to/your/gcp-oauth.keys.json"
      }
    }
  }
}

Installing via Smithery

To install Google Tasks Server for Claude Desktop automatically via Smithery:

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

Build

To rebuild the project:

npm run build

To watch for changes during development:

npm run dev