dental-calendar-mcp

dental-calendar-mcp

Enables ElevenLabs AI agents to manage dental clinic appointments through Google Calendar, including checking availability, booking, canceling, rescheduling, and retrieving appointment details.

Category
访问服务器

README

Dental Calendar MCP Server

A Model Context Protocol (MCP) server for managing dental clinic appointments through Google Calendar, specifically designed for integration with ElevenLabs Conversational AI agents.

Overview

This MCP server provides ElevenLabs AI agents with the ability to:

  • Check available appointment slots
  • Book new appointments
  • Cancel existing appointments
  • Reschedule appointments
  • Retrieve appointment details
  • List appointments in date ranges
  • Find appointments by patient phone number

Features

  • Google Calendar Integration: Full integration with Google Calendar API v3
  • Business Hours Validation: Respects clinic hours and working days
  • Appointment Type Management: Different appointment types with appropriate durations
  • Conflict Detection: Prevents double-booking and scheduling conflicts
  • Natural Language Support: Handles various date/time formats from voice input
  • Comprehensive Error Handling: Provides helpful error messages for ElevenLabs agents
  • Patient Information Management: Stores patient details in calendar events
  • Automatic Reminders: Configures email reminders for appointments

Quick Start

1. Prerequisites

  • Node.js 18+ installed
  • Google Cloud Console project with Calendar API enabled
  • Google OAuth2 credentials

2. Installation

cd google-calendar-mcp
npm install

3. Configuration

  1. Copy .env.example to .env:
cp .env.example .env
  1. Configure your environment variables in .env:
GOOGLE_CLIENT_ID=your_google_client_id_here
GOOGLE_CLIENT_SECRET=your_google_client_secret_here
GOOGLE_REDIRECT_URI=http://localhost:3000/auth/google/callback
GOOGLE_CALENDAR_ID=primary
  1. Set up Google OAuth (see Google OAuth Setup Guide)

4. Build and Run

npm run build
npm start

MCP Tools

check_available_slots

Check available appointment time slots for a specific date.

Parameters:

  • date (string): Date to check (YYYY-MM-DD or natural language)
  • duration (number, optional): Appointment duration in minutes (default: 30)
  • timeRange (object, optional): Limit search to specific hours

Example:

{
  "date": "2024-03-15",
  "duration": 30,
  "timeRange": {
    "start": "09:00",
    "end": "17:00"
  }
}

book_appointment

Book a new dental appointment.

Parameters:

  • patient_name (string): Patient's full name
  • phone (string): Patient's phone number
  • email (string): Patient's email address
  • datetime (string): Appointment date/time
  • duration (number, optional): Duration in minutes (default: 30)
  • appointment_type (string, optional): Type of appointment (default: "checkup")
  • notes (string, optional): Additional notes

Example:

{
  "patient_name": "John Smith",
  "phone": "555-123-4567",
  "email": "john@example.com",
  "datetime": "2024-03-15T10:00:00",
  "duration": 45,
  "appointment_type": "cleaning",
  "notes": "First time patient"
}

cancel_appointment

Cancel an existing appointment.

Parameters:

  • appointment_id (string): Unique appointment ID

reschedule_appointment

Move an appointment to a new date/time.

Parameters:

  • appointment_id (string): Unique appointment ID
  • new_datetime (string): New appointment date/time

get_appointment_details

Retrieve detailed information about a specific appointment.

Parameters:

  • appointment_id (string): Unique appointment ID

find_appointment_by_phone

Find upcoming appointments for a patient by phone number.

Parameters:

  • phone (string): Patient's phone number

list_appointments

List all appointments within a date range.

Parameters:

  • date_range (object): Start and end dates
    • start (string): Start date
    • end (string): End date

Integration with ElevenLabs

This MCP server is designed to work seamlessly with ElevenLabs Conversational AI agents. The tools provide structured responses that ElevenLabs agents can easily interpret and respond to naturally.

Example ElevenLabs Integration

  1. Configure Claude Desktop to include this MCP server
  2. Train your ElevenLabs agent with appointment booking flows
  3. Use the MCP tools within your conversational flows

See ElevenLabs Integration Guide for detailed setup instructions.

Configuration

Dental Clinic Settings

Customize clinic-specific settings in config/dental-settings.json:

  • Business Hours: Define working hours for each day
  • Appointment Types: Configure types, durations, and buffer times
  • Holidays: List clinic closure dates
  • Policies: Set booking rules and restrictions

Environment Variables

Variable Description Required
GOOGLE_CLIENT_ID Google OAuth2 Client ID Yes
GOOGLE_CLIENT_SECRET Google OAuth2 Client Secret Yes
GOOGLE_REDIRECT_URI OAuth2 Redirect URI Yes
GOOGLE_CALENDAR_ID Calendar ID to use (default: "primary") No
CLINIC_NAME Name of the dental clinic No
CLINIC_TIMEZONE Clinic timezone (default: "America/New_York") No
BUSINESS_HOURS_START Default start time (default: "09:00") No
BUSINESS_HOURS_END Default end time (default: "17:00") No

Development

Building

npm run build

Development Mode

npm run dev

Testing

npm test

Claude Desktop Configuration

Add this MCP server to your Claude Desktop configuration:

{
  "mcpServers": {
    "dental-calendar": {
      "command": "node",
      "args": ["/path/to/dental-ai-system/google-calendar-mcp/dist/index.js"],
      "env": {
        "GOOGLE_CLIENT_ID": "your_client_id",
        "GOOGLE_CLIENT_SECRET": "your_client_secret",
        "GOOGLE_REDIRECT_URI": "your_redirect_uri"
      }
    }
  }
}

Error Handling

The server provides comprehensive error handling with helpful messages:

  • Validation Errors: Clear messages about invalid input
  • Scheduling Conflicts: Suggestions for alternative times
  • API Errors: Graceful handling of Google Calendar API issues
  • Business Logic Errors: Helpful guidance for booking policies

Security

  • OAuth2 authentication for Google Calendar access
  • Patient information stored securely in calendar events
  • Input validation and sanitization
  • No storage of sensitive credentials in code

Support

For issues and questions:

  1. Check the Google OAuth Setup Guide
  2. Review the ElevenLabs Integration Guide
  3. Verify your configuration matches the examples

License

MIT License - see LICENSE file for details.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选