这是一个从Google日历获取约会列表的MCP服务器,能帮助用户便捷地从Google日历获取相关信息。
请在“桌面应用”下创建一个OAuth 2.0客户端。详细信息请参考此处 。
创建客户端后,请获取以下格式的身份验证JSON文件,并将redirect_uris
更改为["http://localhost:3000/callback"]
,然后以credentials.json
为文件名保存到根目录。
{
"installed": {
"client_id": "hogehoge",
...
"redirect_uris": ["http://localhost:3000/callback"]
}
}
请编辑Claude Desktop的claude_desktop_config.json
,如下所示:
{
"mcpServers": {
"calendar": {
"command": "npx",
"args": ["ts-node",
"--project",
"//mcp-calendar-server/tsconfig.json" ,
"//mcp-calendar-server/src/index.ts" ]
}
}
}
⚠️ 重要提示
- 请将
/
替换为实际的文件路径。/mcp-calendar-server/... - 确保Claude Desktop已正确配置,以便能够找到并运行MCP服务器。