Google Drive MCP server for AI agents
Search Drive, read documents as text, create folders, move, rename and delete files.
- Auth
- OAuth 2.0 (sign in with the app)
- Tools
- 8
- Triggers
- 0
- Category
- Documents
Tools and triggers
List or search files
GOOGLEDRIVE_LIST_FILES
Searches Drive with a query such as `name contains 'report' and mimeType='application/pdf' and trashed=false`. Returns id, name, type, size, dates and link.read-only
Get file metadata
GOOGLEDRIVE_GET_FILE
Returns a file's or folder's name, type, size, dates, parents, owners and web link.read-only
Read a Google Doc, Sheet or Slides as text
GOOGLEDRIVE_EXPORT_DOCUMENT_TEXT
Exports a Google Doc, Sheet or Slides file and returns its text. Use text/plain for Docs and Slides, text/csv for Sheets (first sheet).read-only
Read a text file
GOOGLEDRIVE_GET_FILE_CONTENT
Downloads the content of a text-based file (txt, md, csv, json, code) stored in Drive. Not for Google Docs (use export) or binary files.read-only
Create a folder
GOOGLEDRIVE_CREATE_FOLDER
Creates a folder, in My Drive or inside a parent folder.
Rename or move a file
GOOGLEDRIVE_UPDATE_FILE
Renames a file or folder and/or moves it by adding a new parent folder and removing the old one.
Move a file to trash
GOOGLEDRIVE_TRASH_FILE
Moves a file or folder to the trash, where the user can still restore it.destructive
Delete a file permanently
GOOGLEDRIVE_DELETE_FILE
Permanently deletes a file or folder, skipping the trash. Cannot be undone; prefer Move a file to trash.destructive
Connect via MCP
Create an MCP server for Google Drive in the dashboard, then add its URL to your client. This is the Claude Code command; the client guide has the others.
claude mcp add --transport http googledrive \
"https://www.prompt-tm.com/mcp/<server id>?user_id=<your user>" \
--header "x-api-key: ptm_…"Connect via REST
Run a tool with one request. The response is { data, error, successful, log_id } for every tool.
curl -X POST https://www.prompt-tm.com/api/v3/tools/execute/GOOGLEDRIVE_LIST_FILES \
-H "x-api-key: $PROMPT_TM_KEY" -H "content-type: application/json" \
-d '{ "user_id": "alice", "arguments": {} }'