A
securityA
licenseA
qualityProvides tools for interacting with Gmail and Calendar APIs. This server enables you to manage your emails and calendar events programmatically through the MCP interface.
Last updated -
8
13
JavaScript
MIT License
这是一个模型上下文协议 (MCP) 服务器,提供与 Google 日历的集成。它允许 LLM 通过标准化接口读取、创建、更新和搜索日历事件。
除了日历集成所具备的常规功能外,您还可以执行真正动态的多步骤流程,例如:
https://www.googleapis.com/auth/calendar.events
(或更广泛的https://www.googleapis.com/auth/calendar
如果需要)npm run auth
进行刷新。gcp-oauth.keys.json
并将其放在项目的根目录中。cp gcp-oauth.keys.example.json gcp-oauth.keys.json
并使用来自 Google Cloud Console 的凭据填充它。npm run build
- 构建 TypeScript 代码(编译src
以build
)npm run typecheck
- 无需编译即可运行 TypeScript 类型检查npm run start
- 启动已编译的 MCP 服务器(使用node build/index.js
)npm run auth
- 手动运行 Google OAuth 身份验证流程。npm test
- 使用 Vitest 运行单元/集成测试套件npm run test:watch
- 在监视模式下运行测试npm run coverage
- 运行测试并生成覆盖率报告服务器处理 Google OAuth 2.0 身份验证以访问您的日历数据。
gcp-oauth.keys.json
命名正确并放置在项目根目录中。npm start
。.gcp-saved-tokens.json
中是否存在有效的身份验证令牌。http://localhost:3000/oauth2callback
)。.gcp-saved-tokens.json
(并显示确切的文件路径)。如果您需要重新进行身份验证或希望单独处理身份验证:
npm run auth
.gcp-saved-tokens.json
中。.gitignore
中)。npm run auth
命令重新进行身份验证。单元和集成测试是使用Vitest实现的。
npm test
npm run test:watch
npm run coverage
测试模拟外部依赖项(Google API、文件系统)以确保对服务器逻辑和处理程序进行隔离测试。
gcp-oauth.keys.json
) 和已保存的令牌 ( .gcp-saved-tokens.json
)永远不应提交到版本控制中。请确保将它们添加到你的.gitignore
文件中。/Users/<user>/Library/Application Support/Claude/claude_desktop_config.json
:<absolute-path-to-project-folder>
替换为项目目录的实际路径。gcp-oauth.keys.json
存在并包含桌面应用程序类型的凭据。.gcp-saved-tokens.json
并重新验证( npm run auth
或重新启动npm start
)。npm install
。build/
目录并运行npm run build
。如果您是开发人员并希望贡献此存储库,请在贡献之前先查看架构概述
麻省理工学院
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
利用 MCP 的功能创建、搜索和管理您的所有 Google 日历事件。
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/nspady/google-calendar-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server