# calendar-bridge [Health: Active]

**Category:** 🏢 Workplace & Productivity  
**Repository:** https://github.com/IsaiahDupree/calendar-bridge  
**GitHub Stars:** 0  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/calendar-bridge

## Description
Connects ChatGPT to your Apple Calendar via a local Mac agent + Vercel relay

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "calendar-bridge": {
    "command": "npx",
    "args": ["-y","calendar-agent"],
    "env": {
      "SUPABASE_URL": "",
      "SUPABASE_SERVICE_ROLE_KEY": "",
      "JWT_SECRET": ""
    }
  }
}
```

**Requires environment variables:** `SUPABASE_URL`, `SUPABASE_SERVICE_ROLE_KEY`, `JWT_SECRET` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What calendar-bridge does

calendar-bridge lets ChatGPT interact with calendars managed by Apple Calendar on a Mac. It exposes tools for listing calendars, retrieving events within a date range, searching event titles, reading an event by ID, creating events, and updating existing events. Event creation supports fields such as title, start and end times, location, notes, calendar, and all-day status.

The agent is intended for personal Mac-based calendar access. It can work with calendars such as Work, Personal, or Family, provided they are available through Calendar.app. Write operations are marked as destructive so ChatGPT can request confirmation before modifying an event.

## How it works

ChatGPT connects to the MCP endpoint using OAuth 2.1 with PKCE and dynamic client registration. After sign-in and consent, the relay authenticates requests and places each tool call into a per-user job queue. A paired Mac agent maintains a long-poll connection, receives the job, and sends the result back through the relay.

Calendar operations execute on the Mac through JavaScript for Automation using `osascript -l JavaScript`. Arguments are passed as JSON rather than interpolated into shell commands. The relay is stateless with respect to calendar data: requested content can exist temporarily in short-lived job and result queues while a request is being handled, and queued jobs expire quickly.

The agent is considered online only while it has an active connection. A macOS LaunchAgent can keep it running after login and restart it after a crash.

## Setup and configuration

For the hosted deployment, create an account at the CalendarBridge web application and generate a pairing code. On a Mac with Node.js 18 or newer, pair the agent and install its automatic startup configuration:

```bash
npx calendar-agent pair <YOUR-CODE>
npx calendar-agent install
```

macOS prompts for permission the first time Terminal controls Calendar.app. After pairing, add `https://calendarbridge.vercel.app/mcp` as a custom MCP server in ChatGPT, select OAuth authentication, and approve access. The Mac must remain awake with the agent running for requests to complete.

Useful agent commands include `status` for connectivity, `logs` for recent activity, and `uninstall` to remove automatic startup.

A self-hosted relay requires Vercel and Supabase. Run `supabase/schema.sql` in the Supabase SQL editor, deploy the `server/` directory to Vercel, and configure the storage and signing variables. Pair the agent with the self-hosted URL using the `--server` option. The `/api/health` endpoint reports whether storage and JWT signing configuration are available.

## Tools and capabilities

- `list_calendars`: returns the calendars available through Calendar.app.
- `list_events`: lists upcoming events in a date window, defaulting to the next seven days, with optional calendar filtering.
- `search_events`: finds events whose titles contain a supplied keyword.
- `get_event`: reads a single event by ID.
- `create_event`: adds an event with scheduling and optional metadata fields.
- `update_event`: changes the fields supplied for an existing event; reading the event first is recommended because supplied fields overwrite their existing values.

## Limitations and notes

Calendar access depends on macOS Calendar.app permissions and an active local agent. The hosted relay does not execute calendar actions itself; it forwards work to the paired Mac. The agent token is stored in `~/.calendarbridge-agent.json` with restrictive file permissions. Self-hosted deployments must provide the Supabase schema and required signing and storage configuration before they can serve requests.

_Full upstream README: https://allmcps.com/mcp/calendar-bridge/readme_

