We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/PranayChowdhury00/MCP_SERVER'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
README.mdā¢2.43 kB
# š 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](https://www.cursor.so/)** 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`](https://www.npmjs.com/package/@modelcontextprotocol/sdk) ā MCP server and transport
- [`googleapis`](https://www.npmjs.com/package/googleapis) ā Google Calendar API client
- [`zod`](https://www.npmjs.com/package/zod) ā Input validation
- [`dotenv`](https://www.npmjs.com/package/dotenv) ā Load `.env` files
---
## š Getting Started
### 1. Clone the repository
```bash
git clone https://github.com/your-username/mcp-calendar-tool.git
cd mcp-calendar-tool
```
2. Install dependencies
npm install
3. Create a .env file
GOOGLE_API_KEY=your_google_calendar_api_key
CALENDAR_ID=your_calendar_id_or_email
4. 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