Google Workspace MCP Server
Create, read, and modify Google Docs documents, including content insertion, deletion, and text extraction.
Browse, search, and manage files and folders in Google Drive, including Shared Drives, and export files to various formats.
Create, read, update, and manage Google Sheets spreadsheets, including cell values, formatting, and sheet copying.
Create, read, and modify Google Slides presentations, including batch updates and summarizing slide content.
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 Servercreate a new Google Sheet called 'Q4 Budget'"
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
MCP server for Google Slides, Sheets, Docs, and Drive. Enables AI assistants to create, read, and modify Google Workspace documents programmatically.
Quick Start
npm install
npm run build
npm run get-token # One-time OAuth setup
npm startRelated MCP server: Google Docs MCP Server
Configuration
Required Environment Variables
GOOGLE_CLIENT_ID=your_client_id
GOOGLE_CLIENT_SECRET=your_client_secret
GOOGLE_REFRESH_TOKEN=your_refresh_tokenOptional Module Toggles
All modules enabled by default. Set to false to disable:
ENABLE_SHEETS=false
ENABLE_SLIDES=false
ENABLE_DOCS=false
ENABLE_REVISIONS=falseDrive tools are always enabled (core functionality).
Claude Code Configuration
Add to your MCP settings:
{
"mcpServers": {
"google-workspace-mcp": {
"command": "node",
"args": ["/path/to/google-workspace-mcp/build/index.js"],
"env": {
"GOOGLE_CLIENT_ID": "your_client_id",
"GOOGLE_CLIENT_SECRET": "your_client_secret",
"GOOGLE_REFRESH_TOKEN": "your_refresh_token"
}
}
}
}Available Tools
Drive (always enabled)
Tool | Description |
| Create a folder in Google Drive |
| List files/folders with filtering, pagination, and sorting. Supports Shared Drives. |
| Get detailed metadata for a specific file (permissions, capabilities, owners) |
| Search Drive using query syntax (e.g., |
| Export Google Docs/Sheets/Slides to PDF, text, CSV, docx, etc. |
Sheets
Tool | Description |
| Create a new spreadsheet |
| Get spreadsheet metadata |
| Read cell values |
| Write cell values |
| Apply formatting/structural changes |
| Append rows |
| Extract all data |
| Copy sheet between spreadsheets |
Slides
Tool | Description |
| Create a new presentation |
| Get presentation metadata |
| Apply updates to slides |
| Get specific slide details |
| Extract text from all slides |
Docs
Tool | Description |
| Create a new document |
| Get document content |
| Insert/delete/format text |
| Extract text content |
Version History
Tool | Description |
| List document version history |
| Get revision details with restore instructions |
Security
OAuth Scopes
This server requests the minimum scopes needed:
Scope | Purpose |
| Create/edit Google Slides |
| Create/edit Google Sheets |
| Create/edit Google Docs |
| Browse, search, and read file metadata (including Shared Drives) |
| Export and manage files created by this app |
What This Server CAN Access
All Slides presentations in your account
All Sheets spreadsheets in your account
All Docs documents in your account
Drive file metadata, browsing, and search (including Shared Drives)
Export Google Workspace files to other formats (PDF, text, CSV, etc.)
What This Server CANNOT Access
Gmail, Calendar, or other Google services
Delete or permanently modify files you don't own
Your Google account password or 2FA settings
Security Best Practices
Never commit
.envfiles to version controlUse a dedicated Google Cloud project for this server
Review access at Google Account Permissions
Regenerate tokens with
npm run get-tokenif compromised
OAuth Setup
1. Enable APIs
Create or select a project
Enable: Slides API, Sheets API, Docs API, Drive API
2. Create Credentials
Go to APIs & Services > Credentials
Create OAuth client ID (Desktop app type)
Download client ID and secret
3. Configure Consent Screen
Add these scopes:
https://www.googleapis.com/auth/presentationshttps://www.googleapis.com/auth/spreadsheetshttps://www.googleapis.com/auth/documentshttps://www.googleapis.com/auth/drive.readonlyhttps://www.googleapis.com/auth/drive.file
4. Generate Refresh Token
# Add client ID and secret to .env first
npm run get-tokenThe refresh token is generated once and stored. Regenerate only if:
You change OAuth scopes
You revoke access from your Google account
You need to use a different account
Troubleshooting
"Request had insufficient authentication scopes"
Verify all 5 scopes are in your OAuth consent screen
Regenerate token:
npm run get-tokenRestart the MCP server
"API has not been used in project"
Enable the missing API in Google Cloud Console. The error message includes a direct link.
One service works but another doesn't
The token was generated without all scopes. Add missing scopes to consent screen and regenerate with npm run get-token.
Development
npm install # Install dependencies
npm run build # Compile TypeScript
npm run lint # Run ESLint
npm test # Run tests
npm run get-token # Generate OAuth tokenTesting with MCP Inspector
export $(cat .env | xargs) && npx @modelcontextprotocol/inspector node build/index.jsLicense
ISC
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.
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/VolksRat71/google-workspace-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server