google-calendar-mcp-server
Enables interaction with Google Calendar via MCP, allowing users to list, get, search, and create events as well as list accessible calendars.
README
Google Calendar MCP Server
A Model Context Protocol (MCP) server that provides access to Google Calendar.
Features
- List calendar events within a time range
- Get details of specific events
- Search events by text query
- Create new calendar events
- List all accessible calendars
Setup Instructions
1. Get Google Calendar API Credentials
- 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"
- Click "Enable"
- 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 credentials JSON file
- Save the credentials file as
~/.config/google-calendar-mcp/credentials.json
2. Install Dependencies
pip install -r requirements.txt
3. Configure MCP
Add this to your MCP configuration file (usually ~/.config/mcp/config.json or similar):
{
"mcpServers": {
"google-calendar": {
"command": "python",
"args": ["/path/to/google-calendar-mcp/server.py"]
}
}
}
4. First Run - Authentication
On the first run, the server will:
- Open a browser window for Google OAuth authentication
- Ask you to grant calendar access permissions
- Save the authentication token to
~/.config/google-calendar-mcp/token.json
Future runs will use the saved token automatically.
Docker Deployment
You can run the Google Calendar MCP Server in Docker for easier deployment and isolation. See DOCKER.md for comprehensive Docker setup instructions.
Quick Start:
- Authenticate locally first (one-time):
python server.py - Build and run:
docker-compose build && docker-compose up -d - Configure your MCP client to use:
docker exec -i google-calendar-mcp python -u server.py
See DOCKER.md for detailed instructions, troubleshooting, and advanced configurations.
Available Tools
list_events
List calendar events for a specified time range.
Parameters:
time_min(optional): Start time in ISO format (defaults to now)time_max(optional): End time in ISO format (defaults to end of today)max_results(optional): Maximum number of events (default: 10, max: 250)calendar_id(optional): Calendar ID to query (default: 'primary')
Example:
{
"time_min": "2026-01-22T00:00:00Z",
"time_max": "2026-01-22T23:59:59Z",
"max_results": 20
}
get_event
Get details of a specific calendar event.
Parameters:
event_id(required): The event IDcalendar_id(optional): Calendar ID (default: 'primary')
search_events
Search for calendar events by text query.
Parameters:
query(required): Text to search fortime_min(optional): Start time in ISO formattime_max(optional): End time in ISO formatmax_results(optional): Maximum results (default: 10)
create_event
Create a new calendar event.
Parameters:
summary(required): Event titlestart_time(required): Start time in ISO formatend_time(required): End time in ISO formatdescription(optional): Event descriptionlocation(optional): Event locationattendees(optional): Array of attendee email addressescalendar_id(optional): Calendar ID (default: 'primary')
Example:
{
"summary": "Team Meeting",
"start_time": "2026-01-23T10:00:00-06:00",
"end_time": "2026-01-23T11:00:00-06:00",
"description": "Weekly sync",
"location": "Conference Room A",
"attendees": ["colleague@example.com"]
}
list_calendars
List all calendars accessible to the user.
No parameters required.
Time Format Notes
- All times should be in ISO 8601 format
- Include timezone offset for accuracy (e.g.,
-06:00for Central Time) - UTC times should end with 'Z' (e.g.,
2026-01-22T17:00:00Z)
Troubleshooting
Authentication Issues
- Delete
~/.config/google-calendar-mcp/token.jsonand re-authenticate - Verify credentials.json is valid and in the correct location
- Check that Google Calendar API is enabled in Google Cloud Console
Permission Errors
- Ensure the OAuth consent screen is configured
- Add test users if the app is in testing mode
- Verify the scopes include calendar access
Security Notes
- Never commit
credentials.jsonortoken.jsonto version control - The token file contains refresh tokens that provide ongoing access
- Regularly review OAuth app permissions in Google Account settings
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。