Skip to main content
Glama

when2meet-mcp

MCP server that reads and fills when2meet scheduling polls over plain HTTP — no browser automation, no OAuth.

Built for use with Cursor, Claude Desktop, or any MCP client. Pair it with a calendar MCP to auto-mark your availability from Google Calendar, Outlook, or a weekly class schedule.

What it does

Paste a when2meet link and ask your agent:

Fill this poll from my calendar — skip mornings before 10

The server will:

  1. Load the poll — slot grid, participants, local time range

  2. Compute free slots from busy blocks (weekly schedule or ISO calendar intervals)

  3. Preview (dry_run=true by default)

  4. Submit a positional availability bitmask to when2meet

Related MCP server: Kairos

How it works

when2meet has no public API, but the participant UI uses three simple POST endpoints:

Endpoint

Purpose

AvailabilityGrids.php

Read slot grid + group availability

ProcessLogin.php

Sign in with name (+ optional password) → person ID

SaveTimes.php

Write full 0/1 availability string

This MCP wraps those calls with validation, timezone handling, and safety defaults.

Requirements

  • Python 3.11+

  • Network access to when2meet.com

Install

git clone <repo-url>
cd when2meet-mcp
pip install -e .

Optional dev dependencies:

pip install pytest
pytest

Cursor / Claude MCP config

Add to ~/.cursor/mcp.json (or Claude Desktop config). Set cwd to wherever you cloned the repo:

{
  "mcpServers": {
    "when2meet": {
      "command": "python3",
      "args": ["-m", "when2meet_mcp.server"],
      "cwd": "/Users/jasoncharwin/Personal Code Projects/MCPs/when2meet-mcp",
      "env": {
        "WHEN2MEET_AGENT_NAME": "Composer"
      }
    }
  }
}

WHEN2MEET_AGENT_NAME is the label used when submitting under an alternate name (e.g. Jason Charwin (Composer) when the main entry has a password). Set it to Claude, GPT-4, Gemini, etc. Defaults to Cursor.

See mcp.json.example for a copy-paste template.

Claude Desktop (.mcpb)

Package for one-click install:

./scripts/pack-mcpb.sh

Then double-click when2meet-mcp.mcpb or drag it into Claude Desktop Settings. Uses the UV runtime — no manual pip install needed.

Tools

Tool

Description

get_poll

Poll metadata, participants, time range, inferred week start

fill_from_weekly_schedule

Fill from recurring {day, start, end} busy blocks (best for class schedules)

compute_availability_from_busy_times

Fill from ISO calendar busy intervals + optional all-day dates

preview_availability

Validate slot indices before submitting

submit_availability

Sign in and save availability

find_common_availability

Find overlapping free times across participants

Example workflows

Weekly class schedule

No calendar API needed — match by weekday + local time from poll labels:

fill_from_weekly_schedule(
  url="https://www.when2meet.com/?12345678-AbCdE",
  name="Alex Kim",
  on_name_conflict="alternate_suffix",
  busy_blocks=[
    {"day": "Monday", "start": "09:00", "end": "10:15"},
    {"day": "Monday", "start": "10:30", "end": "15:00"},
    {"day": "Wednesday", "start": "09:00", "end": "10:15"},
  ],
  buffer_minutes=5,
  block_before="10:00",
  dry_run=true
)

Calendar MCP integration

1. get_poll(url)
2. [calendar MCP] → busy_times as ISO intervals
3. compute_availability_from_busy_times(
     url=url,
     busy_times=[{"start": "2026-03-09T14:00:00-04:00", "end": "2026-03-09T15:00:00-04:00"}],
     all_day_dates=["2026-03-10"],
     buffer_minutes=5,
   )
4. submit_availability(url, name, slot_indices, dry_run=true)
5. submit_availability(..., dry_run=false, password="...")

Edge cases handled

  • Wrong password on existing name → on_name_conflict="alternate_suffix" submits as Name (Agent)

  • 15-minute slot boundaries → overlap-based matching

  • Buffer time → buffer_minutes expands busy blocks

  • Daily limits → block_before / block_after

  • All-day events → all_day_dates

  • Accidental submit → dry_run=true default on write tools

  • Invalid slot indices → validated with warnings

  • Full positional bitmask → always sends complete 0/1 string (required by when2meet)

  • Unmarked participants → excluded from overlap by default

Limitations

  • when2meet's HTTP interface is undocumented and may change

  • Cannot delete participant rows via API (only clear availability)

  • Poll grid does not expose absolute calendar dates on the participant page

  • Event times are stored in UTC; evening slots may be outside the grid in your local timezone

  • Password-protected participant names require the user to provide the password

Project layout

