MCP Google Calendar Integration
Integrates with the Google Calendar API to fetch calendar events for a given date.
📅 MCP Google Calendar Integration
This project is a Model Context Protocol (MCP) tool that connects with the Google Calendar API to fetch calendar events for a given date. It integrates seamlessly with AI-driven editors like Cursor to enhance your productivity by bringing live calendar data right into your coding environment.
🔧 Features
- 📆 Get calendar events for a specific date
- ⚡ Real-time integration using MCP
- 🧠 Natural language tool commands from inside your editor
- ✅ Simple schema validation using
zod - 🔒 Uses environment variables to keep sensitive info secure
📁 Project Structure
/MCP_SERVER │ ├── server.js # MCP server setup and calendar tool ├── .env # Environment variables (not committed) ├── package.json # Dependencies and scripts └── .mcp # MCP configuration file
📦 Technologies Used
@modelcontextprotocol/sdk– MCP server and transportgoogleapis– Google Calendar API clientzod– Input validationdotenv– Load.envfiles
🚀 Getting Started
1. Clone the repository
git clone https://github.com/your-username/mcp-calendar-tool.git
cd mcp-calendar-tool
- Install dependencies npm install
- Create a .env file GOOGLE_API_KEY=your_google_calendar_api_key CALENDAR_ID=your_calendar_id_or_email
- Run the server npm start
Usage Example (in Cursor)
🛠 MCP Configuration (.mcp)
{ "mcpServers": { "myCalenderData": { "command": "node", "args": ["server.js"], "env": { "GOOGLE_API_KEY": "your_api_key_here", "CALENDAR_ID": "your_calendar_id_here" } } } }
🔐 Notes on API Access
Make sure the Google Calendar API is enabled in your Google Cloud Console.
The calendar should be public or shared properly if using an API key.
🧭 Future Improvements
Add OAuth2 authentication for multiple users
Support recurring events and event descriptions
Integrate Google Tasks and reminders
📄 License
This project is open-source and available under the MIT License.
🙋♂️ Author
Pranay Chowdhury Frontend Developer | MERN Stack Enthusiast LinkedIn • GitHub
संबंधित सर्वर
Kone.vc
प्रायोजकMonetize your AI agent with contextual product recommendations
Bakaláři
Access data from the Bakaláři school system, including schedules, absences, and grades, through a standardized API.
Bear MCP Server
Allows AI assistants to read notes from the Bear note-taking app by connecting directly to its SQLite database.
Obsidian Semantic MCP Server
An AI-optimized MCP server for Obsidian that consolidates over 21 tools into 5 intelligent operations with contextual workflow hints.
What Do They Know?
UK Freedom of Information research, the UK's largest FOI request platform — search requests, read responses, look up public authorities, and draft new requests.
Kultur.dev
Cultural intelligence MCP server providing AI-powered cultural context analysis, localization guidance, and cross-cultural communication insights for 195 countries.
macOS Defaults
Read and write macOS user defaults and settings.
Miro
Miro MCP server, exposing all functionalities available in official Miro SDK.
2slides
This is the 1st, easiest, and cheapest PPT, slides, presentation AI generation MCP Server in the world.
GSuite
Interact with Google products, including Gmail and Calendar.
Claude Desktop MCP
An MCP server for integrating with the Claude Desktop application on macOS. Requires the Claude Desktop app to be installed and configured.