mcp-google-workspace-agent
Provides tools for managing Google Calendar events, including creating, updating, deleting, searching, listing, checking availability, managing daily/weekly/monthly agendas, scheduling recurring events, adding attendees, Google Meet links, reminders, locations, descriptions, moving events, and watching for changes.
Provides tools for interacting with Google Sheets, such as creating spreadsheets, reading and writing cell ranges, appending rows, listing and adding tabs, clearing ranges, and retrieving spreadsheet info.
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., "@mcp-google-workspace-agentMove my 3 PM meeting to 5 PM"
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-Sheet Assistant — Full Edition (MCP + LLM)
A complete Google Calendar assistant. Not just "create a meeting" — every common calendar task, exposed as an MCP tool, chosen automatically by an LLM based on what you type.
User
│
▼
"Move my 3 PM meeting to 5 PM"
│
▼
OpenAI / GPT-OSS-120B
│
(Decides which tool(s) to call — can chain more than one)
│
▼
MCP Client (Python) ← client.py
│
Calls tool(s) through MCP protocol
│
▼
Google Calendar MCP Server ← server.py (14 tools)
│
Executes Google Calendar API ← calendar_utils.py
│
▼
Google Calendar
│
▼
Success / Event Details
│
▼
UserAll supported tasks
Task | Example prompt | Tool used |
Create event | "Schedule a meeting tomorrow at 3 PM." |
|
Update event | "Move my 3 PM meeting to 5 PM." |
|
Delete event | "Cancel tomorrow's interview." |
|
List events | "What are my meetings today?" |
|
Search events | "Find all AI meetings this month." |
|
Get event details | "Show details of my client meeting." |
|
Check free/busy | "Am I free between 2 PM and 4 PM?" |
|
Daily agenda | "What's on my schedule today?" |
|
Weekly agenda | "Show this week's calendar." |
|
Monthly agenda | "Show my August meetings." |
|
Recurring events | "Every Monday 10 AM team standup." |
|
Invite attendees | "Create meeting and invite abc@gmail.com." |
|
Add Google Meet link | "Create an online meeting." |
|
Set reminders | "Remind me 30 minutes before." |
|
Add location | "Meeting at Baner Office." |
|
Add description | "Agenda: Sprint Planning." |
|
List calendars | "Show all my calendars." |
|
Move event | "Move this event to my Work calendar." |
|
Import events | Bringing in an event from another system |
|
Watch calendar changes | Trigger the agent on new events |
|
Related MCP server: gworkspace-mcp
Project structure
google-calendar-sheet-mcp-/
├── server.py # MCP server — 15 Calendar tools + 8 Sheets tools
├── client.py # MCP client — LLM picks tool(s), can chain multiple calls
├── calendar_utils.py # All Google Calendar API logic + OAuth (token.json)
├── sheets_utils.py # All Google Sheets API logic + OAuth (token_sheets.json)
├── requirements.txt
├── .env.example
└── README.mdSetup
1. Google Cloud (one-time)
Google Cloud Console → create/select a project.
APIs & Services → Library → enable Google Calendar API AND Google Sheets API (search + enable both, same project).
OAuth consent screen → External → add your email as a test user.
Credentials → Create Credentials → OAuth client ID → Desktop app.
Download JSON → rename to
credentials.json→ place next toserver.py. (This one file is reused by bothcalendar_utils.pyandsheets_utils.py.)
2. Install
cd AI-AGENT
python3 -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt3. Configure
cp .env.example .env
# add GROQ_API_KEY (https://console.groq.com/keys)4. Run
python3 client.pyFirst run opens a browser to authorize Calendar access (saves token.json).
The first time you ask it to do anything with Sheets, a second
browser prompt appears — authorizing Sheets access separately (saves
token_sheets.json). This is expected: Calendar and Sheets are
different permissions, so they get separate consent + separate token
files, even though both use the same credentials.json app identity.
Google Sheets — setup notes & example prompts
Every Sheets tool needs a spreadsheet_id — the long string in a
sheet's URL, between /d/ and /edit:
https://docs.google.com/spreadsheets/d/1AbCdEfGhIjKlMnOpQrStUvWxYz/edit
└──────── this part ────────┘Example prompts:
"Create a new spreadsheet called 'Q3 Leads'." →
create_spreadsheet"In spreadsheet [id], what's in Sheet1 rows 1 to 10?" →
read_sheet"Add a row to spreadsheet [id]: Priya, priya@email.com, Contacted" →
append_sheet_row"Overwrite A1:B2 in [id] with these values..." →
write_sheet"What tabs does spreadsheet [id] have?" →
list_sheet_tabs"Add a new tab called 'August' to [id]." →
add_sheet_tab"Clear rows 2 to 50 in Sheet1 of [id]." →
clear_sheet_range"Give me the title and link for spreadsheet [id]." →
get_spreadsheet_info
Sharing note: the Google account you authorized with (whichever
one created token_sheets.json) needs edit access to any spreadsheet
you ask it to read/write — either it owns the sheet, or someone shared
it with that account.
How multi-step requests work
Some tasks need more than one tool call — e.g. "Move my 3 PM meeting to 5 PM"
requires first finding the event (no id was given), then updating it.
client.py handles this with a loop: it keeps letting the LLM call tools
back-to-back (find → then act) until the LLM has enough information to give
you a final plain-language answer. You'll see each intermediate tool call
printed, e.g.:
You: Move my 3 PM meeting to 5 PM
[client] LLM chose tool: search_events({'query': '3 PM'})
[client] LLM chose tool: update_event({'event_id': 'abc123', 'start_time': '...', 'end_time': '...'})
Assistant: Done — moved your meeting to 5:00–5:30 PM today.Recurring events — how RRULE works
schedule_event's recurrence argument takes standard iCalendar RRULE
strings. The LLM constructs these automatically, but for reference:
Every Monday:
RRULE:FREQ=WEEKLY;BYDAY=MOEvery weekday:
RRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FREvery day for 10 occurrences:
RRULE:FREQ=DAILY;COUNT=10Every month on the 1st:
RRULE:FREQ=MONTHLY;BYMONTHDAY=1
Watch calendar changes — important note
watch_calendar sets up Google push notifications, but Google will only
send them to a public HTTPS URL you control — not localhost. For
local development:
Run a tiny webhook receiver (Flask/FastAPI) that logs/handles the POST Google sends on changes.
Expose it publicly with a tunnel tool (e.g.
ngrok http 8000).Call
watch_calendarwith that publichttps://...ngrok.../webhookURL.The subscription expires (Google enforces a max TTL, typically up to ~7 days) — re-run
watch_calendarperiodically (e.g. a daily cron job) to keep it alive.
This part is the most "production infrastructure"-heavy feature here — the other 13 tools work immediately with no extra hosting required.
Testing the server alone (no LLM)
npx @modelcontextprotocol/inspector python3 server.pyLets you call any of the 14 tools directly from a browser UI to confirm the Calendar integration works before wiring up chat.
Troubleshooting
Problem | Fix |
| Complete Google Cloud setup step 1–5 |
| Delete |
LLM never calls a tool | Check |
Update/cancel says "event not found" | The LLM needs the real |
Wrong timezone on events | Set |
Recurring event didn't repeat as expected | Double check the RRULE the LLM generated — ask it to explain the rule if unsure |
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityFmaintenanceProvides tools for interacting with Gmail and Calendar APIs. This server enables you to manage your emails and calendar events programmatically through the MCP interface.Last updated831MIT
- AlicenseBqualityDmaintenanceAn MCP server for automating Google Workspace applications including Sheets, Apps Script, Drive, Docs, and Gmail. It enables users to manipulate spreadsheets, edit scripts, manage files, and send emails directly from conversational AI interfaces.Last updated31MIT
- Alicense-quality-maintenanceMCP server that lets AI agents manage Google Calendar -- create events, check availability, and manage schedules.Last updatedMIT
- Alicense-qualityDmaintenanceAn MCP server that enables AI assistants to interact with Google Calendar and Gmail, allowing users to manage events, send emails, and organize their inbox through natural language.Last updatedMIT
Related MCP Connectors
Hosted Google Calendar MCP server for AI agents. No self-hosting or Google Cloud setup.
MCP server for generating rough-draft project plans from natural-language prompts.
Markdown-first MCP server for Notion API with 8 composite tools and 39 actions.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/Parth-suryawanshi/mcp-google-workspace-agent'
If you have feedback or need assistance with the MCP directory API, please join our Discord server