google-workspace-mcp MCP Server
Google Workspace Admin via MCP. Manage users, groups, aliases, org units.
google-workspace-mcp scores 48 (Fair), licensed MIT and written in Python. It installs as a local process. It does not declare tools yet. Filed under Uncategorized. GitHub shows 0 stars. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Fair trust
48 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade C
60/100 for listing completeness. Lost points: no listed tools, short summary, no docs link.
How quality is graded
Where the 48 comes from
22 + 5 + 0 + 10 + 4 + 7 = 48. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 5 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "aringad-google-workspace-mcp": { "command": "uvx", "args": [ "google-workspace-admin-mcp" ], "env": { "GOOGLE_SERVICE_ACCOUNT_FILE": "YOUR_GOOGLE_SERVICE_ACCOUNT_FILE", "GOOGLE_ADMIN_EMAIL": "", "GOOGLE_CUSTOMER_ID": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
GOOGLE_SERVICE_ACCOUNT_FILESecret | Required | Path to Service Account JSON credentials |
GOOGLE_ADMIN_EMAIL | Required | Super admin email with domain-wide delegation |
GOOGLE_CUSTOMER_ID | Optional | Domain customer ID (default: my_customer) |
Tools
All capabilitiesTools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.
About
๐ง Google Workspace MCP Server
๐ฎ๐น Italiano | ๐ฌ๐ง English
Italiano
Server MCP (Model Context Protocol) per gestire Google Workspace tramite Claude AI e altri assistenti compatibili. Permette di amministrare utenti, gruppi, alias e unitร organizzative tramite conversazione naturale.
โจ Funzionalitร
| Tool | Descrizione |
|---|---|
gw_list_users | Lista utenti con ricerca e filtri |
gw_get_user | Dettaglio completo di un utente |
gw_create_user | Crea nuovo utente con password auto-generata |
gw_delete_user | Elimina utente (con conferma obbligatoria) |
gw_suspend_user | Sospendi o riattiva un utente |
gw_reset_password | Reset password con generazione automatica |
gw_manage_alias | Aggiungi, rimuovi, elenca alias email |
gw_list_groups | Lista gruppi del dominio o di un utente |
gw_manage_group_member | Aggiungi/rimuovi membri dai gruppi |
gw_list_org_units | Lista unitร organizzative |
gw_move_user_org | Sposta utente tra unitร organizzative |
๐ Prerequisiti
- Python 3.10+
- Account Google Workspace con accesso admin
- Progetto Google Cloud con Admin SDK API abilitata
- Claude Desktop o altro client MCP
๐ Installazione
pip install google-workspace-mcp
Oppure da sorgente:
git clone https://github.com/aringad/google-workspace-mcp.git
cd google-workspace-mcp
pip install -r requirements.txt
๐ Configurazione Google Cloud
1. Crea progetto e abilita API
- Vai su console.cloud.google.com
- Crea un nuovo progetto (o usa quello esistente)
- Vai su API e servizi โ Libreria
- Cerca e abilita: Admin SDK API
2. Crea Service Account
- Vai su API e servizi โ Credenziali
- Crea credenziali โ Account di servizio
- Dai un nome (es.
mcp-workspace-admin) - Vai nel Service Account โ Chiavi โ Aggiungi chiave โ JSON
- Scarica il file JSON (queste sono le tue credenziali)
- Annota il Client ID (numero lungo nei dettagli del Service Account)
โ ๏ธ Non serve assegnare ruoli IAM al Service Account. I permessi vengono dalla delega domain-wide.
3. Delega Domain-Wide
- Vai su admin.google.com
- Sicurezza โ Accesso e controllo dati โ Controlli API โ Gestisci delega a livello di dominio
- Clicca Aggiungi nuovo
- Inserisci il Client ID del Service Account
- Come ambiti OAuth, inserisci:
https://www.googleapis.com/auth/admin.directory.user,https://www.googleapis.com/auth/admin.directory.group,https://www.googleapis.com/auth/admin.directory.orgunit,https://www.googleapis.com/auth/admin.directory.user.alias
- Autorizza
โ๏ธ Variabili d'ambiente
| Variabile | Descrizione | Default |
|---|---|---|
GOOGLE_SERVICE_ACCOUNT_FILE | Path al file JSON delle credenziali | ./credentials.json |
GOOGLE_ADMIN_EMAIL | Email del super admin con delega | (obbligatorio) |
GOOGLE_CUSTOMER_ID | Customer ID del dominio | my_customer |
๐ Configurazione Claude Desktop
Aggiungi al file di configurazione:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"google_workspace": {
"command": "/percorso/completo/google-workspace-mcp/venv/bin/python",
"args": ["/percorso/completo/google-workspace-mcp/server.py"],
"env": {
"GOOGLE_SERVICE_ACCOUNT_FILE": "/percorso/completo/credentials.json",
"GOOGLE_ADMIN_EMAIL": "admin@tuodominio.it"
}
}
}
}
Chiudi completamente Claude Desktop (Cmd+Q su Mac) e riaprilo.
๐ข Configurazione multi-cliente
Puoi gestire piรน domini aggiungendo istanze separate:
{
"mcpServers": {
"gw_cliente_alfa": {
"command": "/percorso/venv/bin/python",
"args": ["server.py"],
"env": {
"GOOGLE_SERVICE_ACCOUNT_FILE": "/percorso/credentials-alfa.json",
"GOOGLE_ADMIN_EMAIL": "admin@alfa.it"
}
},
"gw_cliente_beta": {
"command": "/percorso/venv/bin/python",
"args": ["server.py"],
"env": {
"GOOGLE_SERVICE_ACCOUNT_FILE": "/percorso/credentials-beta.json",
"GOOGLE_ADMIN_EMAIL": "admin@beta.it"
}
}
}
}
๐ฌ Esempi d'uso
Una volta configurato, puoi dire a Claude:
- "Mostrami tutti gli utenti del dominio"
- "Crea un nuovo utente mario.rossi@dominio.it, nome Mario Rossi"
- "Sospendi l'utente luigi@dominio.it"
- "Resetta la password di marco@dominio.it"
- "Aggiungi l'alias info@dominio.it all'utente segreteria@dominio.it"
- "Aggiungi mario@dominio.it al gruppo vendite@dominio.it"
- "In che unitร organizzative รจ diviso il dominio?"
Puoi anche copiare direttamente l'email del cliente con la richiesta e Claude interpreterร automaticamente le operazioni da eseguire.
๐ Sicurezza
- Le credenziali del Service Account non vanno mai committate nel repository
- Le password temporanee generate sono di 16 caratteri con lettere, numeri e simboli
- Le operazioni distruttive (eliminazione) richiedono conferma esplicita
- Il Service Account opera con i soli permessi strettamente necessari
- Nessun dato viene memorizzato dal server MCP
๐งช Test
# Verifica che il server parta
python server.py --help
# Test con MCP Inspector
npx @modelcontextprotocol/inspector python server.py
English
MCP (Model Context Protocol) Server to integrate Google Workspace Admin with Claude AI and other compatible assistants. Manage users, groups, aliases and organizational units through natural conversation.
โจ Features
| Tool | Description |
|---|---|
gw_list_users | List users with search and filters |
gw_get_user | Full user details |
gw_create_user | Create new user with auto-generated password |
gw_delete_user | Delete user (requires explicit confirmation) |
gw_suspend_user | Suspend or reactivate a user |
gw_reset_password | Reset password with automatic generation |
gw_manage_alias | Add, remove, list email aliases |
gw_list_groups | List domain or user groups |
gw_manage_group_member | Add/remove group members |
gw_list_org_units | List organizational units |
gw_move_user_org | Move user between organizational units |
๐ Prerequisites
- Python 3.10+
- Google Workspace account with admin access
- Google Cloud project with Admin SDK API enabled
- Claude Desktop or another MCP client
๐ Installation
pip install google-workspace-mcp
Or from source:
git clone https://github.com/aringad/google-workspace-mcp.git
cd google-workspace-mcp
pip install -r requirements.txt
๐ Google Cloud Setup
1. Create project and enable API
- Go to console.cloud.google.com
- Create a new project (or use existing one)
- Go to APIs & Services โ Library
- Search and enable: Admin SDK API
2. Create Service Account
- Go to APIs & Services โ Credentials
- Create Credentials โ Service Account
- Name it (e.g.,
mcp-workspace-admin) - Go to the Service Account โ Keys โ Add Key โ JSON
- Download the JSON file (these are your credentials)
- Note the Client ID (long number in Service Account details)
โ ๏ธ No IAM roles needed on the Service Account. Permissions come from domain-wide delegation.
3. Domain-Wide Delegation
- Go to admin.google.com
- Security โ Access and data control โ API controls โ Manage Domain Wide Delegation
- Click Add new
- Enter the Service Account Client ID
- For OAuth scopes, enter:
https://www.googleapis.com/auth/admin.directory.user,https://www.googleapis.com/auth/admin.directory.group,https://www.googleapis.com/auth/admin.directory.orgunit,https://www.googleapis.com/auth/admin.directory.user.alias
- Authorize
โ๏ธ Environment Variables
| Variable | Description | Default |
|---|---|---|
GOOGLE_SERVICE_ACCOUNT_FILE | Path to credentials JSON file | ./credentials.json |
GOOGLE_ADMIN_EMAIL | Super admin email with delegation | (required) |
GOOGLE_CUSTOMER_ID | Domain customer ID | my_customer |
๐ Claude Desktop Configuration
Add to config file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"google_workspace": {
"command": "/full/path/to/google-workspace-mcp/venv/bin/python",
"args": ["/full/path/to/google-workspace-mcp/server.py"],
"env": {
"GOOGLE_SERVICE_ACCOUNT_FILE": "/full/path/to/credentials.json",
"GOOGLE_ADMIN_EMAIL": "admin@yourdomain.com"
}
}
}
}
Fully quit Claude Desktop (Cmd+Q on Mac) and reopen it.
๐ฌ Usage Examples
Once configured, you can tell Claude:
- "Show me all domain users"
- "Create a new user john.doe@domain.com, name John Doe"
- "Suspend user jane@domain.com"
- "Reset the password for mark@domain.com"
- "Add the alias info@domain.com to user secretary@domain.com"
- "Add john@domain.com to the sales@domain.com group"
- "What organizational units does the domain have?"
You can also paste client emails with requests directly โ Claude will automatically interpret the operations to perform.
๐ Security
- Service Account credentials must never be committed to the repository
- Temporary passwords are 16 characters with letters, numbers, and symbols
- Destructive operations (deletion) require explicit confirmation
- The Service Account operates with minimum necessary permissions
- No data is stored by the MCP server
๐งช Testing
# Verify server starts
python server.py --help
# Test with MCP Inspector
npx @modelcontextprotocol/inspector python server.py
๐ License
MIT License โ See LICENSE for details.
๐จโ๐ป Author
Developed by Mediaform s.c.r.l. โ Genova, Italy
Built with MCP and Google Admin SDK
Frequently asked questions
What is google-workspace-mcp MCP Server?
Google Workspace Admin via MCP. Manage users, groups, aliases, org units.
How do I install google-workspace-mcp MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. google-workspace-mcp MCP Server runs locally from the PyPI package google-workspace-admin-mcp with the command uvx google-workspace-admin-mcp.
Is google-workspace-mcp MCP Server free and open source?
Yes. google-workspace-mcp MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does google-workspace-mcp MCP Server support remote (HTTP) connections?
No remote endpoint is listed for google-workspace-mcp MCP Server. It runs locally on your machine over stdio, started by your MCP client.
How is google-workspace-mcp MCP Server's trust score calculated?
google-workspace-mcp MCP Server scores 48 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yetโBe the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.