Google Calendar MCP Server
Allows interaction with Google Calendar, providing tools for listing calendars, and creating, reading, updating, and deleting events.
Click on "Install 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 Serverlist my events for tomorrow"
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 Tutorial
A tutorial project demonstrating how to build a Model Context Protocol (MCP) server that integrates with Google Calendar. This server exposes Google Calendar functionality as tools that AI assistants can use.
Note: This is an educational project for learning MCP server development. It is not intended for production use.
Table of Contents
Related MCP server: Google-Calendar Universal MCP
Overview
This MCP server provides AI assistants with the ability to:
List and manage calendars
Create, read, update, and delete calendar events
Query events with filters (time range, search terms, etc.)
Built with FastMCP for the MCP server implementation and the Google Calendar API for calendar operations.
Prerequisites
Python 3.12 or higher
uv package manager
A Google Cloud project with Calendar API enabled
OAuth 2.0 credentials (Desktop app type)
Project Structure
google-calendar-mcp-server-tutorial/
├── main.py # MCP server entry point
├── config.py # Configuration management
├── auth.py # Google OAuth2 authentication
├── logger.py # Logging utilities
├── service_factory.py # Factory for Google API services
├── models/ # Pydantic request models
│ ├── calendar/ # Calendar metadata models
│ ├── calendars_list/ # Calendar list models
│ └── event/ # Event operation models
├── services/ # Google Calendar API service layer
│ ├── calendar_service.py
│ ├── calendar_list_service.py
│ └── event_service.py
└── tools/ # MCP tool definitions
├── calendar.py
├── calendar_list.py
└── event.pySetup
1. Clone the Repository
git clone <repository-url>
cd google-calendar-mcp-server-tutorial2. Install Dependencies
uv sync3. Configure Google Cloud
Go to the Google Cloud Console
Create a new project or select an existing one
Enable the Google Calendar API:
Navigate to "APIs & Services" > "Library"
Search for "Google Calendar API" and enable it
Create OAuth 2.0 credentials:
Go to "APIs & Services" > "Credentials"
Click "Create Credentials" > "OAuth client ID"
Select "Desktop app" as the application type
Download the JSON file
Save the downloaded file as
client_secret.jsonin the project root
4. Configure Claude Desktop
Add the server to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"GoogleCalendar": {
"command": "uv",
"args": [
"--directory",
"/path/to/google-calendar-mcp-server-tutorial",
"run",
"main.py"
]
}
}
}Replace /path/to/google-calendar-mcp-server-tutorial with the actual path to your project directory.
On first run, a browser window will open for Google OAuth authentication. After authentication, a token.json file will be created to store your credentials.
Available Tools
The server exposes the following MCP tools:
Calendar Tools
Tool | Description |
| List all calendars in the user's calendar list |
| Get metadata for a specific calendar |
Event Tools
Tool | Description |
| List events from a calendar with optional filters |
| Get details of a specific event |
| Create a new calendar event |
| Update an existing event |
| Delete an event from a calendar |
Architecture
The project follows a layered architecture:
MCP Client (Claude Desktop)
↓
MCP Server (main.py + FastMCP)
↓
Tools (tools/) ←── Models (models/)
↓
Services (services/)
↓
Google Calendar APITools - Define MCP tools that Claude can call, using Pydantic models for input validation
Services - Handle business logic and Google Calendar API communication
Service Factory - Dependency injection for creating and caching service instances
Configuration
Configuration is managed through config.py:
Setting | Default | Description |
|
| Path to OAuth client secrets |
|
| Path to stored OAuth token |
|
| Path to log file |
|
| Logging level (configurable via |
Tech Stack
FastMCP - MCP server framework
Google API Python Client - Google Calendar API integration
google-auth-oauthlib - OAuth 2.0 authentication
Pydantic - Data validation and settings management
uv - Fast Python package manager
License
This project is for educational purposes.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- -license-quality-maintenanceEnables ChatGPT to interact with Google Calendar through a remote MCP server. Provides tools to list, create, update, and delete calendar events with OAuth authentication.Last updated
- Alicense-qualityDmaintenanceEnables interaction with Google Calendar through a unified MCP API for managing events, calendars, and related tools.Last updatedMIT
- Flicense-qualityDmaintenanceEnables seamless Google Calendar integration with MCP-compatible clients, allowing creation, viewing, updating, and deletion of calendar events via OAuth 2.0 authentication.Last updated
- Flicense-qualityDmaintenanceEnables interaction with Google Calendar via MCP, allowing users to list, get, search, and create events as well as list accessible calendars.Last updated
Related MCP Connectors
Hosted Google Calendar MCP server for AI agents. No self-hosting or Google Cloud setup.
Calendar API for AI agents: events, availability, Google/Microsoft setup, scheduling, and iCal.
AI-native scheduling: check availability, book meetings, cancel and reschedule via MCP
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/volodymyrkoval/fastmcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server