google-api-automation

thebunnygoyal/google-api-automation

3.2

If you are the rightful owner of google-api-automation and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The Model Context Protocol (MCP) server is a versatile platform designed to facilitate seamless integration and automation across various services, leveraging AI and intelligent workflows.

Tools
  1. google_api_execute

    Execute any Google API operation

  2. workflow_execute

    Run predefined workflows

  3. gmail_send_email

    Send emails via Gmail

  4. drive_operations

    Google Drive file operations

  5. calendar_operations

    Google Calendar management

Google API Automation Platform

The Ultimate Google APIs Integration Platform - Universal access to 280+ Google services through intelligent automation, MCP protocol, and AI-powered workflows.

License: MIT Node.js Version TypeScript Docker MCP Protocol

🎯 What is Google API Automation Platform?

The Google API Automation Platform (GAAP) is a comprehensive solution that provides unified access to Google's entire ecosystem of 280+ APIs through multiple interfaces:

  • πŸ€– MCP Server: Direct integration with AI assistants like Claude
  • 🌐 REST API: Traditional HTTP endpoints for any application
  • πŸ—£οΈ Natural Language: Plain English commands for API operations
  • ⚑ Workflow Engine: YAML-defined multi-step automation
  • πŸ”§ Universal Gateway: Single interface for all Google services

πŸš€ Quick Start

# Clone the repository
git clone https://github.com/thebunnygoyal/google-api-automation.git
cd google-api-automation

# Quick setup
chmod +x scripts/setup.sh
./scripts/setup.sh

# Configure your Google API credentials
cp .env.example .env
# Edit .env with your credentials

# Start the MCP server
npm run dev

# Test with a simple API call
curl -X POST http://localhost:3000/api/v1/tools/gmail_send_email \
  -H "Content-Type: application/json" \
  -d '{"to": "test@example.com", "subject": "Hello!", "body": "Sent via GAAP!"}'

πŸ“‹ Table of Contents

✨ Features

🌟 Universal Google API Access

  • 280+ Google APIs supported out of the box
  • Multi-authentication methods (OAuth 2.0, Service Accounts, API Keys)
  • Intelligent routing and automatic service discovery
  • Rate limiting and quota management
  • Error handling with exponential backoff

🧠 AI-Powered Automation

  • MCP Protocol support for AI assistant integration
  • Natural language command processing
  • Workflow orchestration with YAML definitions
  • Cross-service data correlation and automation
  • Intelligent caching and optimization

🏒 Enterprise-Ready

  • Production-grade reliability and scalability
  • Docker containerization with orchestration
  • Monitoring with Prometheus and Grafana
  • Security with encrypted credentials and access control
  • Compliance features for enterprise environments

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                    Client Interfaces                       β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  MCP Server  β”‚  REST API  β”‚  GraphQL  β”‚  WebSocket  β”‚  CLI  β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚                   Service Orchestrator                     β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Auth β”‚ Rate β”‚ Cache β”‚ Queue β”‚ Circuit β”‚ Metrics β”‚ Logging   β”‚
β”‚ Mgr  β”‚ Limitβ”‚ Layer β”‚ Mgr   β”‚ Breaker β”‚ Engine  β”‚ System    β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚                    Google APIs Layer                       β”‚
β”‚  Workspace β”‚ Cloud β”‚ Maps β”‚ AI/ML β”‚ YouTube β”‚ Android      β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Supported Google Service Categories

CategoryServicesAPIs Count
WorkspaceGmail, Drive, Docs, Sheets, Calendar, Meet45+
Cloud PlatformCompute, Storage, BigQuery, Pub/Sub, Functions120+
AI/MLGemini, Vertex AI, Vision, Speech, Translation25+
Maps PlatformMaps, Places, Directions, Geocoding15+
YouTube & MediaYouTube Data, Analytics, Live Streaming12+
Mobile & FirebaseAndroid, Firebase, Play Services35+
Analytics & AdsAnalytics, Ads, Search Console, AdSense20+
EnterpriseAdmin SDK, Identity, Security, Compliance8+

πŸ› οΈ Installation

Prerequisites

  • Node.js 18+
  • npm or yarn
  • Google Cloud Platform account
  • Redis (for caching and rate limiting)
  • Docker (optional, for containerized deployment)

Step-by-Step Setup

  1. Clone the repository

    git clone https://github.com/thebunnygoyal/google-api-automation.git
    cd google-api-automation
    
  2. Install dependencies

    npm install
    
  3. Configure environment

    cp .env.example .env
    # Edit .env with your Google API credentials
    
  4. Set up Google API credentials

    npm run setup:auth
    
  5. Build the project

    npm run build
    
  6. Start the server

    # Development
    npm run dev
    
    # Production
    npm start
    

βš™οΈ Configuration

Environment Variables

