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
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
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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