Admin · 1 skill

Google Workspace MCP: connect it to Claude Code, plus ready-made skills

Read sign-in and third-party app activity from the Google Workspace Admin console, to see which paid tools people still open and which accounts sit unused.

How to connect Google Workspace MCP to Claude Code, Codex or Cursor

  1. MCP server. Google publishes no Admin SDK MCP server; community Workspace servers mostly cover Gmail, Drive and Calendar, not the Reports API.
  2. Admin SDK with OAuth. In a Google Cloud project, enable the Admin SDK API, create an OAuth client, and sign in as a Workspace admin with the read-only scopes https://www.googleapis.com/auth/admin.reports.audit.readonly and https://www.googleapis.com/auth/admin.directory.user.readonly. gcloud auth application-default login --scopes=... with those scopes works for an agent with a shell.
  3. Service account with domain-wide delegation for unattended runs: grant only the two read-only scopes above in Admin console > Security > API controls, and impersonate an admin.

These scopes read audit logs and the user list; they cannot change users or settings. A reseller or non-admin account gets a 403.

1 Google Workspace skill

What agents do with Google Workspace

The Admin SDK Reports API (https://admin.googleapis.com/admin/reports/v1/activity/users/all/applications/<application>) returns audit events for the whole domain. With applicationName=login it lists sign-ins per user; with applicationName=token it lists OAuth activity for third-party apps, so an app that users sign in to with Google shows up with its name and the people who used it. The Directory API (users.list) gives each user's lastLoginTime and whether the account is suspended, and the License Manager API lists who holds which Workspace license. Reports keep about six months of events.

Finance and IT schedule a monthly check of paid seats and apps against real use: tools with no OAuth activity in 60 days, Workspace licenses on accounts that have not signed in, and new apps people started using without anyone buying them.

workspace.google.com

Your Google Workspace numbers, on one board with everything else

Skills are free to use with any agent. Briefkin is where their results land: one board for every report, number and question your agents send, with a ping when something needs you.

Free during the open beta. No card.