workspace-admin-mcp
Provides tools for administrative operations on Google Workspace, including user lifecycle management (suspend/restore) and group membership management (add/remove members), with read-only defaults, dry-run, and audit logging.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@workspace-admin-mcplist all suspended users in our domain"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
workspace-admin-mcp
An admin-oriented Model Context Protocol server for Google Workspace. It lets an LLM (Claude, or any MCP client) perform directory/admin operations — user lifecycle and group management — through natural language, with safety guardrails and full audit logging.
Most Workspace MCP servers are end-user focused (my Gmail, my Drive). This one is built for the admin — the person who onboards, offboards, and manages groups for the whole domain via the Admin SDK.
Why
Running Workspace admin at scale means living in the Admin SDK and tools like GAM: bulk operations, offboarding runbooks, group cleanups. Those are exactly the tasks an LLM is good at describing — but you can't hand an assistant the keys to suspend accounts without guardrails. This server is the safe middle layer:
Read-only by default. Write tools refuse unless you explicitly opt in.
Dry-run by default. Even with writes enabled, actions are simulated until you pass
dry_run=false.Audited. Every call — read, refused, simulated, or applied — emits a structured JSON audit line.
Related MCP server: MCP Google Workspace Server
Tools
Tool | Type | Description |
| read | List users; supports Admin SDK search ( |
| read | Get one user's directory profile |
| read | List groups, or the groups a user belongs to |
| read | List a group's members |
| guarded write | Suspend/restore a user (core offboarding step) |
| guarded write | Add a member to a group |
| guarded write | Remove a member from a group |
Architecture
Claude / MCP client ──MCP──▶ workspace-admin-mcp ──▶ Google Admin SDK ──▶ Workspace
│
guardrails ──▶ audit log (JSON, stderr)Full diagram and design notes in docs/architecture.md.
Quickstart (local)
git clone https://github.com/pizzacrustreviewer/GWS-MCP.git
cd workspace-admin-mcp
pip install -e ".[dev]"
pytest -q # tests run with no credentials (in-memory fake client)Run it against a real tenant
You need a Google Cloud service account with domain-wide delegation authorized for the directory scopes, and a Workspace admin to impersonate. Use a personal or developer tenant — never production/corporate.
cp .env.example .env # fill in the values, then:
export $(grep -v '^#' .env | xargs)
workspace-admin-mcp # starts on stdio for a local MCP clientConnect from Claude Desktop
{
"mcpServers": {
"workspace-admin": {
"command": "workspace-admin-mcp",
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "/absolute/path/service-account.json",
"WORKSPACE_ADMIN_SUBJECT": "admin@yourdomain.com",
"WORKSPACE_READ_ONLY": "true"
}
}
}
}Configuration
Env var | Default | Meaning |
| — | Path to the DWD service-account key JSON |
| — | Admin user to impersonate |
|
| Resolves to the admin's own domain |
|
| When true, all writes are refused |
|
| When true, enabled writes are simulated |
|
|
|
Deploy (optional)
The repo ships a Dockerfile and reference Terraform for Cloud Run (private ingress, least-privilege runtime SA, key mounted from Secret Manager). See terraform/. This is reference IaC — it only runs if you apply it against a project you own.
docker build -t workspace-admin-mcp .Security
Writes off by default; dry-run by default; explicit opt-in for both.
Least-privilege scopes (read scopes only unless writes are enabled).
No credentials in the image or repo;
.gitignoreblocks key files.Structured audit trail suitable for shipping to Cloud Logging.
Roadmap & limitations
This is v0.1 — the logic is complete and unit-tested; the live Admin SDK layer, pagination, and HTTP-transport auth are the next steps. See ROADMAP.md.
License
MIT — see LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/pizzacrustreviewer/workspace-admin-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server