A comprehensive Model Context Protocol (MCP) server that provides read-only access to Google Drive meeting transcripts and Google Calendar events. This server enables AI assistants to search through meeting documents, analyze transcripts, and access calendar information to provide intelligent meeting insights.
- Search Meeting Transcripts: Full-text search across all meeting documents in a shared folder
- Get Meeting Content: Retrieve complete transcript content from Google Docs
- List Recent Meetings: Browse the most recently modified meeting documents
- Meeting Summaries: Generate basic summaries of meeting transcripts
- Upcoming Meetings: View scheduled meetings with attendee counts and details
- Meeting Attendees: Get detailed attendee information for specific meetings
- Date Range Search: Find meetings within specific date ranges
- Historical Analysis: Access past meeting data for trend analysis
- Intelligent Caching: KV-based caching to minimize API calls and improve response times
- Read-Only Access: All operations use read-only Google API scopes for maximum security
- OAuth 2.0 Authentication: Secure authentication flow with Google OAuth
- Error Handling: Comprehensive error handling with user-friendly messages
- Node.js 20 or higher
- Cloudflare Workers account
- Google Cloud Console project with API access
- Google Drive folder with meeting transcripts
- Google Calendar access
git clone https://github.com/your-username/google-services-mcp.git
cd google-services-mcp
npm install- Go to Google Cloud Console
- Create a new project or select an existing one
- Enable the following APIs:
- Google Drive API
- Google Calendar API
- Google Docs API
- Create OAuth 2.0 credentials:
- Go to Credentials → Create Credentials → OAuth 2.0 Client ID
- Application type: Web application
- Authorized redirect URIs:
https://your-worker-domain.workers.dev/callback
Update wrangler.jsonc with your configuration:
{
"vars": {
"GOOGLE_CLIENT_ID": "your-google-client-id",
"GOOGLE_CLIENT_SECRET": "your-google-client-secret",
"COOKIE_ENCRYPTION_KEY": "your-32-byte-base64-key",
"GOOGLE_DRIVE_FOLDER_ID": "your-shared-folder-id",
"GOOGLE_CALENDAR_ID": "primary"
}
}- Open Google Drive in your browser
- Navigate to your shared meetings folder
- The folder ID is the last part of the URL:
https://drive.google.com/drive/folders/FOLDER_ID_HERE
npm run deploynpm run devThe server will be available at http://localhost:8787
npm run type-checksrc/
├── index.ts # Main MCP server with all tools
├── google-handler.ts # OAuth authentication handler
├── utils.ts # Utility functions
├── workers-oauth-utils.ts # OAuth helper functions
├── services/
│ ├── google-drive.service.ts # Google Drive API wrapper
│ ├── google-calendar.service.ts # Google Calendar API wrapper
│ └── cache.service.ts # KV caching utilities
└── types/
└── env.d.ts # Environment type definitions
Search across all meeting documents in the configured folder.
Parameters:
query(string): Search query to find in meeting transcriptsfolderId(string, optional): Google Drive folder ID to search in
Example:
{
"query": "quarterly goals",
"folderId": "1A0n63cvNloB_h7c6SQpP0R8kzmZMOL9D"
}Retrieve the full content of a specific meeting transcript.
Parameters:
fileId(string): Google Drive file ID of the meeting transcript
List the most recently modified meeting documents.
Parameters:
folderId(string, optional): Google Drive folder IDlimit(number, optional): Number of recent meetings to return (default: 10)
Get upcoming meetings with details and attendee counts.
Parameters:
daysAhead(number, optional): Number of days ahead to look for meetings (default: 7)calendarId(string, optional): Google Calendar ID
Get detailed attendee information for a specific meeting.
Parameters:
eventId(string): Google Calendar event IDcalendarId(string, optional): Google Calendar ID
Find meetings within a specific date range.
Parameters:
startDate(string): Start date (YYYY-MM-DD)endDate(string): End date (YYYY-MM-DD)calendarId(string, optional): Google Calendar ID
- Add the MCP server to your Claude Desktop configuration:
{
"mcpServers": {
"meetings": {
"command": "node",
"args": ["path/to/google-services-mcp"],
"env": {
"GOOGLE_CLIENT_ID": "your-client-id",
"GOOGLE_CLIENT_SECRET": "your-client-secret"
}
}
}
}- Restart Claude Desktop
- The meeting tools will be available in your Claude conversations
The server implements intelligent caching to minimize API calls:
- File Lists: 5 minutes TTL
- File Content: 1 hour TTL
- Calendar Events: 5 minutes TTL
- File Metadata: 10 minutes TTL
- All API operations use read-only scopes
- OAuth tokens are securely stored and encrypted
- No ability to modify documents or calendar events
- All API calls are logged for audit purposes
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Commit your changes:
git commit -m 'Add amazing feature' - Push to the branch:
git push origin feature/amazing-feature - Open a Pull Request
The project includes a GitHub Actions workflow that automatically deploys to Cloudflare Workers when you push to the main branch.
Required GitHub Secrets:
CLOUDFLARE_API_TOKEN: Your Cloudflare API tokenCLOUDFLARE_ACCOUNT_ID: Your Cloudflare account ID
npm run deploy-
OAuth Redirect URI Mismatch
- Ensure your redirect URI in Google Cloud Console matches your worker domain
- Format:
https://your-worker.workers.dev/callback
-
Folder Not Found
- Verify your
GOOGLE_DRIVE_FOLDER_IDis correct - Ensure the service account has access to the folder
- Verify your
-
API Rate Limits
- The server implements caching to minimize API calls
- If you hit rate limits, increase cache TTL values
-
Authentication Issues
- Re-authenticate if you've changed OAuth scopes
- Check that all required APIs are enabled in Google Cloud Console
For local development, you can enable debug logging by setting:
export DEBUG=google-services-mcp:*This project is licensed under the MIT License - see the LICENSE file for details.
For questions and support:
- Open an issue on GitHub
- Check the troubleshooting section
- Review the Google APIs documentation