Skip to main content
Glama

Google Workspace MCP Server

MIT License
105
  • Apple
  • Linux

get_drive_file_content

Retrieve and convert content from any Google Drive file by ID, including native Google Docs, Office files, and other formats, into plain text with metadata. Supports shared drives and handles decoding for readable output.

Instructions

Retrieves the content of a specific Google Drive file by ID, supporting files in shared drives. • Native Google Docs, Sheets, Slides → exported as text / CSV. • Office files (.docx, .xlsx, .pptx) → unzipped & parsed with std-lib to extract readable text. • Any other file → downloaded; tries UTF-8 decode, else notes binary. Args: user_google_email: The user’s Google email address. file_id: Drive file ID. Returns: str: The file content as plain text with metadata header.

Input Schema

NameRequiredDescriptionDefault
file_idYes
serviceYes
user_google_emailYes

Input Schema (JSON Schema)

{ "properties": { "file_id": { "title": "File Id", "type": "string" }, "service": { "title": "service", "type": "string" }, "user_google_email": { "title": "User Google Email", "type": "string" } }, "required": [ "service", "user_google_email", "file_id" ], "title": "get_drive_file_contentArguments", "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