Google Calendar MCP Server
Provides comprehensive Google Calendar integration, enabling listing, creating, updating, and deleting calendar events, as well as retrieving available calendars with various filtering options.
Integrates with Google Cloud for authentication and access control through service accounts and OAuth, enabling secure access to Google Calendar API resources.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Google Calendar MCP Server list my events for today"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Google Calendar MCP Server
A Model Context Protocol (MCP) server that provides comprehensive Google Calendar integration capabilities. This server allows AI assistants and applications to interact with Google Calendar through a standardized protocol.
Features
List Events: Retrieve events from Google Calendar with filtering options
Create Events: Create new calendar events with full customization
Update Events: Modify existing calendar events
Delete Events: Remove events from calendars
List Calendars: Get available calendars for the authenticated user
OAuth Authentication: Secure Google Calendar API access
Related MCP server: Google Calendar MCP Server
Tools Available
list_events
Retrieve events from a Google Calendar with various filtering options.
Parameters:
calendarId(optional): Calendar ID (default: "primary")timeMin(optional): Lower bound for event start time (RFC3339 timestamp)timeMax(optional): Upper bound for event start time (RFC3339 timestamp)maxResults(optional): Maximum number of events (default: 250)singleEvents(optional): Expand recurring events (default: true)orderBy(optional): Order events by "startTime" or "updated"
create_event
Create a new event in Google Calendar.
Parameters:
calendarId(optional): Calendar ID (default: "primary")summary(required): Event titledescription(optional): Event descriptionstart(required): Start date/time object with dateTime and optional timeZoneend(required): End date/time object with dateTime and optional timeZonelocation(optional): Event locationattendees(optional): Array of attendee objects with email and displayNamerecurrence(optional): Array of RRULE strings for recurring events
update_event
Update an existing calendar event.
Parameters:
calendarId(optional): Calendar ID (default: "primary")eventId(required): ID of the event to updatesummary(optional): New event titledescription(optional): New event descriptionstart(optional): New start date/timeend(optional): New end date/timelocation(optional): New event locationattendees(optional): New attendees list
delete_event
Delete an event from Google Calendar.
Parameters:
calendarId(optional): Calendar ID (default: "primary")eventId(required): ID of the event to delete
list_calendars
List available Google Calendars for the authenticated user.
Parameters:
minAccessRole(optional): Minimum access role filtershowDeleted(optional): Include deleted calendars (default: false)showHidden(optional): Include hidden calendars (default: false)
Setup
Prerequisites
Google Cloud Project: Create a project in Google Cloud Console
Enable Google Calendar API: Enable the Calendar API for your project
Service Account: Create a service account and download the JSON key file
Installation
Clone this repository
Install dependencies:
npm installCopy the environment file and configure:
copy .env.example .envEdit
.envand set your Google Service Account key file path:GOOGLE_SERVICE_ACCOUNT_KEY_FILE=./path/to/your/service-account-key.json
Building
# Build the TypeScript code
npm run build
# Development mode with hot reload
npm run dev
# Type checking
npm run type-check
# Clean build artifacts
npm run cleanUsage
Running the Server
# Start the compiled server
npm start
# Or run in development mode
npm run devIntegrating with MCP Clients
Add this server to your MCP client configuration:
{
"servers": {
"google-calendar": {
"type": "stdio",
"command": "node",
"args": ["./dist/index.js"]
}
}
}For VS Code with MCP extension, add to .vscode/mcp.json:
{
"servers": {
"google-calendar-mcp-server": {
"type": "stdio",
"command": "node",
"args": ["./dist/index.js"]
}
}
}Authentication Setup
Create a Service Account:
Go to Google Cloud Console
Navigate to IAM & Admin > Service Accounts
Create a new service account
Download the JSON key file
Share Calendar Access:
Open Google Calendar
Go to calendar settings
Share your calendar with the service account email
Grant "Make changes to events" permission
Configure Environment:
Place the JSON key file in your project directory
Update the
.envfile with the correct path
Development
Project Structure
src/
├── index.ts # Main MCP server implementation
├── types/ # TypeScript type definitions
└── utils/ # Utility functions
.env.example # Environment variable template
tsconfig.json # TypeScript configuration
package.json # Node.js dependencies and scriptsAdding New Tools
Define a Zod schema for input validation
Create a ToolSchema definition
Implement the async handler function
Register the tool in the server
Add comprehensive error handling
Error Handling
All tools return structured responses:
// Success response
{
content: [{ type: "text", text: JSON.stringify(result) }]
}
// Error response
{
content: [{ type: "text", text: JSON.stringify(error) }],
isError: true
}Security Considerations
Never commit service account keys to version control
Use environment variables for all sensitive configuration
Implement proper error handling to avoid information leakage
Regularly rotate service account keys
Follow Google Cloud security best practices
Contributing
Fork the repository
Create a feature branch
Make your changes with proper tests
Submit a pull request
License
MIT License - see LICENSE file for details
Support
For issues and questions:
Check the Google Calendar API documentation
Review MCP specification
Open an issue in this repository
Available Tools
5 toolscreate_eventC
Create a new event in Google Calendar
Inputs: summary (required), start (required), end (required), calendarId, +4 more.
delete_eventC
Delete an event from Google Calendar
Inputs: eventId (required), calendarId.
list_calendarsB
List available Google Calendars
Inputs: minAccessRole, showDeleted, showHidden.
list_eventsC
List events from a Google Calendar
Inputs: calendarId, timeMin, timeMax, maxResults, +2 more.
update_eventC
Update an existing event in Google Calendar
Inputs: eventId (required), calendarId, summary, description, +4 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Every tool has a clearly distinct purpose with no ambiguity. create_event, update_event, and delete_event handle the event lifecycle, while list_calendars and list_events provide listing functionality for different resources. The descriptions clearly differentiate each tool's role.
All tools follow a consistent verb_noun pattern (e.g., create_event, list_calendars). The naming is uniform throughout with no deviations in style or convention, making it easy to predict and understand tool purposes.
With 5 tools, this server is well-scoped for Google Calendar operations. Each tool earns its place by covering essential CRUD and listing functions without being overly sparse or bloated, fitting typical server tool counts.
The tool surface provides complete CRUD/lifecycle coverage for events (create, read via list, update, delete) and includes listing calendars. There are no obvious gaps for core calendar operations, ensuring agents can handle common workflows without dead ends.
Maintenance
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.
Manage Calendesk bookings, customers, employees and services from AI assistants. OAuth sign-in.
Manage Google, Outlook & Apple calendars and create private sync rules from chat.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables comprehensive calendar management with capabilities to create, list, update, and delete events through a Model Context Protocol server integrated with Google Calendar.55 npm3MIT
- AlicenseNot gradedqualityFmaintenanceIntegrates Google Calendar with AI assistants through the Model Context Protocol, allowing users to view and manage calendar events through natural language interaction.130 npm12MIT
- FlicenseNot gradedqualityDmaintenanceProvides AI assistants with intelligent access to Google Calendar data, enabling natural language queries about availability, upcoming events, schedule conflicts, and meeting summaries through context-aware calendar integration.-
- FlicenseNot gradedqualityDmaintenanceEnables natural language interaction with Google Calendar via the Model Context Protocol, allowing LLMs like Claude to read and manage calendar events through the Google Calendar v3 API.2-