keyserfaty/mcp-google-workspace-admin
keyserfaty is a community-maintained (keyserfaty) entry covering Admin SDK (Directory), Gmail with read + write access and DWD: yes.
- access mode act
- read+act (list_users, create_user, reset_password, add_domain, list_domains)
- domain-wide delegation yes
- yes (service account with_subject)
- is_agentic client recommended
- recommended (own client)
- APIs covered (2)
- Admin SDK (Directory) Gmail
Verified from upstream tool definitions or official docs.
Supports or requires service account DWD.
Mark on your OAuth client in Cloud Console before Nov 12, 2026.
Deployment readiness
Single-user (1/6 core criteria yes, 0 partial)Uses a service account with DWD (with_subject), but runs as a local single-operator stdio server impersonating one static super-admin email (GOOGLE_WORKSPACE_ADMIN_EMAIL).
| Criterion | Value | Verified evidence | Source |
|---|---|---|---|
| auth_model Auth model (service account / DWD vs per-user OAuth) | yes | Uses service_account.Credentials.from_service_account_file with domain-wide delegation (creds.with_subject). | auth.py#L30 |
| multi_user Multi-user tenancy (one deployment serving many users) | no | Impersonates a single hardcoded GOOGLE_WORKSPACE_ADMIN_EMAIL env var for all Admin SDK calls. | auth.py#L23 |
| admin_controls Admin controls (allowlist / scope restriction / OU scope) | no | Hardcodes admin.directory.domain, admin.directory.user, and gmail.settings.sharing scopes with no allowlist or tool restriction. | auth.py#L14 |
| audit_trail Audit trail (logs which user/agent did what, exportable) | no | No caller attribution or audit logging in server.py; all actions log in Workspace under the single impersonated super-admin. | server.py#L25 |
| hosting Hosting posture (Google-hosted / container / streamable HTTP) | no | Runs FastMCP('workspace-admin') over default local stdio with no container or HTTP server configuration. | server.py#L25 |
| secrets_handling Secrets handling (managed store vs plaintext local disk) | no | Reads unencrypted service account private key JSON from local disk via GOOGLE_SERVICE_ACCOUNT_JSON. | auth.py#L22 |
| is_agentic_client_support is_agentic client support (docs on agentic OAuth flag) | no | No documentation on marking the GCP OAuth/service account client as is_agentic. | auth.py#L1 |
Verified MCP Tools & Capabilities (6)
Pinned commit / docs verification from capabilities.json. Every tool links to its source file and line or official documentation section.
| Product / API | Capability | State | MCP Tool Name | Source Evidence |
|---|---|---|---|---|
| users.settings.sendAs (+smimeInfo) | Manage send-as / S/MIME Named DKIM, but the code calls Gmail sendAs.smimeInfo.insert (S/MIME). DKIM tools return Admin console links; DKIM itself is not automated (no public DKIM API). | partial | generate_dkim_key | server.py:203 |
| users.list/get | List and look up users | works | list_users | server.py:144 |
| users.insert/update | Create or edit users Create only. | partial | create_user | server.py:107 |
| users.update password | Reset a password | works | reset_password | server.py:176 |
| domains | Manage domains | works | add_domain / list_domains / get_domain_status | server.py:32 |
| Server feature (server feature) | Act for many users via domain-wide delegation | works | — | auth.py:33 |
Role Tasks This Server Unlocks (6)
All 32 role tasksUpstream Repository & Feed Status
Changelog- GitHub repository
- keyserfaty/mcp-google-workspace-admin
- Repository state
- stale (236d since push)
- Last push / stars / open issues
- Atom feeds
- releases.atom commits.atom
Security Notes
Holds a DWD service account key (auth.py#L33). Covers domains (add_domain, list_domains, get_domain_status), users (list_users, create_user, reset_password), and Gmail S/MIME (generate_dkim_key calls sendAs.smimeInfo.insert; DKIM tools return Admin console links).
Credential Storage Posture
Service account key file
Agentic OAuth Client Policy (is_agentic)
OAuth client guide
Not enforced, recommended: set it on your own OAuth client; Google recommends marking agent clients before the lock (this server authenticates with a DWD service account key against Workspace REST APIs).
Declared OAuth 2.0 Scopes
| Declared Scope / Posture | Risk Level | Auditor Rationale |
|---|---|---|
| Admin Directory & Gmail sendAs scopes (auth.py#L15) | Privileged Directory Scope | Grants user/account directory inspection and potential account suspension or session revocation actions. |
Registry JSON Record
src/data/servers.json {
"name": "keyserfaty/mcp-google-workspace-admin",
"short_name": "keyserfaty",
"slug": "keyserfaty-mcp-google-workspace-admin",
"url": "https://github.com/keyserfaty/mcp-google-workspace-admin",
"maintainer": "keyserfaty",
"type": "community",
"type_detail": "community",
"status": "active",
"apis": [
"Admin SDK (Directory)",
"Gmail"
],
"scopes": [
"Admin Directory & Gmail sendAs scopes (auth.py#L15)"
],
"dwd": "yes",
"dwd_detail": "yes (service account with_subject)",
"access": "act",
"access_detail": "read+act (list_users, create_user, reset_password, add_domain, list_domains)",
"credential_storage": "Service account key file",
"last_commit": "2026-02-23",
"last_push": "2026-02-23T22:36:05Z",
"archived": false,
"archived_source": "https://api.github.com/repos/keyserfaty/mcp-google-workspace-admin",
"stale": true,
"days_since_push": 236,
"open_issues": 0,
"releases_feed": "https://github.com/keyserfaty/mcp-google-workspace-admin/releases.atom",
"commits_feed": "https://github.com/keyserfaty/mcp-google-workspace-admin/commits/main.atom",
"license": "MIT",
"is_agentic_notes": "Not enforced, recommended: set it on your own OAuth client; Google recommends marking agent clients before the 2026-11-12 lock (this server authenticates with a DWD service account key against Workspace REST APIs).",
"security_notes": "Holds a DWD service account key (auth.py#L33). Covers domains (add_domain, list_domains, get_domain_status), users (list_users, create_user, reset_password), and Gmail S/MIME (generate_dkim_key calls sendAs.smimeInfo.insert; DKIM tools return Admin console links).",
"featured": false,
"github_stars": 1,
"stars": 1,
"verified_on": "2026-10-18",
"last_verified": "2026-10-18",
"enterprise": {
"auth_model": {
"value": "yes",
"evidence": "Uses service_account.Credentials.from_service_account_file with domain-wide delegation (creds.with_subject).",
"source_url": "https://github.com/keyserfaty/mcp-google-workspace-admin/blob/b7f353f6fb00e2b818cf47a94ae71ecdca2fedc8/auth.py#L30"
},
"multi_user": {
"value": "no",
"evidence": "Impersonates a single hardcoded GOOGLE_WORKSPACE_ADMIN_EMAIL env var for all Admin SDK calls.",
"source_url": "https://github.com/keyserfaty/mcp-google-workspace-admin/blob/b7f353f6fb00e2b818cf47a94ae71ecdca2fedc8/auth.py#L23"
},
"admin_controls": {
"value": "no",
"evidence": "Hardcodes admin.directory.domain, admin.directory.user, and gmail.settings.sharing scopes with no allowlist or tool restriction.",
"source_url": "https://github.com/keyserfaty/mcp-google-workspace-admin/blob/b7f353f6fb00e2b818cf47a94ae71ecdca2fedc8/auth.py#L14"
},
"audit_trail": {
"value": "no",
"evidence": "No caller attribution or audit logging in server.py; all actions log in Workspace under the single impersonated super-admin.",
"source_url": "https://github.com/keyserfaty/mcp-google-workspace-admin/blob/b7f353f6fb00e2b818cf47a94ae71ecdca2fedc8/server.py#L25"
},
"hosting": {
"value": "no",
"evidence": "Runs FastMCP('workspace-admin') over default local stdio with no container or HTTP server configuration.",
"source_url": "https://github.com/keyserfaty/mcp-google-workspace-admin/blob/b7f353f6fb00e2b818cf47a94ae71ecdca2fedc8/server.py#L25"
},
"secrets_handling": {
"value": "no",
"evidence": "Reads unencrypted service account private key JSON from local disk via GOOGLE_SERVICE_ACCOUNT_JSON.",
"source_url": "https://github.com/keyserfaty/mcp-google-workspace-admin/blob/b7f353f6fb00e2b818cf47a94ae71ecdca2fedc8/auth.py#L22"
},
"is_agentic_client_support": {
"value": "no",
"evidence": "No documentation on marking the GCP OAuth/service account client as is_agentic.",
"source_url": "https://github.com/keyserfaty/mcp-google-workspace-admin/blob/b7f353f6fb00e2b818cf47a94ae71ecdca2fedc8/auth.py#L1"
}
}
}