Google Workspace Automation Builder MCP Server

Google Workspace Automation Builder MCP Server

Enables automation of Google Workspace tasks, including reading/writing sheets, generating Apps Script code, and creating webhook senders, with AI assistance via Claude.

Category
Visit Server

README

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

  1. read_sheet - Read data from Google Sheets
  2. write_sheet - Write data to Google Sheets
  3. generate_apps_script - Generate Apps Script code from natural language descriptions
  4. 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

Installation

  1. Clone or navigate to this directory
  2. Install dependencies:
npm install
  1. Copy the environment file and add your credentials:
cp .env.example .env
  1. Build the project:
npm run build

Configuration

Setting up Google Workspace API

  1. Go to Google Cloud Console
  2. Create a new project or select existing one
  3. Enable Google Sheets API and Google Apps Script API
  4. Create OAuth 2.0 credentials
  5. Add credentials to .env file

Setting up Anthropic API (Optional)

  1. Go to Anthropic Console
  2. Generate an API key
  3. Add to .env file as ANTHROPIC_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 email

Read 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 dev

Build for production:

npm run build

Project 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.md

Troubleshooting

Server not appearing in Claude Desktop:

  1. Check that the path in claude_desktop_config.json is correct
  2. Make sure you've run npm run build
  3. Restart Claude Desktop completely
  4. Check logs: tail -f ~/Library/Logs/Claude/mcp*.log

Authentication errors:

  1. Verify your Google Cloud credentials
  2. Make sure APIs are enabled
  3. Check that OAuth consent screen is configured

Next Steps

  1. Set up Google OAuth authentication
  2. Implement Claude API integration for script generation
  3. Add Apps Script deployment functionality
  4. Create template library
  5. Add more advanced tools

Contributing

Feel free to add new tools and features! The MCP SDK makes it easy to extend.

License

ISC

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured