Google日历集成
STDIO通过MCP与谷歌日历交互的服务
通过MCP与谷歌日历交互的服务
Interact with your Google Calendar through Claude Desktop using the Model Context Protocol (MCP).
This is a TypeScript-based MCP server that implements Google Calendar integration. It demonstrates core MCP concepts while providing:
create_event
- Create new calendar events
list_events
- View upcoming calendar eventsanalyze_schedule
- Generate insights about your calendar
Install devbox by following instructions at devbox.sh
curl -fsSL https://get.jetpack.io/devbox | bash
Initialize devbox in the project directory:
devbox init
Start the devbox shell:
devbox shell
Install dependencies:
npm install
Build the server:
npm run build
For development with auto-rebuild:
npm run watch
To use with Claude Desktop, add the server config:
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
{ "mcpServers": { "Google Calendar": { "command": "/path/to/Google Calendar/build/index.js" } } }
Set up Google Cloud credentials:
.client_secret.json
and place it in the project rootInitial Authentication:
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:
npm run inspector
The Inspector will provide a URL to access debugging tools in your browser.