when2meet-mcp/
├── when2meet_mcp/
│   ├── client.py      # HTTP client + poll parsing
│   ├── scheduling.py  # Slot matching, validation, warnings
│   ├── auth.py        # Login + password fallback
│   ├── agent.py       # Agent name attribution
│   └── server.py      # MCP tool definitions
├── tests/
├── pyproject.toml
└── mcp.json.example

Run the server manually

python3 -m when2meet_mcp.server

License

MIT — see LICENSE.

Disclaimer

This project is not affiliated with when2meet. It uses reverse-engineered HTTP endpoints for personal automation. Use responsibly.

Available Tools

6 tools
compute_availability_from_busy_timesA

Compute free slots from ISO calendar busy intervals.

Args: url: when2meet poll URL busy_times: List of {start, end} ISO-8601 datetimes when busy timezone: IANA timezone for comparisons week_start_date: Date of column 0 (YYYY-MM-DD). Inferred from today if omitted. all_day_dates: Optional list of YYYY-MM-DD all-day busy dates buffer_minutes: Expand busy intervals by this many minutes block_before: Daily cutoff like "10:00" block_after: Daily cutoff like "18:00"

Inputs: url (required), busy_times (required), timezone, block_after, +4 more. Returns: object

fill_from_weekly_scheduleA

Fill a poll from recurring weekly busy blocks (best for class schedules).

Matches by weekday + local time from poll labels — no week_start_date needed.

Args: url: when2meet poll URL name: Your name on the poll busy_blocks: List of {day, start, end} e.g. {"day":"Monday","start":"09:00","end":"10:15"} timezone: IANA timezone for slot labels password: Per-event password if returning to an existing name buffer_minutes: Expand each busy block by this many minutes before/after block_before: Daily cutoff like "10:00" — treat earlier slots as busy block_after: Daily cutoff like "18:00" — treat later slots as busy dry_run: Preview only (default true for safety) on_name_conflict: error | alternate_suffix | create_new agent_name: Model label for alternate name, e.g. Claude (default: WHEN2MEET_AGENT_NAME env)

Inputs: url (required), name (required), busy_blocks (required), dry_run, +7 more. Returns: object

find_common_availabilityB

Find times when participants overlap.

Args: url: when2meet poll URL timezone: IANA timezone for slot labels participant_names: Optional subset of names min_participants: Minimum number of people free (default: all selected) only_marked_participants: Exclude participants who have not marked any slots

Inputs: url (required), timezone, min_participants, participant_names, +1 more. Returns: object

get_pollA

Load a when2meet poll: title, participants, time range, and optional slot grid.

Args: url: Full when2meet URL, e.g. https://www.when2meet.com/?38093485-OZAlv timezone: IANA timezone for slot labels (e.g. America/New_York) include_slots: If true, include all slot indices (can be 300+ entries)

Inputs: url (required), timezone, include_slots. Returns: object

preview_availabilityA

Validate slot indices and preview availability before submitting.

Args: url: when2meet poll URL slot_indices: Zero-based indices to mark available timezone: IANA timezone for labels

Inputs: url (required), slot_indices (required), timezone. Returns: object

submit_availabilityA

Sign in and mark availability on a when2meet poll.

Args: url: when2meet poll URL name: Your name as it should appear on the poll slot_indices: Zero-based slot indices to mark available password: Per-event password for returning participants timezone: IANA timezone used when loading the poll dry_run: Preview only (default true for safety) on_name_conflict: error | alternate_suffix — when password fails for existing name agent_name: Model label for alternate name, e.g. Claude (default: WHEN2MEET_AGENT_NAME env)

Inputs: url (required), name (required), slot_indices (required), dry_run, +4 more. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 6 tools

    Disambiguation4/5

    Each tool targets a distinct phase: read poll, analyze group overlap, compute/fill from busy times, preview, and submit. The two busy-time tools are differentiated by weekly recurring vs one-off ISO inputs, but their names alone could still cause some confusion.

    Naming Consistency4/5

    Most tools follow a clear verb_noun snake_case pattern like get_poll, submit_availability, and preview_availability. The longer names fill_from_weekly_schedule and compute_availability_from_busy_times deviate by adding prepositional phrases, making the pattern slightly inconsistent.

    Tool Count5/5

    Six tools cover reading, analysis, two input modes, preview, and submission without redundancy or bloat. This is a well-scoped and focused set for a when2meet MCP server.

    Completeness4/5

    The set covers the main workflow: load a poll, find availability, compute personal availability, preview, and submit. Obvious gaps like creating a poll or explicitly clearing existing availability are absent, but they may be outside the intended URL-driven scope.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Create scheduling polls (like Doodle) from AI agents. Find the best time for meetings, dinners, and events. 5 tools: create_poll, get_poll, vote_on_poll, get_results, finalize_poll. No authentication required.
      5
      81 npm
      1
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Unofficial MCP tools for LettuceMeet to create polls, view responses, and find meeting overlaps via CLI or MCP server.
      1
      -