Labsco
felores logo

Google Drive MCP Server

β˜… 71

from felores

Integrates with Google Drive, allowing AI models to search, list, and read files.

πŸ”₯πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedFreeAdvanced setup

Google Drive MCP Server

A powerful Model Context Protocol (MCP) server that provides seamless integration with Google Drive, allowing AI models to search, list, and read files from Google Drive.

πŸš€ Features

Tools

1. gdrive_search

Search for files in your Google Drive with powerful full-text search capabilities.

  • Input:
Copy & paste β€” that's it
{
 "query": "string (your search query)"
}
  • Output: List of files with:

  • File name

  • MIME type

  • File ID

  • Last modified time

  • File size

2. gdrive_read_file

Read file contents directly using a Google Drive file ID.

  • Input:
Copy & paste β€” that's it
{
 "file_id": "string (Google Drive file ID)"
}
  • Output: File contents with appropriate format conversion

Automatic File Format Handling

The server intelligently handles different Google Workspace file types:

  • πŸ“ Google Docs β†’ Markdown

  • πŸ“Š Google Sheets β†’ CSV

  • πŸ“Š Google Presentations β†’ Plain text

  • 🎨 Google Drawings β†’ PNG

  • πŸ“„ Text/JSON files β†’ UTF-8 text

  • πŸ“¦ Other files β†’ Base64 encoded

πŸ”’ Security

  • All sensitive credentials are stored in the credentials directory

  • OAuth credentials and tokens are excluded from version control

  • Read-only access to Google Drive

  • Secure OAuth 2.0 authentication flow

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

πŸ“ License

This MCP server is licensed under the MIT License. See the LICENSE file for details.

πŸ“š Additional Resources