Google Workspace Admin Security Audit MCP logo

Google Workspace Admin Security Audit MCP

Audits Google Workspace accounts, activity, Gmail, Drive sharing, groups, DMARC, and admin actions through read-only MCP tools.

Install Google Workspace Admin Security Audit MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "google-workspace-admin-security-audit-mcp": {
      "command": "uvx",
      "args": [
        "gwsadm-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

Google Workspace Admin Security-Audit MCP provides read-only security investigations across the Google Workspace Admin SDK, Reports API, Directory API, Gmail API, Groups Settings API, and public status feed. Its tools cover account suspensions, suspicious logins, OAuth grants, per-user activity, source-IP activity, Gmail traces, DMARC reports, group delivery policies, Drive sharing, shared-drive membership, administrator actions, and Workspace incidents. Domain-specific results can be partial when scopes are missing, APIs fail, or pagination limits are reached, with errors and coverage indicators returned in the results. Reach for it during account-compromise response, mail-delivery investigations, external-sharing review, and tenant-wide security briefings.

Use cases

  • Investigate accounts auto-disabled or flagged by Google
  • Compare suspended Workspace users with downstream identity-provider state
  • Trace a known email across selected user mailboxes
  • Review external Drive sharing and shared-drive membership changes
  • Assemble a daily security brief across configured domains

Key features

  • Read-only Workspace security and audit investigations
  • Per-user, per-IP, per-domain, and tenant-wide queries
  • Gmail message tracing and DMARC aggregate analysis
  • External Drive-sharing and shared-drive audit coverage
  • Background execution for large daily briefs
  • Explicit partial, capped, and error reporting

Tools21

What Google Workspace Admin Security Audit MCP lets your agent do. Expand a tool for its parameters.

Verified live~12.8k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

15/15 checks healthy over the last 77d

What it can do

From the 21 tools this server returned when we ran it.

Can delete or modify data · 3Handles credentials · 10Makes network requests · 8Read-only tools · 18
Network at startup2 connections
Files written at startup30

Observed 2026-11-09 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 13d ago via OSV.dev · gwsadm-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit15d agoMost recent push to the default branch.
Tools exposed21Callable tools this server registers over MCP.

How Google Workspace Admin Security Audit MCP works

What Google Workspace Admin Security-Audit MCP does

Google Workspace Admin Security-Audit MCP gives an AI agent a read-only investigation surface for configured Google Workspace domains. It is designed for security and operational questions rather than general Workspace automation: which accounts Google locked, whether a user is suspended now, what an account or source IP did, where a known message exists, which files became externally accessible, or whether an administrator changed a setting.

The server also combines related checks. compromise_sweep joins account activity, current account state, OAuth grants, source-IP reuse, Gmail settings, and sent-mail metadata. daily_brief aggregates login findings, account-protection changes, and Drive exposure across domains. daily_brief_start and daily_brief_result provide the same brief through a background job for larger tenants.

How it works

Reports API audit activity is the main data source for login events, account activity, source-IP searches, Drive changes, shared-drive membership, and administrator actions. Directory API calls provide current users, suspended-account snapshots, OAuth grants, and group membership. Gmail reads are used for mailbox-specific message tracing, DMARC aggregate reports, and selected compromise-response mailbox settings. Group policies come from the Groups Settings API, while workspace_status reads Google's public status dashboard without credentials.

Most operations impersonate an administrator or a specific Workspace user through domain-wide delegation. Results are separated by domain where possible. The tools expose operational coverage details such as capped, date_errors, per-application errors, and partial Gmail sections so callers can distinguish an empty result from incomplete collection.

Setup and configuration

Configure one section for each Workspace domain the server should inspect. Domain routing generally comes from an account or group address; an explicit domain argument is available when an alias or secondary domain does not have its own configuration section.

Grant domain-wide delegation to the service account client ID in the Google Admin console. The required scopes depend on the tool:

  • admin.reports.audit.readonly covers audit activity and administrator-action tools.
  • admin.reports.usage.readonly is needed for domain-level Gmail usage totals.
  • admin.directory.user.readonly covers current user state and suspended-account listings.
  • admin.directory.user.security covers user OAuth-token inspection.
  • gmail.readonly is required for mailbox searches, DMARC RUA processing, and Gmail settings reads.
  • apps.groups.settings, admin.directory.group.readonly, and admin.directory.group.member.readonly cover group policy and membership checks.

The usage, Gmail, group, and Directory grants are separate. A domain may therefore return useful results for one tool while reporting a scope error for another.

Optional site and IP-geolocation datasets are referenced through GWSADM_SITES_INI and GWSADM_IP2ASN; health_check reports whether those datasets are configured. The daily brief can use home-country settings to classify account-protection changes by origin.

Tools and capabilities

  • Check service health and per-domain authentication or API reachability with health_check.
  • Investigate Google-generated account locks, suspicious logins, and failure rankings with login_audit.
  • Compare current suspended users with a downstream identity provider using suspended_accounts and get_user.
  • Inspect OAuth grants, merged user activity, source-IP activity, and compromise findings with user_oauth_tokens, user_activity, ip_activity, and compromise_sweep.
  • Trace a known RFC 822 Message-ID across up to 50 specified mailboxes with gmail_message_trace.
  • Review DMARC aggregate reports, Gmail traffic totals, and selected mailbox settings or sent-mail metadata.
  • Examine group posting policy and membership, external Drive grants, document history, shared-drive membership changes, and Admin console actions.
  • Check declared Google incidents with workspace_status and produce a cross-domain daily_brief.

Limitations and notes

The server does not change account, group, Drive, or mail state. Message tracing reports whether a matching message currently exists in a searched mailbox; it cannot distinguish deletion from non-delivery. DMARC and mailbox tools read metadata or aggregate reports rather than message bodies.

Reports data can lag, especially for current-day activity. Pagination caps make counts lower bounds, and a failed application or domain is reported separately rather than treated as no activity. Gmail usage is domain-level and date-based, not a per-user or per-message volume report. gmail_message_trace checks only the recipients supplied by the caller, and drive_doc_activity cannot prove that a document does not exist when no events are returned.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Google Workspace Admin Security Audit MCP

Google Workspace Admin Security-Audit MCP is an MCP server that connects AI agents to Google Workspace Admin, Reports, Directory, Gmail, and Groups APIs. Its main tools audit logins, account state, user activity, OAuth grants, Gmail delivery, DMARC, Drive sharing, group policy, shared-drive changes, and administrator actions in read-only workflows.

Installation requires configuring the server with one section per Workspace domain and granting the domain-wide delegation scopes required by the tools you plan to call.

The required scope depends on the tool. Audit activity uses `admin.reports.audit.readonly`; usage uses `admin.reports.usage.readonly`; user state uses `admin.directory.user.readonly`; OAuth grants use `admin.directory.user.security`; Gmail mailbox operations use `gmail.readonly`; and group tools require their corresponding Groups Settings or Directory group scopes.

Yes, `gmail_message_trace` searches the mailboxes of specified recipients for a known RFC 822 Message-ID, including Spam and Trash. It reports whether a matching message currently exists and returns metadata, but it cannot determine whether a missing message was deleted or never delivered.

Use `daily_brief_start` instead of the synchronous `daily_brief` when a large tenant may exceed a client timeout. Poll `daily_brief_result` with the returned job ID until the status is `done` or `error`; the completed payload appears under `result`.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGoogle Workspace Admin Security Audit MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/google-workspace-admin-security-audit-mcp?style=directory)](https://allmcps.com/mcp/google-workspace-admin-security-audit-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/google-workspace-admin-security-audit-mcp"><img src="https://allmcps.com/api/badge/google-workspace-admin-security-audit-mcp?style=directory" alt="Google Workspace Admin Security Audit MCP on AllMCPs" /></a>