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

@promota-ai/google-calendar

v1.1.0

Published

Promota.ai Google Calendar MCP server

Downloads

88

Readme

@promota-ai/google-calendar

Promota.ai MCP connector for Google Calendar. Exposes CRUD tools (list, get, create, update, delete) over the Model Context Protocol.


Requirements

  • Node.js 20+
  • A Google Cloud project with the Google Calendar API enabled
  • OAuth 2.0 credentials downloaded as gcp-oauth.keys.json

Setup

1. Create OAuth credentials

  1. Go to Google Cloud Console → APIs & Services → Credentials.
  2. Create an OAuth client ID (type: Desktop app).
  3. Download the JSON file and save it as gcp-oauth.keys.json in the package root (or any ancestor directory, or set GCAL_OAUTH_KEYS_PATH).

2. Requested OAuth scopes

| Scope | Purpose | |-------|---------| | https://www.googleapis.com/auth/calendar | Full calendar read/write |

Tip: If you only need read access, swap for calendar.events.readonly and calendar.readonly and update SCOPES in src/auth.ts.

3. Authenticate

npm run auth

This opens a browser, runs the OAuth consent flow, and saves the token to ~/.google-calendar-mcp/credentials.json with 0600 permissions.

To use a custom port (e.g. when port 8080 is in use):

GCAL_OAUTH_PORT=9090 npm run auth

Environment Variables

| Variable | Default | Purpose | |----------|---------|---------| | GCAL_OAUTH_KEYS_PATH | (ancestor walk for gcp-oauth.keys.json) | Path to the GCP credentials file | | GCAL_TOKEN_PATH | ~/.google-calendar-mcp/credentials.json | Where the OAuth token is stored | | GCAL_OAUTH_PORT | 8080 | Local callback port for the OAuth flow |


Running the MCP server

npm run build
npm start

Or in development:

node dist/index.js

MCP Tools

| Tool | Required args | Optional args | |------|--------------|---------------| | list_calendars | — | — | | list_events | calendar_id | time_min, time_max, max_results (≤50), query | | get_event | calendar_id, event_id | — | | create_event | calendar_id, summary, start, end | description, location, attendees, timezone, send_notifications | | update_event | calendar_id, event_id | summary, description, location, start, end, attendees, timezone, send_notifications | | delete_event | calendar_id, event_id | send_notifications (default false) |

Note: delete_event defaults send_notifications to false — attendees are NOT emailed on deletion unless you explicitly pass send_notifications: true.


Local development with cloudflared

For OAuth callbacks from a remote tunnel (e.g. devel-stage):

cloudflared tunnel --url http://localhost:8080

Register the resulting https://…trycloudflare.com URL as an authorized redirect URI in your GCP OAuth client settings.


Testing

npm test              # run once
npm run test:watch    # watch mode
npm run coverage      # with v8 coverage report

Token refresh

Tokens refresh automatically via googleapis event listener. Refreshed credentials are written back to GCAL_TOKEN_PATH with 0600 permissions. If a token becomes invalid mid-session, the connector resets and surfaces Not authenticated. Run: npm run auth.