Google Workspace MCP Server
Provides tools for Gmail, including reading unread emails, searching emails, retrieving email details, drafting emails, and sending emails.
Provides integration with Google Workspace, offering MCP tools to manage Gmail, Calendar, Sheets, Drive, and Docs directly, enabling email operations, event scheduling, spreadsheet reading/writing, file search, and document content reading.
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., "@Google Workspace MCP ServerFind free slots tomorrow and book a 30-minute meeting."
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 Workspace MCP + Telegram AI Agent
A comprehensive learning project focused on exploring and applying modern AI Agent technologies, specifically integrating the Model Context Protocol (MCP) with Google Gemini API and a Telegram Bot.
This project transforms your Telegram into a smart, personal AI Assistant capable of engaging in natural language conversations and directly operating across your entire Google Workspace ecosystem (Gmail, Calendar, Sheets, Docs, Drive).
๐ฏ Learning Objectives
This project is meticulously designed to help you practice and understand the following core concepts:
Agentic AI & Tool Calling: Understanding how a Large Language Model (Gemini) analyzes user intent and autonomously decides to invoke external tools to accomplish complex tasks.
Model Context Protocol (MCP): Learning the latest open standard (from Anthropic/Google) that standardizes how AI models connect to external data sources and tools.
Related MCP server: mcp-google-calendar
๐๏ธ Tech Stack
Built with a modern, lightweight, and type-safe technology stack:
Layer | Technology | Purpose |
AI Brain | Google Gemini ( | Blazing-fast LLM Engine (gemini-3.1-flash-lite) responsible for Natural Language Understanding and Tool Calling. |
Tool Protocol | MCP SDK v2.0 ( | Defining and registering tools adhering to industry-standard protocols. |
Chat Interface | grammY ( | A robust Telegram Bot framework secured via an |
Integrations | Google APIs ( | Native interaction with Gmail, Calendar, Sheets, Drive, and Docs. |
Validation | Zod ( | Type-safe schema validation ensuring valid input data for MCP tools. |
Runtime | Node.js + TypeScript ( | Executing ES Modules natively without complex build steps. |
๐ How It Works (The Concept)
User Request: You send a message via Telegram (e.g., "Find my free slots next week and schedule a team sync").
Bot Middleware: The Telegram bot receives the message, validates your identity against the
ALLOWED_USER_IDSwhitelist, and forwards it to the AI Agent.Multi-Turn Tool Calling Loop:
Gemini deduces the intent and issues a function call to
get_calendar_events.The Agent executes the tool via the MCP Server registry.
The MCP Server authenticates with Google via OAuth tokens and makes the respective Google API request.
The calendar data is returned to Gemini.
Gemini analyzes the data, calls
find_free_slots, and subsequently callscreate_calendar_eventto book the meeting.
Final Response: The AI Agent synthesizes the results and sends a final, human-readable response back to you on Telegram.
๐ฆ 13 Built-in MCP Tools
This project abstracts complex Google APIs into 13 LLM-friendly MCP tools:
๐ง Gmail:
get_unread_emails,search_emails,get_email_detail,draft_email,send_email.๐ Calendar:
get_calendar_events,find_free_slots,create_calendar_event,update_calendar_event.๐ Sheets:
read_sheet,append_sheet_row.๐ Drive/Docs:
search_drive_files,read_doc_content.
โ๏ธ Setup Instructions
1. Prerequisites
Node.js 20+
A Google Cloud Project (with Gmail, Calendar, Sheets, Docs, and Drive APIs enabled).
OAuth 2.0 Client ID (configured as a Desktop Application).
Telegram Bot Token (obtained from @BotFather).
Gemini API Key.
2. Environment Configuration
Copy the environment template and fill in your details:
cp .env.example .envProvide your OAuth Client credentials, Bot Token, Gemini API Key, andโmost importantlyโyour ALLOWED_USER_IDS (your Telegram User ID to prevent unauthorized access).
3. Install Dependencies
npm install4. Run the Project
npm run devDuring the initial startup, the system will open a browser window requesting Google account authorization. Your OAuth credentials will be securely saved locally in
credentials/tokens.json.
๐ License
This project was built for educational and personal use. Please keep your .env and tokens.json files strictly confidential.
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
- FlicenseBqualityAmaintenanceMCP server integrating multiple Google Workspace services including Gmail, Calendar, Drive, Sheets, Docs, Tasks, People, Forms, and Slides, enabling users to manage emails, events, files, documents, and more through natural language.15
- Alicense-qualityCmaintenanceEnables LLMs to manage Google Calendar events and Google Tasks through a set of MCP tools.162MIT
- Alicense-qualityBmaintenanceEnables AI agents to send emails, create drafts in Gmail, and append content to Google Docs via standardized MCP tools.34ISC
- Alicense-qualityFmaintenanceEnables AI agents and Telegram bots to read and send Gmail messages via MCP with OAuth authentication.65MIT
Related MCP Connectors
Hosted Google Calendar MCP server for AI agents. No self-hosting or Google Cloud setup.
Telegram bridge for your MCP-compatible agent. Bidirectional, no LLM in our stack.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
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/TaiVo1905/google-workspace-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server