Google Workspace MCP Server
Enables searching, sending, drafting, and managing Gmail messages, labels, filters, and attachments.
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 the latest budget spreadsheet in my Drive"
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 Server
A personal MCP server giving AI assistants natural-language control over Gmail, Drive, Calendar, Docs, and Sheets.
What It Does
This server connects AI assistants to five Google Workspace services (Gmail, Drive, Calendar, Docs, Sheets) — 70+ tools behind a single MCP server, with OAuth 2.1 multi-user auth, three progressive tool tiers, read-only mode, a full CLI, and stateless container deployment. It runs locally over stdio for legacy clients and remotely over streamable HTTP with full implementation of the latest MCP spec.
Related MCP server: google-cli-mcp
Services
Quick Start
You'll need an OAuth client from Google Cloud Console with the relevant APIs enabled (Gmail, Drive, Calendar, Docs, Sheets).
# 1. Credentials
export GOOGLE_OAUTH_CLIENT_ID="..."
export GOOGLE_OAUTH_CLIENT_SECRET="..."
# 2. Run it (from a clone of this repo)
uv run main.py --tool-tier core # essential tools
uv run main.py --tool-tier extended # core + management ops
uv run main.py --tool-tier complete # everything
# Or cherry-pick services
uv run main.py --tools gmail drive calendarTool tiers keep context windows lean: core is the essential set, extended adds management operations, complete loads everything. Combine with --tools <service> ..., --read-only, or per-service --permissions.
Connect Your Client
Point any MCP client (Claude Desktop/Code, VS Code, etc.) at this server. For local stdio clients, add an entry like:
{
"mcpServers": {
"google-workspace": {
"command": "uv",
"args": ["run", "--directory", "/path/to/this/repo", "main.py"]
}
}
}For remote/HTTP clients, run uv run main.py --transport streamable-http and connect over http://localhost:8000/mcp.
CLI
workspace-cli lists and calls tools against a running server with encrypted, disk-backed OAuth token caching:
uv run workspace-cli list
uv run workspace-cli call search_gmail_messages query="is:unread" max_results=5Security Notes
Prompt injection is real. Emails, docs, and events can contain hidden instructions. Only connect trusted data to an LLM, and be deliberate about which write tools you enable.
Never commit
.env,client_secret.json, or.credentials/to source control.Local file reads are sandboxed to the managed attachment directory. Broaden with
ALLOWED_FILE_DIRSonly if you trust the client and its data sources;.env*,~/.ssh/,~/.aws/, and similar paths are always blocked.Production deployments should use HTTPS and OAuth 2.1.
Development
uv sync --group dev # install deps
uv run ruff check . # lint
uv run pytest # testSingle-file service modules live in gmail/, google_drive/, google_calendar/, google_docs/, google_sheets/; tools are registered with @server.tool decorators, and tiers are defined in core/tool_tiers.yaml.
License
MIT - see LICENSE.
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
- 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
- Flicense-qualityDmaintenanceAn MCP server that exposes 17 Google Workspace APIs (e.g., Gmail, Drive, Calendar) as auto-generated tools for AI assistants, enabling natural language control of Google services.Last updated
- Flicense-qualityDmaintenanceAn MCP server that enables AI assistants to interact with Google Docs, Sheets, and Drive using the user's own Google account.Last updated
- Alicense-qualityCmaintenanceA lightweight MCP server for managing Google Workspace services (Gmail, Calendar, Drive, Docs, Sheets, Slides) through natural language with AI assistants like Claude and Cursor.Last updated91MIT
Related MCP Connectors
Hosted Google Calendar MCP server for AI agents. No self-hosting or Google Cloud setup.
Person-owned, portable AI memory as a remote MCP server, readable and writable by any MCP client.
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
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/Svanik277373/MCP_Google'
If you have feedback or need assistance with the MCP directory API, please join our Discord server