Skip to main content
Glama

Google Workspace MCP Server

MIT License
105
  • Apple
  • Linux

start_google_auth

Initiates Google OAuth 2.0 authentication to grant access to specific Google services like Gmail, Drive, or Calendar. Generates an authorization URL for users to complete sign-in, enabling secure credential establishment for the current session.

Instructions

Initiates the Google OAuth 2.0 authentication flow for the specified user email and service. This is the primary method to establish credentials when no valid session exists or when targeting a specific account for a particular service. It generates an authorization URL that the LLM must present to the user. The authentication attempt is linked to the current MCP session via `mcp_session_id`. LLM Guidance: - Use this tool when you need to authenticate a user for a specific Google service (e.g., "Google Calendar", "Google Docs", "Gmail", "Google Drive") and don't have existing valid credentials for the session or specified email. - You MUST provide the `user_google_email` and the `service_name`. If you don't know the email, ask the user first. - Valid `service_name` values typically include "Google Calendar", "Google Docs", "Gmail", "Google Drive". - After calling this tool, present the returned authorization URL clearly to the user and instruct them to: 1. Click the link and complete the sign-in/consent process in their browser. 2. Note the authenticated email displayed on the success page. 3. Provide that email back to you (the LLM). 4. Retry their original request, including the confirmed `user_google_email`. Args: user_google_email (str): The user's full Google email address (e.g., 'example@gmail.com'). This is REQUIRED. service_name (str): The name of the Google service for which authentication is being requested (e.g., "Google Calendar", "Google Docs"). This is REQUIRED. mcp_session_id (Optional[str]): The active MCP session ID (automatically injected by FastMCP from the Mcp-Session-Id header). Links the OAuth flow state to the session. Returns: str: A detailed message for the LLM with the authorization URL and instructions to guide the user through the authentication process.

Input Schema

NameRequiredDescriptionDefault
mcp_session_idNo
service_nameYes
user_google_emailYes

Input Schema (JSON Schema)

{ "properties": { "mcp_session_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Mcp Session Id" }, "service_name": { "title": "Service Name", "type": "string" }, "user_google_email": { "title": "User Google Email", "type": "string" } }, "required": [ "user_google_email", "service_name" ], "title": "start_google_authArguments", "type": "object" }

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/taylorwilsdon/google_workspace_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server