mcp google calendar
Integrates Google Calendar with AI assistants through the Model Context Protocol, allowing users to view and manage calendar events through natural language interaction.
Integrates Google Calendar with AI assistants through the Model Context Protocol, allowing users to view and manage calendar events through natural language interaction.
A Model Context Protocol (MCP) server that integrates with Google Calendar, built with TypeScript.
npm install -g mcp-google-calendar
Or run directly with:
npx -y mcp-google-calendar
credentials.json
in your project directoryCreate a .env
file in your project root:
# Server configuration
PORT=3420
# Google Calendar API configuration
CREDENTIALS_PATH=./credentials.json
Start with standard WebSockets:
npx -y mcp-google-calendar
Start with Server-Sent Events (SSE):
npx -y mcp-google-calendar --sse
Add this to your claude_desktop_config.json
:
{
"mcpServers": {
"mcp-google-calendar": {
"command": "npx",
"args": ["-y", "mcp-google-calendar"],
"env": {
"CREDENTIALS_PATH": "/path/to/your/credentials.json"
}
}
}
}
The first time you run the server:
1. A browser window will open automatically
2. Sign in with your Google account
3. Grant the requested calendar permissions
4. The authentication token is saved to token.json
On subsequent launches: - The server uses the saved token automatically - No browser interaction is required unless the token expires
Tool | Description |
---|---|
list_calendars |
Get all available calendars |
list_calendar_events |
Retrieve events between specified dates |
create_calendar_event |
Add a new event to your calendar |
get_calendar_event |
Fetch details for a specific event |
edit_calendar_event |
Modify an existing calendar event |
delete_calendar_event |
Remove an event from your calendar |
Clone and set up the project:
git clone https://github.com/am2rican5/mcp-google-calendar.git
cd mcp-google-calendar
npm install
Build the project:
npm run build
Run in development mode:
npm start
⚠️ Important Security Warning ⚠️
credentials.json
and token.json
contain sensitive authentication informationThis project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.
git checkout -b feature/amazing-feature
)git commit -m 'Add some amazing feature'
)git push origin feature/amazing-feature
)