by aaronsb
A Model Context Protocol (MCP) server that provides authenticated access to Google Workspace APIs, offering integrated Authentication, Gmail, Calendar, and Drive functionality
# Add to your Claude Code skills
git clone https://github.com/aaronsb/google-workspace-mcpGuides for using mcp servers skills like google-workspace-mcp.
google-workspace-mcp is an open-source mcp servers skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by aaronsb. A Model Context Protocol (MCP) server that provides authenticated access to Google Workspace APIs, offering integrated Authentication, Gmail, Calendar, and Drive functionality. It has 200 GitHub stars.
google-workspace-mcp's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/aaronsb/google-workspace-mcp" and add it to your Claude Code skills directory (see the Installation section above).
google-workspace-mcp is primarily written in TypeScript. It is open-source under aaronsb on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other MCP Servers skills you can browse and compare side by side. Open the MCP Servers category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh google-workspace-mcp against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Give your AI agent real access to Google Workspace β Gmail, Calendar, Drive, Docs, Sheets, Tasks, Meet and Contacts β from one MCP server, across as many accounts as you have.
Search your mail, check your calendar, write a doc, file a task β in conversation, as yourself.
First, you need Google OAuth credentials β the one prerequisite common to every path:
Then pick the path that matches how you work. All three run the same server.
Node 22.12 or newer. (Node 18 and 20 are both end-of-life.)
.mcpb install (recommended)Download google-workspace-mcp.mcpb from the latest release, then drag it onto the Claude Desktop window, or double-click it.
Claude Desktop opens an install dialog with three fields:
| Field | |
|---|---|
| Google OAuth Client ID | required β from the step above |
| Google OAuth Client Secret | required β from the step above |
| Workspace Directory | optional β where attachments, downloads and exports land. Defaults to ~/.local/share/google-workspace-mcp/workspace/. Give it a dedicated folder β not your home, Documents, Desktop, or a Google Drive folder. |
Paste, hit Save, done. No JSON to edit, no Node to install, no paths to get right β the bundle carries the server and every dependency.
One bundle covers every platform β macOS (Intel and Apple Silicon), Linux (x64 and ARM64), and Windows. There is nothing to choose: the server is pure JavaScript, so there is no platform-specific payload to pick between.
Cross-platform note:
.mcpbfiles install via Claude Desktop's bundled handler. If double-clicking doesn't trigger Claude on your system, drag the file onto the Claude Desktop window instead, or right-click β "Open withβ¦" and pick Claude Desktop (then "always open with" if your OS offers). Behavior varies: macOS usually auto-associates, Windows may need a one-time association, Linux varies by desktop environment.
claude mcp add google-workspace \
-e GOOGLE_CLIENT_ID=your-client-id \
-e GOOGLE_CLIENT_SECRET=your-client-secret \
-- npx -y @aaronsb/google-workspace-mcp
That's it β no file to edit. Verify with /mcp.
Add an entry to the client's MCP config file (for Claude Desktop by hand, that's claude_desktop_config.json; for Claude Code, .mcp.json):
{
"mcpServers": {
"google-workspace": {
"command": "npx",
"args": ["-y", "@aaronsb/google-workspace-mcp"],
"env": {
"GOOGLE_CLIENT_ID": "your-client-id",
"GOOGLE_CLIENT_SECRET": "your-client-secret"
}
}
}
}
Or install it globally and point at the binary directly:
npm install -g @aaronsb/google-workspace-mcp
flowchart LR
human["π§ You<br>ask in plain language"]
agent["π€ Your AI agent<br>Claude Desktop, Claude Codeβ¦"]
server["βοΈ This MCP server<br>picks the right account,<br>builds the real request"]
keys[("π Your accounts<br>OAuth tokens, kept<br>on your own machine")]
google["βοΈ Google<br>Gmail Β· Calendar Β· Drive Β· Docs<br>Sheets Β· Tasks Β· Meet Β· Contacts"]
human -->|"βwhat's on my calendar?β"| agent
agent -->|"tool call"| server
server <-->|"which account?"| keys
server -->|"real API call, as you"| google
google -->|"your data"| server
server -->|"shaped for an agent<br>+ what to do next"| agent
agent -->|"an answer"| human
classDef person fill:#475569,color:#ffffff,stroke:#94a3b8
classDef robot fill:#2d7d9a,color:#ffffff,stroke:#4a5568
classDef ours fill:#7c3aed,color:#ffffff,stroke:#8b5cf6
classDef secrets fill:#2d8e5e,color:#ffffff,stroke:#4a5568
classDef external fill:#f6821f,color:#1a1a1a,stroke:#d97706
class human person
class agent robot
class server ours
class keys secrets
class google external
Your credentials never leave your machine. The server holds an OAuth token per account, on your own disk, and calls Google as you β there is no middleman service, no account of ours, nothing to sign up for. Add as many accounts as you like (personal and work, side by side); the server routes each request to the right one.
12 tools across 8 Google services, plus multi-account handling, per-account read-only access, bulk execution, content authoring, and a file sandbox.
| Tool | What It Does |
|---|---|
manage_email |
Gmail β search, read (plain or sanitized HTML), send, reply / reply-all, forward, triage, trash, drafts (list / delete), labels, threads, attachments |
manage_calendar |
Calendar β list, agenda, get, create, quickAdd (natural language), update, delete, calendars, freebusy |
manage_drive |
Drive β search, get, upload, download, copy, rename / move, delete, export, permissions, comments, view images |
manage_sheets |
Sheets β read / write ranges (row-numbered output), append, clear, manage tabs, copy / duplicate / rename |
manage_docs |
Docs β get, create, append, insert text, find-and-replace |
manage_tasks |
Tasks β list / create / update / complete tasks and task lists |
manage_meet |
Meet β create and configure meeting spaces, see who is in a call now, browse past conferences, participants, transcripts, recordings, smart notes |
manage_contacts |
Contacts β look people up in your saved contacts, the addresses you have only corresponded with, and your organization's directory; create, update and delete contacts |
manage_accounts |
Multi-account lifecycle β add accounts, manage credentials and scopes |
manage_scratchpad |
Compose / edit multi-line content (line- or JSON-path-addressed), attach files, send to any target; JSON mode live-syncs to Docs / Sheets |
manage_workspace |
File operations in the workspace sandbox (exchange point for attachments, downloads, exports) |
bulk_operations |
Do many things in one call β chain different operations in sequence with $N.field references, or apply one operation to many resources in a single Google request (queue_operations still works as an alias) |
Every response carries next-steps guidance, so the agent always knows what it can do next.
The useful part isn't any single operation β it's that your agent can string them together.
You ask for one thing. The agent works out that it needs four API calls, in order, each one feeding the next:
sequenceDiagram
autonumber
participant H as π§ You
participant A as π€ Your agent
participant S as βοΈ MCP server
participant G as βοΈ Google
H->>A: "file the invoice from Acme<br>and remind me to pay it Friday"
A->>S: find the email
S->>G: search Gmail
G-->>S: the message
S-->>A: found it β and here's what you can do next
A->>S: save the attachment
S->>G: download it
A->>S: put it in Drive
S->>G: upload
A->>S: create a task, due Friday
S->>G: Google Tasks
A-->>H: Done. Invoice filed, task set for Friday.
Two things make this work. Every response tells the agent what it can do next, so it isn't guessing at the next step. And bulk_operations lets it run a whole chain in one call, feeding each result into the next β so "find the invoice, file it, remind me" is a single round trip rather than four.
When the work is the same operation over many things, it can go further and use one Google request for all of them:
bulk_operations { mode: 'batch', tool: 'manage_email', operation: 'trash',
items: ['msg1', 'msg2', 'msg3', β¦ ] }
Two hundred messages trashed in one round trip instead of two hundred. This is narrow on purpose β it works only where Google publishes a method for it, which today is contacts (create, update, delete, get) and Gmail (trash, label changes). Ask for it anywhere else and the answer names the operations that can, and points you back at sequential mode, which works everywhere.
This server exposes 95 operations, reaching 79 of the 257 methods Google publishes across those eight APIs. It is a curated subset on purpose: an agent has to choose among these, and every method it must weigh is one it can pick wrongly. A tool with 257 operations isn't more capable than one with 95 β it's harder to use correctly.
But that judgement was made without you.
β Browse every method Google publishes
Every method is listed β what it does, whether we expose it, and a Request link that opens a pre-filled issue. The descriptions are Google's own, quoted verbatim, and the page is generated from the same specification the client is built from, so it can't drift from reality.
That page also lists three whole APIs this server doesn't touch yet β Chat, Slides and Forms β for the same reason: *n