Google Workspace MCP Server
Enables management of Google Workspace apps (Docs, Sheets, Gmail, Calendar, Drive) from the command line via Gemini CLI.
README
Google Workspace Extension for Gemini CLI
The Google Workspace extension for Gemini CLI brings the power of your Google Workspace apps to your command line. Manage your documents, spreadsheets, presentations, emails, chat, and calendar events without leaving your terminal.
Prerequisites
Before using the Google Workspace extension, you need to be logged into your Google account.
Installation
Install the Google Workspace extension by running the following command from your terminal:
gemini extensions install https://github.com/gemini-cli-extensions/workspace
Usage
Once the extension is installed, you can use it to interact with your Google Workspace apps. Here are a few examples:
Create a new Google Doc:
"Create a new Google Doc with the title 'My New Doc' and the content '# My New Document\n\nThis is a new document created from the command line.'"
List your upcoming calendar events:
"What's on my calendar for today?"
Search for a file in Google Drive:
"Find the file named 'my-file.txt' in my Google Drive."
Commands
This extension provides a variety of commands. Here are a few examples:
Get Schedule
Command: /calendar:get-schedule [date]
Shows your schedule for today or a specified date.
Search Drive
Command: /drive:search <query>
Searches your Google Drive for files matching the given query.
Headless / Remote Environments
If you're using the extension over SSH, WSL, Cloud Shell, or another environment without a local browser, you can authenticate using the headless login tool:
npm run auth-utils -- login
This prints an OAuth URL you can open in any browser (local machine, phone,
etc.). After signing in, paste the credentials JSON into the CLI. Credentials
are read securely from /dev/tty and are never exposed to the AI model. See the
development docs for more
details.
Deployment
If you want to host your own version of this extension's infrastructure, see the GCP Recreation Guide.
Resources
- Documentation: Detailed documentation on all the available tools.
- GitHub Issues: Report bugs or request features.
Important security consideration: Indirect Prompt Injection Risk
When exposing any language model to untrusted data, there's a risk of an indirect prompt injection attack. Agentic tools like Gemini CLI, connected to MCP servers, have access to a wide array of tools and APIs.
This MCP server grants the agent the ability to read, modify, and delete your Google Account data, as well as other data shared with you.
- Never use this with untrusted tools
- Never include untrusted inputs into the model context. This includes asking Gemini CLI to process mail, documents, or other resources from unverified sources.
- Untrusted inputs may contain hidden instructions that could hijack your CLI session. Attackers can then leverage this to modify, steal, or destroy your data.
- Always carefully review actions taken by Gemini CLI on your behalf to ensure they are correct and align with your intentions.
Contributing
Contributions are welcome! Please read the CONTRIBUTING.md file for details on how to contribute to this project.
📄 Legal
- License: Apache License 2.0
- Terms of Service: Terms of Service
- Privacy Policy: Privacy Policy
- Security: Security Policy
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.