此仓库提供了一个与 Google Calendar API 集成的模型上下文协议(MCP)服务器。它能让用户对日历事件进行列出、添加、删除和更新等操作。该服务器专为与 Anthropic 的 Claude 桌面版搭配使用而设计,可作为 MCP 客户端发挥作用。
本服务器允许用户与 Google 日历交互,实现列出、添加、删除和更新事件的功能,并且能够无缝集成到 Claude 桌面版中。
按照官方 UV 安装指南中的说明进行操作。
git clone https://github.com/rsc1102/Google_Calendar_MCP.git
cd Google_Calendar_MCP
uv sync
credentials.json
文件。credentials.json
放置在 Google_Calendar_MCP
目录中。打开系统中的 claude_desktop_config.json
文件:
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
code $env:AppData\Claude\claude_desktop_config.json
在 mcpServers
部分中添加以下内容:
{
"mcpServers": {
"calendar": {
"command": "uv",
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/PARENT/FOLDER/Google_Calendar_MCP",
"run",
"calendar_mcp.py"
]
}
}
}
在项目的知识部分,使用 IANA 时区格式定义您的本地时区(例如 timeZone="America/New_York"
)。
开始与 Claude 互动以管理 Google 日历事件。注意:首次使用服务器时,Google 会提示您进行身份验证并授予访问日历的权限。
如需帮助或有问题,请在此仓库中打开问题。