Google Workspace Automation Builder MCP Server
Generates and deploys Google Apps Script code to automate Google Workspace tasks, such as processing sheet data and sending emails.
Provides tools to read and write data from Google Sheets, enabling automation workflows involving spreadsheet data.
Generates code to send Google Sheets data to webhooks for Make (formerly Integromat), enabling integration with Make's automation platform.
Generates code to send Google Sheets data to webhooks for Zapier, enabling integration with Zapier's automation platform.
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., "@Google Workspace Automation Builder MCP ServerRead data from my inventory sheet in Google Sheets"
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 Automation Builder MCP Server
A Model Context Protocol (MCP) server that helps you automate Google Workspace tasks, generate Apps Script code, and build workflows with AI assistance.
Features
Current Tools
read_sheet - Read data from Google Sheets
write_sheet - Write data to Google Sheets
generate_apps_script - Generate Apps Script code from natural language descriptions
create_webhook_sender - Generate code to send sheet data to webhooks (Zapier, Make, etc.)
Planned Features
Deploy Apps Script projects directly to Google
Create and manage time-based triggers
AI-powered workflow generation with Claude
Template library for common patterns
Multi-sheet operations
Advanced error handling and logging
Related MCP server: Google Workspace MCP Server
Installation
Clone or navigate to this directory
Install dependencies:
npm installCopy the environment file and add your credentials:
cp .env.example .envBuild the project:
npm run buildConfiguration
Setting up Google Workspace API
Go to Google Cloud Console
Create a new project or select existing one
Enable Google Sheets API and Google Apps Script API
Create OAuth 2.0 credentials
Add credentials to
.envfile
Setting up Anthropic API (Optional)
Go to Anthropic Console
Generate an API key
Add to
.envfile asANTHROPIC_API_KEY
Using with Claude Desktop
Add this server to your Claude Desktop configuration:
MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"google-workspace": {
"command": "node",
"args": [
"/Users/lindsayellis/Desktop/google-workspace-mcp/dist/index.js"
],
"env": {
"GOOGLE_CLIENT_ID": "your_client_id",
"GOOGLE_CLIENT_SECRET": "your_client_secret",
"GOOGLE_REFRESH_TOKEN": "your_refresh_token",
"ANTHROPIC_API_KEY": "your_anthropic_key"
}
}
}
}After adding the configuration, restart Claude Desktop.
Usage Examples
Generate a webhook sender script
Ask Claude:
Use the create_webhook_sender tool to generate a script that sends all data from my sheet to this Zapier webhook: https://hooks.zapier.com/hooks/catch/xxxxx/xxxxx/Generate custom Apps Script
Ask Claude:
Use generate_apps_script to create a script that:
- Runs every Monday at 9am
- Processes column A with AI
- Writes results to column B
- Sends a summary emailRead sheet data
Ask Claude:
Use read_sheet to get data from spreadsheet ID "1ABC...XYZ" range "Sheet1!A1:D10"Development
Run in development mode with auto-reload:
npm run devBuild for production:
npm run buildProject Structure
google-workspace-mcp/
├── src/
│ └── index.ts # Main MCP server
├── dist/ # Compiled JavaScript
├── .env # Your credentials (not committed)
├── .env.example # Template for credentials
├── package.json
├── tsconfig.json
└── README.mdTroubleshooting
Server not appearing in Claude Desktop:
Check that the path in
claude_desktop_config.jsonis correctMake sure you've run
npm run buildRestart Claude Desktop completely
Check logs:
tail -f ~/Library/Logs/Claude/mcp*.log
Authentication errors:
Verify your Google Cloud credentials
Make sure APIs are enabled
Check that OAuth consent screen is configured
Next Steps
Set up Google OAuth authentication
Implement Claude API integration for script generation
Add Apps Script deployment functionality
Create template library
Add more advanced tools
Contributing
Feel free to add new tools and features! The MCP SDK makes it easy to extend.
License
ISC
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect AI assistants to Google Sheets through controlled tools for reading and updating rows.
Give Claude only the Google Drive files you choose. Every action logged.
One workspace of tools for Claude and ChatGPT: connect 600+ apps, generate media, build tools.
Multiple Google accounts (Gmail, Calendar, Drive, Contacts, Tasks) in one Claude connector.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Google Workspace services (Gmail, Calendar, Drive, Docs, Sheets, Chat, Slides, People) through natural language using Claude Desktop, Claude Code CLI, and other MCP clients.336 npm3MIT
- AlicenseNot gradedqualityDmaintenanceEnables Claude Code to interact with Google Workspace services (Drive, Docs, Sheets, Slides, Forms, Gmail) via OAuth 2.0 authentication and natural language commands.1MIT
- FlicenseNot gradedqualityDmaintenanceEnables Claude to read, write, append, create, and clear Google Sheets data using natural language.-
- FlicenseBqualityCmaintenanceConnects Claude.ai to Google Sheets, allowing read, append, and update operations on spreadsheets directly from chat.3-