Antigravity Google Workspace MCP Server
Allows reading, searching, drafting, sending, and trashing Gmail messages, including full thread content and CC/BCC support.
Allows listing upcoming events, creating meetings with attendees, and deleting or canceling calendar events.
Allows creating new Google Docs, reading document body text, and appending text or markdown content.
Allows searching files, reading plain text or markdown content, and trashing files in Google Drive.
Allows reading spreadsheet ranges, appending rows, and updating cell ranges in Google Sheets.
Allows listing tasks, creating tasks with due dates, completing tasks, and deleting tasks in Google Tasks.
Click on "Deploy 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., "@Antigravity Google Workspace MCP Serverschedule a team sync tomorrow at 10am and invite alex@example.com"
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.
๐ Antigravity Google Workspace MCP Server
Unified, High-Speed Model Context Protocol (MCP) Server for the Entire Google Workspace Ecosystem
๐ Table of Contents
Related MCP server: google-services-mcp
โจ Features
โก All-In-One Unified Server: A single lightweight Python MCP server providing access to 7 core Google Workspace services without juggling multiple server instances.
๐ฌ Full Gmail Operations: List messages, fetch full thread content, generate drafts, send emails, and trash spam.
๐ Bi-directional Calendar Sync: List upcoming events, create new schedules with attendee invites, and cancel events.
๐ Google Tasks Integration: Manage task lists, create tactical tasks with due dates, and mark completions.
๐ Google Drive & Docs Intelligence: Query files, read docs, create new Google Docs, and append content dynamically.
๐ Spreadsheets Engine: Read tabular data, append rows, and update spreadsheet cell ranges.
๐ Google Contacts Management: Search contact lists and create new address book entries.
๐ Zero-Leak Architecture: Local OAuth token caching with automated token refresh and strict gitignore isolation.
๐๏ธ System Architecture
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ AI CLIENT / HOST AGENT โ
โ (Antigravity CLI / Claude Desktop / Cursor) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ JSON-RPC (stdio)
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ANTIGRAVITY GOOGLE WORKSPACE MCP SERVER โ
โ (server.py / FastMCP) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ ๐ OAuth Token Engine (Auto-Refresh & Local Token Storage) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ ๐
Calendar โ ๐ฌ Gmail โ ๐ Drive & Docs โ ๐ Contacts โ
โ ๐ Tasks โ ๐ Sheets โ ๐ Auth Guard โ โก Error Filter โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ HTTPS (Google APIs v1/v3/v4)
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ GOOGLE WORKSPACE CLOUD PLATFORM โ
โ [ Gmail ยท Calendar ยท Tasks ยท Drive ยท Docs ยท Sheets ] โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ๐ ๏ธ Tool Catalog (22 Operations)
Service | MCP Tool Name | Description |
๐ Calendar |
| Fetch upcoming events with start/end limits |
| Schedule meetings with summary, times, and attendees | |
| Remove or cancel an existing calendar event | |
๐ Tasks |
| List active tasks from specified task list |
| Create new task with title, notes, and due date | |
| Mark a specific task item as completed | |
| Delete a task from Google Tasks | |
๐ฌ Gmail |
| Search emails with queries ( |
| Retrieve full headers, subject, and body of an email | |
| Prepare draft email without sending immediately | |
| Dispatch emails to recipients with CC/BCC support | |
| Move a message directly to trash | |
๐ Drive |
| Search files by name, MIME type, or full-text query |
| Read plain text / markdown content of Drive files | |
| Move files to Google Drive trash | |
๐ Docs |
| Create a new Google Document with initial title |
| Extract structured body text from a Google Doc | |
| Append text paragraphs or markdown content into Doc | |
๐ Sheets |
| Read 2D row/column data from a spreadsheet range |
| Append one or more rows to an active sheet | |
| Overwrite or update specific matrix cell ranges | |
๐ Contacts |
| List names, emails, and phone numbers in Contacts |
| Add new contact entry to Google Contacts |
๐ Quickstart & Setup
1. Prerequisites
Python 3.10+ installed
A Google Account with Google Cloud Platform access
2. Google Cloud OAuth Setup
Go to the Google Cloud Console.
Create a new project (e.g.
Antigravity-Workspace).Enable the following 7 APIs under APIs & Services > Library:
Google Calendar API
Tasks API
Gmail API
Google Drive API
Google Docs API
Google Sheets API
People API (Google Contacts)
Configure the OAuth Consent Screen:
User Type: External (or Internal for Workspace organizations).
Add your Google account as a Test User.
Create OAuth Credentials:
Navigate to Credentials > Create Credentials > OAuth Client ID.
Application Type: Desktop App.
Name:
Antigravity-Workspace-Client.
Download the generated client configuration JSON and save it as
credentials.jsonin the root of this project:cp ~/Downloads/client_secret_*.json ./credentials.json
3. Installation & Authentication
# 1. Clone the repository
git clone https://github.com/your-username/antigravity-google-workspace.git
cd antigravity-google-workspace
# 2. Install dependencies
pip install -r requirements.txt
# 3. Authenticate with Google
python auth_setup.pyA local browser window will open at http://localhost:8088. Sign in, grant permissions, and token.json will be saved locally.
โ๏ธ Client Configurations
Antigravity CLI
Add to your mcp_config.json or Antigravity MCP settings:
{
"mcpServers": {
"google-workspace": {
"command": "python",
"args": [
"C:\\Users\\<USER>\\.gemini\\google-workspace\\server.py"
]
}
}
}Claude Desktop
Add to %APPDATA%\Claude\claude_desktop_config.json (Windows) or ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
{
"mcpServers": {
"google-workspace": {
"command": "python",
"args": [
"/path/to/antigravity-google-workspace/server.py"
]
}
}
}๐ Security & Token Hygiene
Zero Hardcoded Secrets: Client secrets and live tokens are strictly isolated in
credentials.jsonandtoken.json.Git Ignored:
.gitignorestrictly blocks all tokens, secrets,.env, and session states from ever entering source control.Local Token Refresh: Expired tokens are refreshed automatically on the fly without storing plaintext credentials in memory.
๐ง Official Companion Skill & Autonomous Governance
This MCP server is natively governed and orchestrated by the gsuite skill from the antigravity-custom-skills suite.
๐ Skill Specification:
gsuite/SKILL.md๐ Master Skillpack Suite: Antigravity Custom Skills
๐ License
This project is open-source and licensed under the MIT License.
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server connecting AI agents to 100+ apps (Gmail, Slack, Notion, GitHub) via one-click OAuth.
Hosted Google Calendar MCP server for AI agents. No self-hosting or Google Cloud setup.
Let AI agents query data and act across all your business apps via MCP.
An agent-first office suite Claude & ChatGPT read and write over one MCP URL.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to send emails, create drafts in Gmail, and append content to Google Docs via standardized MCP tools.70 npmISC
- AlicenseBqualityAmaintenanceMCP server that gives AI agents direct access to Google services including Gmail, Calendar, Drive, and more, with multi-account OAuth support. Enables reading and sending email, managing calendar events, and interacting with Google files through natural language.6022 npm1MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to send Gmail emails, create drafts, and append content to Google Docs through MCP tools. Provides secure OAuth-based integration with Google Workspace.205 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to create and append to Google Docs and Sheets through MCP, including matrix-based row writes and dynamic text injection into document bodies.MIT