thebunnygoyal/google-api-automation
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.
google_api_execute
Execute any Google API operation
workflow_execute
Run predefined workflows
gmail_send_email
Send emails via Gmail
drive_operations
Google Drive file operations
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.
π― 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
- Architecture
- Installation
- Configuration
- Usage Examples
- API Reference
- Workflows
- Deployment
- Contributing
- License
β¨ 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
Category | Services | APIs Count |
---|---|---|
Workspace | Gmail, Drive, Docs, Sheets, Calendar, Meet | 45+ |
Cloud Platform | Compute, Storage, BigQuery, Pub/Sub, Functions | 120+ |
AI/ML | Gemini, Vertex AI, Vision, Speech, Translation | 25+ |
Maps Platform | Maps, Places, Directions, Geocoding | 15+ |
YouTube & Media | YouTube Data, Analytics, Live Streaming | 12+ |
Mobile & Firebase | Android, Firebase, Play Services | 35+ |
Analytics & Ads | Analytics, Ads, Search Console, AdSense | 20+ |
Enterprise | Admin SDK, Identity, Security, Compliance | 8+ |
π οΈ 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
-
Clone the repository
git clone https://github.com/thebunnygoyal/google-api-automation.git cd google-api-automation
-
Install dependencies
npm install
-
Configure environment
cp .env.example .env # Edit .env with your Google API credentials
-
Set up Google API credentials
npm run setup:auth
-
Build the project
npm run build
-
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 operationworkflow_execute
- Run predefined workflows
Workspace Tools
gmail_send_email
- Send emails via Gmaildrive_operations
- Google Drive file operationssheets_operations
- Google Sheets data operationscalendar_operations
- Google Calendar managementdocs_operations
- Google Docs editing
Cloud Platform Tools
cloud_operations
- GCP resource managementbigquery_operations
- Data warehouse operationsstorage_operations
- Cloud Storage operations
AI/ML Tools
ai_operations
- Translation, vision, speech processingvertex_ai_operations
- Custom ML model operations
Maps & Location Tools
maps_operations
- Geocoding, directions, places
Media Tools
youtube_operations
- YouTube content managementphotos_operations
- Google Photos management
Analytics Tools
analytics_operations
- Google Analytics reportingads_operations
- Google Ads campaign management
Authentication Methods
The platform supports multiple authentication methods:
- OAuth 2.0 - For user data access
- Service Accounts - For server-to-server operations
- API Keys - For public API access
- 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
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature
- Make your changes
- Add tests for new functionality
- Run the test suite:
npm test
- Commit your changes:
git commit -m 'Add amazing feature'
- Push to the branch:
git push origin feature/amazing-feature
- Open a Pull Request
π License
This project is licensed under the MIT License - see the file for details.
π Acknowledgments
- Model Context Protocol for the MCP specification
- Google APIs for comprehensive API documentation
- Anthropic for Claude and AI assistant innovations
- All contributors who make this project possible
π Support
- Documentation:
- Examples:
- Issues: GitHub Issues
- Discussions: GitHub Discussions
Made with β€οΈ for the Google API automation community
Transform how you interact with Google's ecosystem - one API call at a time.