Table of contents

Developers building agents that need to react to new bookings, pull invitee details for downstream workflows, or surface availability data have to navigate Calendly's OAuth model, handle webhook registration, and manage token storage before writing a single tool call.
To help your developers query scheduled events, access invitee records, and trigger workflows from booking data more easily from the terminal, we'll show you how to connect Calendly with Merge Agent Handler's Calendly MCP server.
Merge Agent Handler connects Claude Code to the Calendly API through a single CLI setup.
You install the Merge CLI, authenticate once with your Merge Agent Handler account, and register the connection with one command.
Merge handles Calendly's OAuth credentials and token lifecycle on your behalf, so you never store access tokens locally or manage refresh logic across environments.
Here's the command that registers the connection:
Before getting started, you'll need the following:
claude --version to confirm)pipx --version to confirm, or install via pip install pipx)If you want to connect Merge Agent Handler's Calendly MCP with internal or customer-facing agentic products, you can follow the steps in our docs.
Run the following to install the Merge CLI: pipx install merge-api

Then verify the installation: merge --version
Related: How to use a Gmail MCP in Claude Code
Run merge login to authenticate your session and link the CLI to your Merge Agent Handler account: merge login
This authenticates your session so the CLI can make authorized requests on your behalf.
Run the following to register the Agent Handler MCP server with Claude Code:
Or, if you prefer to register manually:
Open Claude Code and run: /mcp
agent-handler should appear under Local MCPs with a connected status.

Open a Claude Code session and run a test query like: "List all scheduled events from the past 7 days, including the invitee name, event type, and scheduled time." The first time you invoke a Calendly tool, a Magic Link will appear to complete connector authentication.
The first time you use a Calendly tool in a Claude Code session, a Magic Link may appear to complete connector authentication, as shown below.

You should then see an output like the following:

{{this-blog-only-cta}}
In case you have more questions on setting up and using the Calendly MCP in Claude Code, we've addressed several more commonly-asked questions below.
With Calendly connected, Claude Code can:
You can build a self-hosted MCP server directly on Calendly's REST API. For a single user with one Calendly account and a narrow query use case, the setup is manageable: generate a personal access token, define tool schemas for the endpoints you need, and point your MCP server at the Calendly API.
The problem is multi-user and multi-organization scale.
Calendly personal access tokens are tied to individual accounts. If your agent needs to read bookings across multiple Calendly users or organizations, each requires its own token, its own storage, and its own rotation schedule. A self-hosted MCP server gives you no mechanism to enforce which event types or invitee fields an agent can access, and no audit trail of what it read or acted on.
Merge Agent Handler handles OAuth credential management across users and adds tool-level access control on top.
So, for example, an agent that sends booking confirmation emails can use tools like scheduled_events_list and invitees_get, but it may not have access to tools like event_types_delete or scheduled_events_cancel. Every tool call is also logged with the timestamp, tool name, and inputs.
Calendly holds the scheduling data that revenue and ops teams act on constantly: who booked a demo, when the onboarding call is scheduled, and which event types are driving the most volume. Developers building on that data currently have to export it manually or wire up a Calendly integration each time a new workflow needs a different slice of it.
With the Calendly MCP connected, Claude Code can query bookings, pull invitee details, and surface availability without leaving the terminal.
This is most valuable when a Calendly event needs to kick off a downstream action: creating a contact in the CRM when a demo is booked, sending prep materials to a new invitee, generating a weekly summary of scheduled calls by event type for a sales manager, and more.
Use Merge Agent Handler’s 150+ connectors (including Calendly) to power reliable, secure, and powerful agents.