Back to Browse

Google Workspace MCP Server

Developer ToolsLow Risk10.0MCP RegistryLocal
Free

Server data from the Official MCP Registry

Google Workspace Admin via MCP. Manage users, groups, aliases, org units.

About

Google Workspace Admin via MCP. Manage users, groups, aliases, org units.

Security Report

10.0
Low Risk10.0Low Risk

Valid MCP server (0 strong, 4 medium validity signals). No known CVEs in dependencies. Package registry verified. Imported from the Official MCP Registry. Trust signals: trusted author (3/3 approved).

2 files analyzed ยท 1 issue found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

What You'll Need

Set these up before or after installing:

Path to Service Account JSON credentialsRequired

Environment variable: GOOGLE_SERVICE_ACCOUNT_FILE

Super admin email with domain-wide delegationOptional

Environment variable: GOOGLE_ADMIN_EMAIL

Domain customer ID (default: my_customer)Optional

Environment variable: GOOGLE_CUSTOMER_ID

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "io-github-aringad-google-workspace-mcp": {
      "env": {
        "GOOGLE_ADMIN_EMAIL": "your-google-admin-email-here",
        "GOOGLE_CUSTOMER_ID": "your-google-customer-id-here",
        "GOOGLE_SERVICE_ACCOUNT_FILE": "your-google-service-account-file-here"
      },
      "args": [
        "google-workspace-admin-mcp"
      ],
      "command": "uvx"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

๐Ÿ”ง 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ร 

ToolDescrizione
gw_list_usersLista utenti con ricerca e filtri
gw_get_userDettaglio completo di un utente
gw_create_userCrea nuovo utente con password auto-generata
gw_delete_userElimina utente (con conferma obbligatoria)
gw_suspend_userSospendi o riattiva un utente
gw_reset_passwordReset password con generazione automatica
gw_manage_aliasAggiungi, rimuovi, elenca alias email
gw_list_groupsLista gruppi del dominio o di un utente
gw_manage_group_memberAggiungi/rimuovi membri dai gruppi
gw_list_org_unitsLista unitร  organizzative
gw_move_user_orgSposta 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
  1. Vai su console.cloud.google.com
  2. Crea un nuovo progetto (o usa quello esistente)
  3. Vai su API e servizi โ†’ Libreria
  4. Cerca e abilita: Admin SDK API
2. Crea Service Account
  1. Vai su API e servizi โ†’ Credenziali
  2. Crea credenziali โ†’ Account di servizio
  3. Dai un nome (es. mcp-workspace-admin)
  4. Vai nel Service Account โ†’ Chiavi โ†’ Aggiungi chiave โ†’ JSON
  5. Scarica il file JSON (queste sono le tue credenziali)
  6. 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
  1. Vai su admin.google.com
  2. Sicurezza โ†’ Accesso e controllo dati โ†’ Controlli API โ†’ Gestisci delega a livello di dominio
  3. Clicca Aggiungi nuovo
  4. Inserisci il Client ID del Service Account
  5. 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
  1. Autorizza

โš™๏ธ Variabili d'ambiente

VariabileDescrizioneDefault
GOOGLE_SERVICE_ACCOUNT_FILEPath al file JSON delle credenziali./credentials.json
GOOGLE_ADMIN_EMAILEmail del super admin con delega(obbligatorio)
GOOGLE_CUSTOMER_IDCustomer ID del dominiomy_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:

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

ToolDescription
gw_list_usersList users with search and filters
gw_get_userFull user details
gw_create_userCreate new user with auto-generated password
gw_delete_userDelete user (requires explicit confirmation)
gw_suspend_userSuspend or reactivate a user
gw_reset_passwordReset password with automatic generation
gw_manage_aliasAdd, remove, list email aliases
gw_list_groupsList domain or user groups
gw_manage_group_memberAdd/remove group members
gw_list_org_unitsList organizational units
gw_move_user_orgMove 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
  1. Go to console.cloud.google.com
  2. Create a new project (or use existing one)
  3. Go to APIs & Services โ†’ Library
  4. Search and enable: Admin SDK API
2. Create Service Account
  1. Go to APIs & Services โ†’ Credentials
  2. Create Credentials โ†’ Service Account
  3. Name it (e.g., mcp-workspace-admin)
  4. Go to the Service Account โ†’ Keys โ†’ Add Key โ†’ JSON
  5. Download the JSON file (these are your credentials)
  6. 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
  1. Go to admin.google.com
  2. Security โ†’ Access and data control โ†’ API controls โ†’ Manage Domain Wide Delegation
  3. Click Add new
  4. Enter the Service Account Client ID
  5. 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
  1. Authorize

โš™๏ธ Environment Variables

VariableDescriptionDefault
GOOGLE_SERVICE_ACCOUNT_FILEPath to credentials JSON file./credentials.json
GOOGLE_ADMIN_EMAILSuper admin email with delegation(required)
GOOGLE_CUSTOMER_IDDomain customer IDmy_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:

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

Reviews

No reviews yet

Be the first to review this server!