The Google Drive MCP server provides access to Google Drive files and documents through two main interfaces:
- Resources - for direct file access and reading
- Tools - for searching files
The server can read and export various file types:
- Google Docs → Markdown
- Google Sheets → CSV
- Google Presentations → Plain text
- Google Drawings → PNG
- Other Google Apps files → Plain text
- Text files → UTF-8 text
- JSON files → UTF-8 text
- Binary files → Base64 encoded blob
Search through your entire Google Drive content using fullText search queries.
To get a list of files from Google Drive:
List my Google Drive files
This will return up to 10 files with their IDs, names, and MIME types.
There are two ways to read documents:
If you know the file ID:
Read the Google Drive file with URI gdrive:///[file-id]
If you want to find and read a file by name:
List my Google Drive files and then read the document named "[document-name]"
To search for specific files:
Use the Google Drive search tool to find files containing "[search-term]"
- Read a specific Google Doc as markdown:
List my Google Drive files and then read the document named "Project Proposal"
- Search for documents about a specific topic:
Use the Google Drive search tool to find files containing "quarterly report"
- List recent files:
List my Google Drive files
- The server has read-only access to Google Drive
- File listings are paginated with 10 files per page
- Google Docs are automatically exported as markdown
- Searches use Google Drive's fullText search capability
- All file access is read-only; no modifications are possible
If you encounter any errors:
- Verify the file ID or name is correct
- Ensure you have access to the file
- Check if the file format is supported
- Verify the authentication credentials are valid
- When searching for files, use specific terms to narrow down results
- For Google Docs, prefer reading them directly as they'll be automatically converted to markdown
- When listing files, be aware that only 10 files are shown at a time
- Use file IDs when possible as they're unique and more reliable than names