# Google API Configuration
GOOGLE_CLIENT_ID=your_oauth_client_id
GOOGLE_CLIENT_SECRET=your_oauth_client_secret
GOOGLE_REFRESH_TOKEN=your_refresh_token
GOOGLE_API_KEY=your_api_key
GOOGLE_SERVICE_ACCOUNT_PATH=./config/service-account.json

# Server Configuration
PORT=3000
NODE_ENV=development
LOG_LEVEL=info

# Redis Configuration
REDIS_URL=redis://localhost:6379

# Security
JWT_SECRET=your_jwt_secret
CORS_ORIGIN=*

πŸ“š Usage Examples

MCP Server Integration (Claude)

// The MCP server provides tools that Claude can use directly
// No additional setup required - just start the server!

// Claude can now:
// - Send emails via Gmail
// - Create and manage Google Drive files
// - Schedule calendar events
// - Run complex workflows
// - Access all 280+ Google APIs

REST API Usage

// Send an email
const response = await fetch('http://localhost:3000/api/v1/tools/gmail_send_email', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({
    to: 'recipient@example.com',
    subject: 'Hello from GAAP!',
    body: '<h1>Welcome!</h1><p>This email was sent via Google API Automation Platform.</p>'
  })
});

// Create a Google Drive folder
const folder = await fetch('http://localhost:3000/api/v1/tools/drive_operations', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({
    operation: 'create_folder',
    folder_name: 'Project Documents'
  })
});

// Schedule a calendar event
const event = await fetch('http://localhost:3000/api/v1/tools/calendar_operations', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({
    operation: 'create_event',
    summary: 'Team Meeting',
    start_time: '2025-07-15T10:00:00Z',
    end_time: '2025-07-15T11:00:00Z',
    attendees: ['team@company.com']
  })
});

πŸ“– API Reference

Available Tools

The MCP server provides the following tools:

Core Operations
  • google_api_execute - Execute any Google API operation
  • workflow_execute - Run predefined workflows
Workspace Tools
  • gmail_send_email - Send emails via Gmail
  • drive_operations - Google Drive file operations
  • sheets_operations - Google Sheets data operations
  • calendar_operations - Google Calendar management
  • docs_operations - Google Docs editing
Cloud Platform Tools
  • cloud_operations - GCP resource management
  • bigquery_operations - Data warehouse operations
  • storage_operations - Cloud Storage operations
AI/ML Tools
  • ai_operations - Translation, vision, speech processing
  • vertex_ai_operations - Custom ML model operations
Maps & Location Tools
  • maps_operations - Geocoding, directions, places
Media Tools
  • youtube_operations - YouTube content management
  • photos_operations - Google Photos management
Analytics Tools
  • analytics_operations - Google Analytics reporting
  • ads_operations - Google Ads campaign management

Authentication Methods

The platform supports multiple authentication methods:

  1. OAuth 2.0 - For user data access
  2. Service Accounts - For server-to-server operations
  3. API Keys - For public API access
  4. Application Default Credentials - For GCP environments

πŸ”„ Workflows

Workflows enable complex multi-step operations across Google services. They're defined in YAML and can include:

  • Conditional logic - Execute steps based on conditions
  • Parallel execution - Run multiple steps simultaneously
  • Error handling - Retry logic and fallback operations
  • Variable substitution - Dynamic parameter injection
  • Cross-service coordination - Chain operations across different APIs

Pre-built Workflows

  • Employee Onboarding - Complete new hire setup
  • Project Setup - Create project infrastructure
  • Content Publication - Multi-platform content distribution
  • Data Backup - Automated backup procedures
  • Report Generation - Automated reporting workflows

πŸš€ Deployment

Docker Deployment

# Using Docker Compose
docker-compose up -d

# Or build and run manually
docker build -t google-api-automation .
docker run -p 3000:3000 google-api-automation

Kubernetes Deployment

# Apply Kubernetes manifests
kubectl apply -f k8s/

# Or use Helm
helm install gaap ./helm-chart

πŸ“Š Monitoring

The platform includes comprehensive monitoring:

Metrics Dashboard

  • API Usage: Request counts, latency, error rates
  • Quota Monitoring: Google API quota utilization
  • System Health: CPU, memory, network usage
  • Business Metrics: Workflow success rates, user activity

Alerting

  • Quota Exhaustion: Warnings before hitting limits
  • Error Spikes: Unusual error rate increases
  • Performance: Latency threshold breaches
  • Security: Suspicious activity detection

🀝 Contributing

We welcome contributions! Please see our for details.

Development Setup

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Make your changes
  4. Add tests for new functionality
  5. Run the test suite: npm test
  6. Commit your changes: git commit -m 'Add amazing feature'
  7. Push to the branch: git push origin feature/amazing-feature
  8. Open a Pull Request

πŸ“„ License

This project is licensed under the MIT License - see the file for details.

πŸ™ Acknowledgments

πŸ“ž Support


Made with ❀️ for the Google API automation community

Transform how you interact with Google's ecosystem - one API call at a time.