日历数据工具

一个与Google Calendar集成的工具,用于管理和访问公开日历数据。

  • by MohammedShakib
  • JavaScript
  • 本地部署
  • 1 星标
  • 更新于
在 GitHub 查看 MohammedShakib/MCP-calendar-tool

使用说明

🚀 如何使用(How to Use)

按照以下步骤在Cursor中设置此工具以连接您自己的Google日历:

Install Node.js: Make sure you have Node.js (v18 or higher) installed on your computer.

Download: Download this project as a ZIP file (or use git clone).

Open Terminal: Open your terminal in the project folder (e.g., mcp-tutorial-main).

Install Packages: Run the following command to install all necessary packages:
Bash

npm install(安装npm包)

创建 .env 文件:复制 .env.example 文件,并将复制的文件重命名为 .env。

添加您的密钥:

Go to Google Cloud Console to get your GOOGLE_PUBLIC_API_KEY.

Go to your Google Calendar settings to get your CALENDAR_ID.

Paste both into your new .env file.

使日历公开:在您的Google日历设置中,进入“事件访问权限”,并勾选“对公众可见”复选框。

在 Cursor 中打开:在 Cursor 编辑器中打开项目文件夹(例如,mcp-tutorial-main)。

完成!Cursor 将自动检测 .cursor/mcp.json 文件,在后台启动服务器,此时“myCalendarData”工具即可使用。“# MCP-日历工具”