home / mcp / google calendar mcp server
Provides Google Calendar integration with OAuth 2.0, enabling calendar and event management via MCP clients.
Configuration
View docs{
"mcpServers": {
"am2rican5-mcp-google-calendar": {
"command": "npx",
"args": [
"-y",
"mcp-google-calendar"
],
"env": {
"PORT": "3420",
"CREDENTIALS_PATH": "./credentials.json"
}
}
}
}You can run a TypeScript-based MCP server that integrates with Google Calendar to manage calendars and events from your AI assistants or MCP-enabled clients. It handles OAuth 2.0 authentication, persists tokens, and supports real-time updates via SSE if you enable it.
Start the server from your shell using a standard MCP client workflow. By default, you run the server with a simple command that launches the MCP server locally and connects to Google Calendar using stored credentials.
To use real-time updates, start with Server-Sent Events (SSE). This keeps you informed of calendar changes as they happen.
Prerequisites you need before installing:
• Node.js 16 or higher
• Google Cloud Platform account with Google Calendar API enabled
npm install -g mcp-google-calendar
```
```
npx -y mcp-google-calendarTo run with Server-Sent Events (SSE), add the --sse option when starting the server.
You will configure Google Cloud credentials and provide a path to the credentials file in your environment. The first run will prompt you to authorize access to Google Calendar in a browser window. The access token is saved for subsequent launches.
Environment variables you will use include the path to your OAuth credentials and the port your server will listen on.
Configure your client to point at this MCP server so you can control calendars and events from your assistant. Example environment variable setup for the client might provide the credentials path so the server can access Google Calendar.
Keep credentials.json and token.json secure and do not commit them to version control. Each user should maintain their own OAuth credentials in Google Cloud Console. If you suspect credentials have been compromised, revoke them immediately.
The server exposes a set of calendar-focused commands you can invoke from MCP clients to manage calendars and events.
Retrieve all available calendars from Google Calendar.
Fetch events between specified dates from a calendar.
Create a new event in a specified calendar.
Get details for a specific calendar event.
Update an existing calendar event.
Delete a calendar event from a calendar.