A server that integrates Google Calendar with n8n using Server-Sent Events (SSE).
Google Calendar Integration with MCP Server
Overview
This project implements an MCP server that integrates Google Calendar with n8n using Server-Sent Events (SSE). It allows users to manage and synchronize calendar events seamlessly within their workflow automation.
Prerequisites
- Node.js 18+
- Google Cloud Console account with Google Calendar API enabled
- Easypanel (or another Docker environment) for hosting
- n8n with the
n8n-nodes-mcp
package installed
Configuration in Google Cloud Console
- Create a project in the Google Cloud Console.
- Enable the Google Calendar API:
- Go to "APIs & Services" > "Library".
- Search for "Google Calendar API" and click "Enable".
- Create an OAuth 2.0 client:
- Go to "APIs & Services" > "Credentials".
- Click "Create Credentials" > "OAuth 2.0 Client IDs".
- Select "Web application".
- Add the
redirect_uri
(e.g., https://sua-url/auth/callback
) in "Authorized redirect URIs".
- Copy the
Client ID
and Client Secret
.
Installation on Easypanel
- Clone the repository:
shell
git clone https://github.com/2BX-git/mcp-calendar-server.git
cd mcp-calendar-server
- Configure the environment variables in Easypanel:
BASE_URL=https://sua-url
GOOGLE_CLIENT_ID=seu-client-id.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=seu-client-secret
PORT=3001
- Deploy the service:
- Configure the service to use the Dockerfile.
- Click "Deploy".
Usage
Once deployed, the MCP Calendar Server will allow you to:
- Synchronize Google Calendar events with n8n workflows.
- Trigger automation based on calendar events.
- Manage events programmatically through the MCP server.
Resources
Languages
- JavaScript (70.4%)
- Shell (27.4%)
- Dockerfile (2.2%)