Provides asynchronous access to Google Calendar API via Model Context Protocol, enabling seamless event management, OAuth 2.0 authentication, duplicate handling, and integration with AI interfaces for efficient calendar operations.
Unlock the full potential of Google Calendar MCP Server through LangDB's AI Gateway. Get enterprise-grade security, analytics, and seamless integration with zero configuration.
Free tier available • No credit card required
Model Context Protocol (MCP) server ที่ให้บริการเข้าถึง Google Calendar API พร้อมรองรับการทำงานแบบ asynchronous operations ช่วยให้การจัดการปฏิทินมีประสิทธิภาพผ่านอินเตอร์เฟซที่เป็นมาตรฐาน
เครื่องมือ | คำอธิบาย |
---|---|
list | ดึงรายการกิจกรรมในปฏิทิน (2 ปีย้อนหลังถึง 1 ปีล่วงหน้า) |
create-event | สร้างกิจกรรมใหม่ในปฏิทิน |
delete-duplicates | ลบกิจกรรมที่ซ้ำกัน |
delete-event | ลบกิจกรรมที่ระบุ |
โคลนโปรเจกต์
git clone https://github.com/yourusername/GCalendar.git cd GCalendar
สร้างสภาพแวดล้อมเสมือน (วิธีที่แนะนำ)
python -m venv gcalendar_venv # สำหรับ Windows gcalendar_venv\Scripts\activate # สำหรับ macOS/Linux source gcalendar_venv/bin/activate
ติดตั้งแพ็คเกจที่จำเป็น
pip install -r requirements.txt
เตรียมโฟลเดอร์ที่จำเป็น
mkdir -p credentials logs
สร้างโปรเจกต์ Google Cloud Console
สร้างโทเค็น
python src/create_token.py
เพิ่มในไฟล์ claude_desktop_config.json
:
{ "mcpServers": { "gcalendar": { "command": "YOUR_PYTHON_PATH", "args": [ "YOUR_PATH/GCalendar/src/mcp_server.py" ] } } }
แทนที่ตัวยึดตำแหน่ง:
YOUR_PYTHON_PATH
: พาธไปยัง Python interpreter (จาก venv หรือ conda)YOUR_PATH
: พาธเต็มไปยังโฟลเดอร์ที่โคลนGCalendar/
├── credentials/
│ ├── credentials.json # จาก Google Cloud Console
│ └── token.json # สร้างโดย create_token.py
├── logs/
│ └── calendar_service.log
├── src/
│ ├── calendar_service.py # การดำเนินการปฏิทินหลัก
│ ├── create_token.py # การสร้างโทเค็น
│ ├── list_past_events.py # ยูทิลิตี้การแสดงรายการกิจกรรม
│ ├── mcp_client.py # การใช้งาน MCP client
│ ├── mcp_server.py # การใช้งานเซิร์ฟเวอร์หลัก
│ └── renew_token.py # ยูทิลิตี้การต่ออายุโทเค็น
├── requirements.txt
└── README.md
เริ่มเซิร์ฟเวอร์ด้วยตนเอง
python src/mcp_server.py
การใช้งานกับ Claude Desktop
ดูรายการกิจกรรมในปฏิทิน
แสดงกิจกรรมในปฏิทินของฉัน
สร้างกิจกรรมใหม่
สร้างการประชุมชื่อ "ประชุมทีม" วันที่ 25 มีนาคม 2025 เวลา 14:00 น. ถึง 15:00 น.
ลบกิจกรรมที่ซ้ำกัน
ลบกิจกรรม "ประชุมทีม" ที่ซ้ำกันในวันที่ 25 มีนาคม 2025
pip install pytz tzdata
cat logs/calendar_service.log
โปรเจกต์นี้มีใบอนุญาตภายใต้ MIT License ดูไฟล์ LICENSE สำหรับรายละเอียด "# py-mcp-gcalendar"
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!