Labsco
dbarks logo

GAM MCP Server

โ˜… 4

from dbarks

Administer Google Workspace using the GAM command-line tool.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeQuick setup

GAM MCP Server

Google Workspace administration via GAM CLI, ready for Claude Desktop and Model Context Protocol (MCP).

Available Tools

User Management

  • gam_list_users: List users (domain, query, maxResults)
  • gam_get_user: Get user details (email)
  • gam_create_user: Create user (email, firstName, lastName, password, orgUnit)
  • gam_update_user: Update user (email, updates)
  • gam_suspend_user / gam_unsuspend_user: (email)
  • gam_move_user_orgunit: (email, orgUnitPath)

Group Management

  • gam_list_groups: List groups (domain, maxResults)
  • gam_get_group: Get group details (groupEmail)
  • gam_create_group: Create group (groupEmail, groupName, description)
  • gam_add_group_member / gam_remove_group_member: (groupEmail, memberEmail, role)

Organizational Units

  • gam_list_orgunits: List OUs
  • gam_move_user_orgunit: Move user between OUs

Domain Management

  • gam_get_domain_info: Get domain info

Example MCP Tool Calls

List users:

{
  "method": "tools/call",
  "params": {
    "name": "gam_list_users",
    "arguments": { "maxResults": 10 }
  }
}

Get user:

{
  "method": "tools/call",
  "params": {
    "name": "gam_get_user",
    "arguments": { "email": "user@example.com" }
  }
}

Create group:

{
  "method": "tools/call",
  "params": {
    "name": "gam_create_group",
    "arguments": { "groupEmail": "team@example.com", "groupName": "Team" }
  }
}

Security Considerations

  • Only whitelisted GAM commands are allowed.
  • All parameters are validated and sanitized.
  • No arbitrary command execution.
  • Logs redact sensitive data.
  • Rate limiting and error handling are built-in.

Extending

Add new tools in src/tools/ and export them in src/tools/index.ts.


ยฉ 2024 GAM MCP Server Authors