Google Workspace (headless, service-account auth)
v1.0.056 Google Workspace tools.
Values you need
| Variable | What it is | |
|---|---|---|
GOOGLE_APPLICATION_CREDENTIALS | required secret | Path to the service account key JSON file |
WORKSPACE_USER_EMAIL | required | The Google Workspace user to impersonate (e.g. you@yourdomain.com) |
PyPI (uvx) discovery passed
Requires uv (https://docs.astral.sh/uv/)
Run in a terminal
claude mcp add google-workspace-headless-mcp -e 'GOOGLE_APPLICATION_CREDENTIALS=<GOOGLE_APPLICATION_CREDENTIALS>' -e 'WORKSPACE_USER_EMAIL=<WORKSPACE_USER_EMAIL>' -- uvx google-workspace-headless-mcp==1.0.0Add to
claude_desktop_config.json{
"mcpServers": {
"google-workspace-headless-mcp": {
"args": [
"google-workspace-headless-mcp==1.0.0"
],
"command": "uvx",
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>",
"WORKSPACE_USER_EMAIL": "<WORKSPACE_USER_EMAIL>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"google-workspace-headless-mcp": {
"args": [
"google-workspace-headless-mcp==1.0.0"
],
"command": "uvx",
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>",
"WORKSPACE_USER_EMAIL": "<WORKSPACE_USER_EMAIL>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "GOOGLE_APPLICATION_CREDENTIALS",
"id": "google-application-credentials",
"password": true,
"type": "promptString"
},
{
"description": "WORKSPACE_USER_EMAIL",
"id": "workspace-user-email",
"password": true,
"type": "promptString"
}
],
"servers": {
"google-workspace-headless-mcp": {
"args": [
"google-workspace-headless-mcp==1.0.0"
],
"command": "uvx",
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "${input:google-application-credentials}",
"WORKSPACE_USER_EMAIL": "${input:workspace-user-email}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.google-workspace-headless-mcp]
command = "uvx"
args = ["google-workspace-headless-mcp==1.0.0"]
env = { "GOOGLE_APPLICATION_CREDENTIALS" = "<GOOGLE_APPLICATION_CREDENTIALS>", "WORKSPACE_USER_EMAIL" = "<WORKSPACE_USER_EMAIL>" }For AI agents
- Ask the user for: GOOGLE_APPLICATION_CREDENTIALS, WORKSPACE_USER_EMAIL. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: list_calendars, list_calendar_events, create_calendar_event, update_calendar_event, delete_calendar_event, search_calendar_events, get_free_busy, list_gmail_labels, ….
- If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.
Machine-readable: install.md · manifest.json