google-calendar-mcp-serviceaccount
google-calendar-mcp-serviceaccount
一个最小化的 MCP 服务器,为 AI 代理提供一个 Google Calendar 的读/写访问权限,通过服务账号进行身份验证,而非交互式 OAuth。
为什么使用服务账号
大多数 Google Calendar MCP 服务器使用 OAuth:应用要求人类登录并授予同意,就像真实的多用户产品那样。对于仅需要访问你自己的日历的个人助手,这比实际所需的步骤更多——发布到生产环境、验证域名、定期重新同意。
服务账号则省去这一切:你可以像与另一个人共享一样,将日历共享给服务账号的邮箱。凭据在你撤销之前不会过期。
权衡: 它仅适用于你可以通过电子邮件明确共享的日历(个人 Google 账户、大多数 Workspace 配置)——它无法像完整的 OAuth 授权那样在整个用户账户上广泛操作。
费用: 截至撰写本文时,以下设置中所有内容都是免费的——无需将结算账户或信用卡附加到 Google Cloud 项目。Calendar API 的免费额度远超个人助手的使用量。这未来可能变化;如有疑问,请查看当前的 Google Cloud 定价。
Related MCP server: Google Calendar MCP Server
工具
工具 | 用途 |
| 列出未来 N 天内的即将发生的事件 |
| 创建事件,可选循环(RRULE) |
| 更新现有事件的摘要或时间 |
没有 delete_event 是有意为之——如果你希望代理能删除日历条目,请自行添加。
设置
想借助 AI 编码助手进行设置?让它参考 AGENTS.md——那里有人类和代理双方的完整分步说明。
手动操作:
在 Google Cloud Console 中:创建项目,启用 Calendar API,创建服务账号(不是 OAuth 客户端),下载其 JSON 密钥
用“对事件进行更改”的权限,将你的 Google Calendar 共享给服务账号的电子邮件地址。记下日历的 ID:对于你的主日历,这通常就是你的电子邮件地址;对于任何其他日历,可以在该日历的“设置” → “整合日历” → “日历 ID”中找到
python3 -m venv venv && ./venv/bin/pip install -r requirements.txt将
.env.example复制为.env,填写密钥路径和你的日历 ID将
calendar_server.py以 stdio 服务器的方式注册到你的 MCP 客户端,并传入这两个变量作为其环境
许可证
MIT — 见 LICENSE。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseCqualityDmaintenanceEnables AI assistants to interact with Google Calendar through a simplified OAuth setup. Supports creating, editing, deleting, and searching calendar events without the complexity of Google Cloud Console configuration.4154MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Google Calendar through OAuth 2.1 authentication, supporting full calendar and event management including creation, updates, deletion, and search across multiple calendars.1
- AlicenseBqualityCmaintenanceEnables AI assistants to create and manage Google Calendar events with OAuth2 authentication, supporting event creation with titles, descriptions, times, attendees, and alerts.1973MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to view, create, update, search, and manage Google Calendar events, including multi-account support and availability checks.16Business Source 1.1
Related MCP Connectors
Calendar API for AI agents: events, availability, Google/Microsoft setup, scheduling, and iCal.
Hosted Google Calendar MCP server for AI agents. No self-hosting or Google Cloud setup.
Connects ChatGPT to your Apple Calendar via a local Mac agent + Vercel relay
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jakub-lapinski/google-calendar-mcp-serviceaccount'
If you have feedback or need assistance with the MCP directory API, please join our Discord server