Cal.com FastMCP Server

Cal.com FastMCP Server

FastMCP server enabling LLMs to interact programmatically with the Cal.com API.

13
Stars
8
Forks
13
Watchers
1
Issues
Cal.com FastMCP Server provides an implementation of the Model Context Protocol (MCP), enabling language models to programmatically interact with the Cal.com API. It offers a range of tools for managing event types, bookings, schedules, teams, users, and webhooks through a standardized FastMCP server. The system includes robust error handling and requires an API key for authentication.

Key Features

FastMCP server for LLM integration
Multiple tool endpoints for Cal.com API interaction
Structured error handling with descriptive messages
Environment-based API key authentication
Event types and booking management support
User, team, and schedule listing capabilities
Webhook listing utility
Support for filtering and limiting API queries
Self-hosted, runs locally with simple setup
Support for SSE transport

Use Cases

Enabling LLMs to manage Cal.com event types and bookings
Automating scheduling tasks via API in conversational AI agents
Building chatbots that can interface directly with calendar data
Developing virtual assistants capable of Cal.com operations
Integrating Cal.com functionality with AI-driven workflows
Testing and prototyping AI tools for calendar automation
Providing structured calendar management in AI platforms
Demonstrating MCP tool server implementation for scheduling APIs
Facilitating multi-user and team event coordination for LLMs
Monitoring and managing Cal.com webhooks through an AI interface

README

Cal.com FastMCP Server

⚠️ Disclaimer: This project is not affiliated with or endorsed by Cal.com. I am an independent developer and have no association with Cal.com in any official capacity.

This project provides a FastMCP server for interacting with the Cal.com API. It allows Language Learning Models (LLMs) to use tools to connect with important Cal.com functionalities like managing event types and bookings.

Prerequisites

  • Python 3.8+
  • A Cal.com account and API Key (v2)

Setup

  1. Clone the repository (if applicable) or download the files.

    bash
    git clone https://github.com/Danielpeter-99/calcom-mcp.git
    cd calcom-mcp
    
  2. Create a virtual environment (recommended):

    bash
    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
    
  3. Install dependencies:

    bash
    pip install -r requirements.txt
    
  4. Set up the Cal.com API Key: You need to set the CALCOM_API_KEY environment variable. You can get your API key from your Cal.com settings page (usually under Developer or Security settings).

    • Linux/macOS:

      bash
      export CALCOM_API_KEY="your_actual_api_key_here"
      

      To make it permanent, add this line to your shell configuration file (e.g., .bashrc, .zshrc).

    • Windows (PowerShell):

      powershell
      $env:CALCOM_API_KEY="your_actual_api_key_here"
      

      To make it permanent, you can set it through the System Properties > Environment Variables.

Running the Server

Once the setup is complete, you can run the FastMCP server:

bash
fastmcp run app.py --transport sse --port 8010

The server will start at localhost:8010, and you should see output indicating it's running. If the CALCOM_API_KEY is not set, a warning will be displayed.

Available Tools

The server currently provides the following tools for LLM interaction:

  • get_api_status(): Check if the Cal.com API key is configured in the environment. Returns a string indicating the status.
  • list_event_types(): Fetch a list of all event types from Cal.com for the authenticated account. Returns a dictionary with the list of event types or an error message.
  • get_bookings(...): Fetch a list of bookings from Cal.com, with optional filters (event_type_id, user_id, status, date_from, date_to, limit). Returns a dictionary with the list of bookings or an error message.
  • create_booking(...): Create a new booking in Cal.com for a specific event type and attendee. Requires parameters like start_time, attendee details, and event type identifiers. Returns a dictionary with booking details or an error message.
  • list_schedules(...): List all schedules available to the authenticated user or for a specific user/team. Optional filters: user_id, team_id, limit. Returns a dictionary with the list of schedules or an error message.
  • list_teams(...): List all teams available to the authenticated user. Optional filter: limit. Returns a dictionary with the list of teams or an error message.
  • list_users(...): List all users available to the authenticated account. Optional filter: limit. Returns a dictionary with the list of users or an error message.
  • list_webhooks(...): List all webhooks configured for the authenticated account. Optional filter: limit. Returns a dictionary with the list of webhooks or an error message.

Note: All tools require the CALCOM_API_KEY environment variable to be set. If it is not set, tools will return a structured error message.

Tool Usage and Error Handling

  • All tools return either the API response (as a dictionary or string) or a structured error message with details about the failure.
  • Error messages include the type of error, HTTP status code (if applicable), and the response text from the Cal.com API.
  • For best results, always check for the presence of an error key in the response before using the returned data.
  • Tools are designed to be robust and provide informative feedback for both successful and failed API calls.

