Google Workspace MCP logo

Google Workspace MCP

by orvice

Google Workspace MCP is a Model Context Protocol server for managing Google Workspace resources through the Admin SDK. It provides tools for managing users, Gmail, and Calendar events.

View on GitHub

Last updated: N/A

What is Google Workspace MCP?

Google Workspace MCP is a server that provides tools for managing Google Workspace resources using the Admin SDK. It allows you to automate tasks such as user management, accessing Gmail messages, and managing calendar events.

How to use Google Workspace MCP?

To use Google Workspace MCP, you need to configure a Google Cloud Platform project with the Admin SDK API enabled, create a service account with appropriate permissions, and set the necessary environment variables. Build the application using make build and configure the mcpServers section with the correct path to the executable and environment variables. Ensure your service account has the necessary API access enabled in Google Cloud Console.

Key features of Google Workspace MCP

  • User management (listing and creating users)

  • Gmail message listing

  • Calendar event listing and creation

  • Integration with Google Workspace Admin SDK

  • Domain-wide delegation support

Use cases of Google Workspace MCP

  • Automating user provisioning and deprovisioning

  • Retrieving information about Gmail messages for auditing purposes

  • Scheduling and managing calendar events for users

  • Integrating Google Workspace with other applications

  • Programmatically managing Google Workspace resources

FAQ from Google Workspace MCP

What is a service account?

A service account is a special type of Google account intended to represent a non-human user that needs to authenticate and be authorized to access data in Google APIs.

What is domain-wide delegation?

Domain-wide delegation allows a service account to impersonate users in your Google Workspace domain.

What OAuth scopes are required?

The required OAuth scopes are https://www.googleapis.com/auth/admin.directory.user, https://www.googleapis.com/auth/gmail.readonly, and https://www.googleapis.com/auth/calendar.

How do I enable the Admin SDK API?

You can enable the Admin SDK API in the Google Cloud Console by searching for 'Admin SDK API' and enabling it for your project.

Where can I find the Google Cloud Console?

You can access the Google Cloud Console at console.cloud.google.com.