Development Notes

  • The Cal.com API base URL is set to https://api.cal.com/v2.
  • Authentication is primarily handled using a Bearer token with the CALCOM_API_KEY.
  • The create_booking tool uses the cal-api-version: 2024-08-13 header as specified in the Cal.com API v2 documentation for that endpoint.
  • Error handling is included in the API calls to provide informative responses.

🚀 Built With

Python
FastMCP
Cal.com API

Important Security Note

Never hardcode your CALCOM_API_KEY directly into the source code. Always use environment variables as described in the setup instructions to keep your API key secure.

Star History

Star History Chart

Repository Owner

Repository Details

Language Python
Default Branch main
Size 24 KB
Contributors 1
License MIT License
MCP Verified Nov 11, 2025

Programming Languages

Python
100%

Tags

Join Our Newsletter

Stay updated with the latest AI tools, news, and offers by subscribing to our weekly newsletter.

We respect your privacy. Unsubscribe at any time.

Related MCPs

Discover similar Model Context Protocol servers

  • FastMCP

    FastMCP

    The fast, Pythonic way to build MCP servers and clients.

    FastMCP is a production-ready framework for building Model Context Protocol (MCP) applications in Python. It streamlines the creation of MCP servers and clients, providing advanced features such as enterprise authentication, composable tools, OpenAPI/FastAPI generation, server proxying, deployment tools, and comprehensive client libraries. Designed for ease of use, it offers both standard protocol support and robust utilities for production deployments.

    • 20,201
    • MCP
    • jlowin/fastmcp
  • GrowthBook MCP Server

    GrowthBook MCP Server

    Interact with GrowthBook from your LLM client via MCP.

    GrowthBook MCP Server enables seamless integration between GrowthBook and LLM clients by implementing the Model Context Protocol. It allows users to view experiment details, add feature flags, and manage GrowthBook configurations directly from AI applications. The server is configurable via environment variables and leverages GrowthBook's API for functionality. This integration streamlines experimentation and feature management workflows in AI tools.

    • 15
    • MCP
    • growthbook/growthbook-mcp
  • mcp-gsuite

    mcp-gsuite

    MCP server for integrating Google Gmail and Calendar with AI tools

    mcp-gsuite enables seamless integration of Google Workspace products, such as Gmail and Calendar, with AI models via the Model Context Protocol (MCP). It supports multiple Google accounts, OAuth2 authentication, and a variety of email and calendar management functions. Users can retrieve, compose, and manage emails or calendar events, and provide rich contextual information to AI systems.

    • 457
    • MCP
    • MarkusPfundstein/mcp-gsuite
  • Rootly MCP Server

    Rootly MCP Server

    Seamlessly integrate Rootly incident management into MCP-compatible editors.

    Rootly MCP Server provides an MCP-compliant server to access and manage Rootly's incident management API from within editors like Cursor, Windsurf, and Claude. It enables context-rich workflows and tool generation based on Rootly’s OpenAPI specification, allowing users to resolve incidents directly within their development environment. The server supports flexible authentication and dynamic resource generation while ensuring smart pagination to optimize editor context windows.

    • 36
    • MCP
    • Rootly-AI-Labs/Rootly-MCP-server
  • Google Calendar MCP Server

    Google Calendar MCP Server

    MCP-compliant server enabling Google Calendar integration with Claude Desktop.

    Google Calendar MCP Server provides a Model Context Protocol server implementation for seamless integration between Claude Desktop and Google Calendar. It enables natural language-based scheduling, creation, updating, and deletion of calendar events by handling OAuth2 authentication and offering standardized tool interfaces. The server employs TypeScript, leverages the MCP SDK, and ensures secure token handling with AES-256-GCM encryption. Robust schema validation and environment-based configuration enable secure, reliable, and flexible calendar management.

    • 53
    • MCP
    • takumi0706/google-calendar-mcp
  • Facebook MCP Server

    Facebook MCP Server

    AI-ready tools for managing and moderating Facebook Pages via the Graph API.

    Facebook MCP Server is a Model Context Protocol (MCP) server designed to automate and manage interactions on Facebook Pages through the Facebook Graph API. It offers a suite of tools accessible by AI agents or LLMs, enabling actions such as posting, moderating comments, retrieving analytics, and handling negative feedback. The platform is optimized for integration with agent clients like Claude Desktop, providing seamless, natural language-driven operations. By abstracting Facebook operations as callable functions, it empowers users to efficiently control and monitor their social media presence.

    • 64
    • MCP
    • HagaiHen/facebook-mcp-server
  • Didn't find tool you were looking for?

    Be as detailed as possible for better results